Skip to content

Commit 58dbefc

Browse files
committed
fix xmlhttprequest
1 parent 7a5d709 commit 58dbefc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/bom/xmlhttprequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ xhr.open('GET', 'http://www.example.com/page.php', true);
3434
然后,指定回调函数,监听通信状态(`readyState`属性)的变化。
3535

3636
```javascript
37-
ajax.onreadystatechange = handleStateChange;
37+
xhr.onreadystatechange = handleStateChange;
3838

3939
function handleStateChange() {
4040
// ...

0 commit comments

Comments
 (0)