摘要: 前提:js中所有的内置对象都是Function 的实例。 例如:Array\String\Number... 等 原理剖析: 对象属性搜索的原理就是按照对象的 __proto__ 属性进行搜索,直到__proto__=null 停止搜索 阅读全文
posted @ 2018-05-02 23:26 Young汨 阅读(372) 评论(0) 推荐(0) 编辑
摘要: ******************************* Chapter 11 DOM扩展 ******************************* 主要的扩展是 选择符API 和 HTML5 选择符API: document.querySelector('.img'); documen 阅读全文
posted @ 2018-05-02 14:37 Young汨 阅读(569) 评论(0) 推荐(0) 编辑
摘要: ******************** Chapter 8 BOM ******************** BOM由浏览器提供商扩展 window: 既是js访问浏览器窗口的接口,又是Global对象 全局变量会成为window 的属性,但是定义全局变量和window属性还是有差别,在于能否通过 阅读全文
posted @ 2018-05-02 14:27 Young汨 阅读(219) 评论(0) 推荐(0) 编辑
摘要: ********************** Chapter 6 ********************** 属性: 数据属性: Configurable: 能否通过delete 删除属性,默认true Enumerable: 能否通过 for-in 循环返回属性,默认true Writeble: 阅读全文
posted @ 2018-05-02 14:25 Young汨 阅读(225) 评论(0) 推荐(0) 编辑