摘要: 数组属性 constructor 定义和用法 在JavaScript中,constructor属性返回对象的构造函数。 返回值是构造函数的引用,不是函数名: JavaScript 数组 constructor 属性返回 function Array () { [ native code ] } Ja 阅读全文
posted @ 2018-07-30 18:55 Millet_23 阅读(187) 评论(0) 推荐(0) 编辑
摘要: DOM Document对象属性和方法 document.getElementById(elememtID) 定义和用法 这个方法可以返回拥有指定ID的第一个对象。如果没有指定ID的元素,则返回 null。如果存在多个指定ID的元素,则返回 undefined。 语法 例子 document.get 阅读全文
posted @ 2018-07-30 11:59 Millet_23 阅读(207) 评论(0) 推荐(0) 编辑