摘要: constructor属性始终指向创建当前对象的构造函数。比如下面例子: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->// 等价于 var foo = new Array(1, 56, 34, 12); var arr = [1, 56, 34, 12]; console.log(arr.constructor === Array); // true // 等价于 var foo = new Function(); var Foo =.. 阅读全文
posted @ 2011-09-28 23:26 liushan 阅读(2435) 评论(4) 推荐(2)