摘要:
转载自http://www.cnblogs.com/liushannet/archive/2011/09/28/2194905.htmlconstructor属性始终指向创建当前对象的构造函数。比如下面例子:// 等价于 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 = function() { }; console.log(Fo... 阅读全文
posted @ 2012-09-04 15:08
厉害的攻城狮
阅读(75)
评论(0)
推荐(0)
浙公网安备 33010602011771号