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 990f210 commit 1a9d77fCopy full SHA for 1a9d77f
docs/generator.md
@@ -71,7 +71,7 @@ hw.next()
71
需要注意的是,`yield`语句后面的表达式,只有当调用`next`方法、内部指针指向该语句时才会执行,因此等于为JavaScript提供了手动的“惰性求值”(Lazy Evaluation)的语法功能。
72
73
```javascript
74
-function* gen{
+function* gen() {
75
yield 123 + 456;
76
}
77
```
docs/promise.md
@@ -101,6 +101,9 @@ var getJSON = function(url) {
101
client.send();
102
103
function handler() {
104
+ if ( this.readyState !== 4 ) {
105
+ return;
106
+ }
107
if (this.status === 200) {
108
resolve(this.response);
109
} else {
0 commit comments