We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
单元测试与依赖注入(dependency injection) (lmk123)
在写单元测试的过程中,最痛苦的就是找“监控点”了。 什么是“监控点”?举个栗子,现在有如下代码 source.js:jsimport { methodA , methodB } from 'third-party';if( yourCondition ) { methodA();} else { methodB();}其中 third-party.js 是这个样子的:```js...
jsimport { methodA , methodB } from 'third-party';if( yourCondition ) { methodA();} else { methodB();}
third-party.js
深入理解JS中声明提升、作用域(链)和this关键字 (creeperyang)
this
这个issue试图阐述JavaScript这门语言的3个难点:声明提升、作用域(链)和this。首先推荐https://github.com/getify/You-Dont-Know-JS,这是一本非常棒的JavaScript书籍,几乎所有的JS知识点都包括并且详细解释了。看一遍相信必有大收获。 1. 声明提升大部分编程语言都是先声明变量再使用,但在JS中,事情有些不一样:...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
单元测试与依赖注入(dependency injection) (lmk123)
深入理解JS中声明提升、作用域(链)和
this
关键字 (creeperyang)The text was updated successfully, but these errors were encountered: