摘要: The childNodes property contains all of the immediate children of the element. There is a significant difference between browsers regarding the iden... 阅读全文
posted @ 2015-05-21 21:07 林大勇 阅读(223) 评论(0) 推荐(0)
摘要: 上图来自于《JavaScript权威指南(第六版)》P375受到上图的启发,写了如下测试代码:1 var head = document.getElementsByTagName("head");2 console.log(Object.getPrototypeOf(Object.getProtot... 阅读全文
posted @ 2015-05-21 13:38 林大勇 阅读(888) 评论(0) 推荐(0)
摘要: 首先贴上代码:1 console.log(Object.getPrototypeOf(document));2 console.log(Object.getPrototypeOf(Object.getPrototypeOf(document)));在FF上的运行结果如下所示:第一行代码返回的是一个H... 阅读全文
posted @ 2015-05-21 13:14 林大勇 阅读(4980) 评论(0) 推荐(1)