| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:1d7f1cc4-1e41-4486-63bc-132a3cee70ec |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | A326:383910:456FED:590FBD:6B09533F |
| html-safe-nonce | b63651f0e20518f7a425e18f835389b1cb6bf2c798ff50273f7ba0281cd73d98 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzI2OjM4MzkxMDo0NTZGRUQ6NTkwRkJEOjZCMDk1MzNGIiwidmlzaXRvcl9pZCI6Ijc3NTg0MTU1Mzc4NzcxMTE2MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d92755c7e967c9f7bc3649b01c5ad90c5b45a736892c3ea32e1b2092df23062c |
| hovercard-subject-tag | repository:200578403 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | // |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/WwanF/effective_javascript |
| twitter:image | https://opengraph.githubassets.com/a96795fc838318bd39015e864a9d23967267e31b15136a95503886e1ef4e099b/WwanF/effective_javascript |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a96795fc838318bd39015e864a9d23967267e31b15136a95503886e1ef4e099b/WwanF/effective_javascript |
| og:image:alt | 编写高质量javascript代码的68个有效方法. Contribute to WwanF/effective_javascript development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | da7e7304a38b6bc6a1ec0a7970f219ae1c71491302599b3c42088762d8889d94 |
| turbo-cache-control | no-cache |
| go-import | github.com/WwanF/effective_javascript git https://github.com/WwanF/effective_javascript.git |
| octolytics-dimension-user_id | 29699698 |
| octolytics-dimension-user_login | WwanF |
| octolytics-dimension-repository_id | 200578403 |
| octolytics-dimension-repository_nwo | WwanF/effective_javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 200578403 |
| octolytics-dimension-repository_network_root_nwo | WwanF/effective_javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3cb927d1757a02e619a0eb62b036233d6d9cdc4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/WwanF/effective_javascript#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FWwanF%2Feffective_javascript |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FWwanF%2Feffective_javascript |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=WwanF%2Feffective_javascript |
| Reload | https://github.com/WwanF/effective_javascript |
| Reload | https://github.com/WwanF/effective_javascript |
| Reload | https://github.com/WwanF/effective_javascript |
| WwanF | https://github.com/WwanF |
| effective_javascript | https://github.com/WwanF/effective_javascript |
| Code | https://github.com/WwanF/effective_javascript |
| Pull requests | https://github.com/WwanF/effective_javascript/pulls |
| Actions | https://github.com/WwanF/effective_javascript/actions |
| Projects | https://github.com/WwanF/effective_javascript/projects |
| Security and quality | https://github.com/WwanF/effective_javascript/security |
| Insights | https://github.com/WwanF/effective_javascript/pulse |
| https://github.com/WwanF/effective_javascript |
| effective_javascript | https://github.com/WwanF/effective_javascript |
| Notifications | https://github.com/login?return_to=%2FWwanF%2Feffective_javascript |
| Fork0 (0) | https://github.com/login?return_to=%2FWwanF%2Feffective_javascript |
| Star1 (1) | https://github.com/login?return_to=%2FWwanF%2Feffective_javascript |
| Readme | https://github.com/WwanF/effective_javascript#readme-ov-file |
| MIT license | https://github.com/WwanF/effective_javascript#MIT-1-ov-file |
| Activity | https://github.com/WwanF/effective_javascript/activity |
| 0 forks | https://github.com/WwanF/effective_javascript/forks |
| Report repository | https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FWwanF%2Feffective_javascript&report=WwanF+%28user%29 |
| Branches | https://github.com/WwanF/effective_javascript/branches |
| Tags | https://github.com/WwanF/effective_javascript/tags |
| https://github.com/WwanF/effective_javascript/branches |
| https://github.com/WwanF/effective_javascript/tags |
| 12 Commits | https://github.com/WwanF/effective_javascript/commits/master/ |
| https://github.com/WwanF/effective_javascript/commits/master/ |
| 01_尽量少用全局变量 | https://github.com/WwanF/effective_javascript/tree/master/01_%E5%B0%BD%E9%87%8F%E5%B0%91%E7%94%A8%E5%85%A8%E5%B1%80%E5%8F%98%E9%87%8F |
| 01_尽量少用全局变量 | https://github.com/WwanF/effective_javascript/tree/master/01_%E5%B0%BD%E9%87%8F%E5%B0%91%E7%94%A8%E5%85%A8%E5%B1%80%E5%8F%98%E9%87%8F |
| 02_始终声明局部变量 | https://github.com/WwanF/effective_javascript/tree/master/02_%E5%A7%8B%E7%BB%88%E5%A3%B0%E6%98%8E%E5%B1%80%E9%83%A8%E5%8F%98%E9%87%8F |
| 02_始终声明局部变量 | https://github.com/WwanF/effective_javascript/tree/master/02_%E5%A7%8B%E7%BB%88%E5%A3%B0%E6%98%8E%E5%B1%80%E9%83%A8%E5%8F%98%E9%87%8F |
| 03_避免使用with | https://github.com/WwanF/effective_javascript/tree/master/03_%E9%81%BF%E5%85%8D%E4%BD%BF%E7%94%A8with |
| 03_避免使用with | https://github.com/WwanF/effective_javascript/tree/master/03_%E9%81%BF%E5%85%8D%E4%BD%BF%E7%94%A8with |
| 04_熟练使用闭包 | https://github.com/WwanF/effective_javascript/tree/master/04_%E7%86%9F%E7%BB%83%E4%BD%BF%E7%94%A8%E9%97%AD%E5%8C%85 |
| 04_熟练使用闭包 | https://github.com/WwanF/effective_javascript/tree/master/04_%E7%86%9F%E7%BB%83%E4%BD%BF%E7%94%A8%E9%97%AD%E5%8C%85 |
| 05_理解变量提升 | https://github.com/WwanF/effective_javascript/tree/master/05_%E7%90%86%E8%A7%A3%E5%8F%98%E9%87%8F%E6%8F%90%E5%8D%87 |
| 05_理解变量提升 | https://github.com/WwanF/effective_javascript/tree/master/05_%E7%90%86%E8%A7%A3%E5%8F%98%E9%87%8F%E6%8F%90%E5%8D%87 |
| 06_函数表达式立即调用 | https://github.com/WwanF/effective_javascript/tree/master/06_%E5%87%BD%E6%95%B0%E8%A1%A8%E8%BE%BE%E5%BC%8F%E7%AB%8B%E5%8D%B3%E8%B0%83%E7%94%A8 |
| 06_函数表达式立即调用 | https://github.com/WwanF/effective_javascript/tree/master/06_%E5%87%BD%E6%95%B0%E8%A1%A8%E8%BE%BE%E5%BC%8F%E7%AB%8B%E5%8D%B3%E8%B0%83%E7%94%A8 |
| 07_当心命名函数表达式笨拙的作用域 | https://github.com/WwanF/effective_javascript/tree/master/07_%E5%BD%93%E5%BF%83%E5%91%BD%E5%90%8D%E5%87%BD%E6%95%B0%E8%A1%A8%E8%BE%BE%E5%BC%8F%E7%AC%A8%E6%8B%99%E7%9A%84%E4%BD%9C%E7%94%A8%E5%9F%9F |
| 07_当心命名函数表达式笨拙的作用域 | https://github.com/WwanF/effective_javascript/tree/master/07_%E5%BD%93%E5%BF%83%E5%91%BD%E5%90%8D%E5%87%BD%E6%95%B0%E8%A1%A8%E8%BE%BE%E5%BC%8F%E7%AC%A8%E6%8B%99%E7%9A%84%E4%BD%9C%E7%94%A8%E5%9F%9F |
| 08_当心局部块函数声明笨拙的作用域 | https://github.com/WwanF/effective_javascript/tree/master/08_%E5%BD%93%E5%BF%83%E5%B1%80%E9%83%A8%E5%9D%97%E5%87%BD%E6%95%B0%E5%A3%B0%E6%98%8E%E7%AC%A8%E6%8B%99%E7%9A%84%E4%BD%9C%E7%94%A8%E5%9F%9F |
| 08_当心局部块函数声明笨拙的作用域 | https://github.com/WwanF/effective_javascript/tree/master/08_%E5%BD%93%E5%BF%83%E5%B1%80%E9%83%A8%E5%9D%97%E5%87%BD%E6%95%B0%E5%A3%B0%E6%98%8E%E7%AC%A8%E6%8B%99%E7%9A%84%E4%BD%9C%E7%94%A8%E5%9F%9F |
| 09_避免使用eval创建局部变量 | https://github.com/WwanF/effective_javascript/tree/master/09_%E9%81%BF%E5%85%8D%E4%BD%BF%E7%94%A8eval%E5%88%9B%E5%BB%BA%E5%B1%80%E9%83%A8%E5%8F%98%E9%87%8F |
| 09_避免使用eval创建局部变量 | https://github.com/WwanF/effective_javascript/tree/master/09_%E9%81%BF%E5%85%8D%E4%BD%BF%E7%94%A8eval%E5%88%9B%E5%BB%BA%E5%B1%80%E9%83%A8%E5%8F%98%E9%87%8F |
| 10_间接调用eval函数优于直接调用 | https://github.com/WwanF/effective_javascript/tree/master/10_%E9%97%B4%E6%8E%A5%E8%B0%83%E7%94%A8eval%E5%87%BD%E6%95%B0%E4%BC%98%E4%BA%8E%E7%9B%B4%E6%8E%A5%E8%B0%83%E7%94%A8 |
| 10_间接调用eval函数优于直接调用 | https://github.com/WwanF/effective_javascript/tree/master/10_%E9%97%B4%E6%8E%A5%E8%B0%83%E7%94%A8eval%E5%87%BD%E6%95%B0%E4%BC%98%E4%BA%8E%E7%9B%B4%E6%8E%A5%E8%B0%83%E7%94%A8 |
| 11_理解函数调用,方法调用及构造函数调用之间的不同 | https://github.com/WwanF/effective_javascript/tree/master/11_%E7%90%86%E8%A7%A3%E5%87%BD%E6%95%B0%E8%B0%83%E7%94%A8%EF%BC%8C%E6%96%B9%E6%B3%95%E8%B0%83%E7%94%A8%E5%8F%8A%E6%9E%84%E9%80%A0%E5%87%BD%E6%95%B0%E8%B0%83%E7%94%A8%E4%B9%8B%E9%97%B4%E7%9A%84%E4%B8%8D%E5%90%8C |
| 11_理解函数调用,方法调用及构造函数调用之间的不同 | https://github.com/WwanF/effective_javascript/tree/master/11_%E7%90%86%E8%A7%A3%E5%87%BD%E6%95%B0%E8%B0%83%E7%94%A8%EF%BC%8C%E6%96%B9%E6%B3%95%E8%B0%83%E7%94%A8%E5%8F%8A%E6%9E%84%E9%80%A0%E5%87%BD%E6%95%B0%E8%B0%83%E7%94%A8%E4%B9%8B%E9%97%B4%E7%9A%84%E4%B8%8D%E5%90%8C |
| 12_熟练掌握高阶函数 | https://github.com/WwanF/effective_javascript/tree/master/12_%E7%86%9F%E7%BB%83%E6%8E%8C%E6%8F%A1%E9%AB%98%E9%98%B6%E5%87%BD%E6%95%B0 |
| 12_熟练掌握高阶函数 | https://github.com/WwanF/effective_javascript/tree/master/12_%E7%86%9F%E7%BB%83%E6%8E%8C%E6%8F%A1%E9%AB%98%E9%98%B6%E5%87%BD%E6%95%B0 |
| 13_使用call方法自定义接收者来调用方法 | https://github.com/WwanF/effective_javascript/tree/master/13_%E4%BD%BF%E7%94%A8call%E6%96%B9%E6%B3%95%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8E%A5%E6%94%B6%E8%80%85%E6%9D%A5%E8%B0%83%E7%94%A8%E6%96%B9%E6%B3%95 |
| 13_使用call方法自定义接收者来调用方法 | https://github.com/WwanF/effective_javascript/tree/master/13_%E4%BD%BF%E7%94%A8call%E6%96%B9%E6%B3%95%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8E%A5%E6%94%B6%E8%80%85%E6%9D%A5%E8%B0%83%E7%94%A8%E6%96%B9%E6%B3%95 |
| 14_使用apply方法通过不同数量的参数调用函数 | https://github.com/WwanF/effective_javascript/tree/master/14_%E4%BD%BF%E7%94%A8apply%E6%96%B9%E6%B3%95%E9%80%9A%E8%BF%87%E4%B8%8D%E5%90%8C%E6%95%B0%E9%87%8F%E7%9A%84%E5%8F%82%E6%95%B0%E8%B0%83%E7%94%A8%E5%87%BD%E6%95%B0 |
| 14_使用apply方法通过不同数量的参数调用函数 | https://github.com/WwanF/effective_javascript/tree/master/14_%E4%BD%BF%E7%94%A8apply%E6%96%B9%E6%B3%95%E9%80%9A%E8%BF%87%E4%B8%8D%E5%90%8C%E6%95%B0%E9%87%8F%E7%9A%84%E5%8F%82%E6%95%B0%E8%B0%83%E7%94%A8%E5%87%BD%E6%95%B0 |
| .gitignore | https://github.com/WwanF/effective_javascript/blob/master/.gitignore |
| .gitignore | https://github.com/WwanF/effective_javascript/blob/master/.gitignore |
| LICENSE | https://github.com/WwanF/effective_javascript/blob/master/LICENSE |
| LICENSE | https://github.com/WwanF/effective_javascript/blob/master/LICENSE |
| README.md | https://github.com/WwanF/effective_javascript/blob/master/README.md |
| README.md | https://github.com/WwanF/effective_javascript/blob/master/README.md |
| README | https://github.com/WwanF/effective_javascript |
| MIT license | https://github.com/WwanF/effective_javascript |
| https://github.com/WwanF/effective_javascript#effective_javascript |
| https://github.com/WwanF/effective_javascript#变量作用域 |
| https://github.com/WwanF/effective_javascript#使用函数 |
| https://github.com/WwanF/effective_javascript#对象和原型 |
| https://github.com/WwanF/effective_javascript#数组和字典 |
| https://github.com/WwanF/effective_javascript#库和api设计 |
| https://github.com/WwanF/effective_javascript#并发 |
| https://github.com/WwanF/effective_javascript#初衷 |
| https://github.com/WwanF/effective_javascript#声明 |
| Readme | https://github.com/WwanF/effective_javascript#readme-ov-file |
| MIT license | https://github.com/WwanF/effective_javascript#MIT-1-ov-file |
| Activity | https://github.com/WwanF/effective_javascript/activity |
| 0 forks | https://github.com/WwanF/effective_javascript/forks |
| Report repository | https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FWwanF%2Feffective_javascript&report=WwanF+%28user%29 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |