2015年1月27日
摘要: 1、全局代码中的this 是指向全局对象,在浏览器中是windowalert(this) //window2、作为单纯的函数调用: function fooCoder(x) { this.x = x; } fooCoder(2); alert(x);// 全局变量x... 阅读全文
posted @ 2015-01-27 14:25 上帝的宠儿 阅读(3040) 评论(0) 推荐(0) 编辑