We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a34e637 commit bdacbb1Copy full SHA for bdacbb1
docs/module.md
@@ -665,7 +665,7 @@ true
665
17
666
```
667
668
-上面代码中,参数`n`从10变为0的过程中,`foo()`一共会执行6次,所以变量`counter`等于6。第二次调用`even()`时,参数`n`从20变为0,`foo()`一共会执行11次,加上前面的6次,所以变量`counter`等于17。
+上面代码中,参数`n`从10变为0的过程中,`even()`一共会执行6次,所以变量`counter`等于6。第二次调用`even()`时,参数`n`从20变为0,`even()`一共会执行11次,加上前面的6次,所以变量`counter`等于17。
669
670
这个例子要是改写成CommonJS,就根本无法执行,会报错。
671
0 commit comments