Open
Conversation
Owner
|
commit = = 不忍直视。。要可读一点 加油把后面的题完成 |
practice/shiluoqiong/1/notes
Outdated
| -call()和apply()都是为了改变函数体内部this的指向 | ||
| -func.call(this, arg1, arg2); | ||
| -func.apply(this, [arg1, arg2]); | ||
| -当参数是明确知道数量时,用 call,而不确定的时候,用 apply,然后把参数 push 进数组传递进去。 |
practice/shiluoqiong/1/t5.js
Outdated
| */ | ||
| function overTurn(s){ | ||
| function sortStr(s){ | ||
| var result = ""; |
Owner
|
代码改好后,在 PR 一下,comment 一下,我审核通过了,就可以 merge 了。, 以及改正代码的时候要思考一下,为什么这么写,比如那个每隔一秒打印数组中的值,为什么闭包会造成打印的值一样,而使用函数参数(复制了值),可以使得值不一样 |
| <component name="JavaScriptLibraryMappings"> | ||
| <includedPredefinedLibrary name="ECMAScript 6" /> | ||
| </component> | ||
| </project> No newline at end of file |
Owner
There was a problem hiding this comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.