摘要: JavaScript函数中的this指代的是全局变量,那构造函数呢?测试代码如下:1. 当做一般函数调用Cat();function Cat(name){ var arr = Object.getOwnPropertyNames(this); console.log(arr.length); ... 阅读全文
posted @ 2015-04-18 17:17 林大勇 阅读(149) 评论(0) 推荐(0) 编辑