Merge branch 'master' of github.com:wangdoc/javascript-tutorial

This commit is contained in:
ruanyf
2018-07-04 17:27:33 +08:00
3 changed files with 1054 additions and 1 deletions

View File

@@ -80,6 +80,7 @@
- bom/arraybuffer.md: ArrayBuffer 对象Blob 对象
- bom/file.md: File 对象FileList 对象FileReader 对象
- bom/form.md: 表单FormData 对象
- bom/indexeddb.md: IndexedDB API
- elements/: 附录:网页元素接口
- elements/a.md: <a>
- elements/image.md: <img>

1052
docs/bom/indexeddb.md Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -201,7 +201,7 @@ f() // 1
obj.f() // 2
```
上面代码中,函数`f`在全局环境执行,`this.x`指向全局环境的`this`;在`obj`环境执行,`this.x`指向`obj.x`
上面代码中,函数`f`在全局环境执行,`this.x`指向全局环境的`x`;在`obj`环境执行,`this.x`指向`obj.x`
## 使用场合