摘要: var name = "The Window";var object = { name: "My Object", getNameFunc: function () { return function () { return this.name; ... 阅读全文
posted @ 2014-09-19 17:51 Coding_Yong 阅读(192) 评论(0) 推荐(0)
摘要: http://xiaolele.iteye.com/blog/682287 阅读全文
posted @ 2014-09-19 17:26 Coding_Yong 阅读(248) 评论(0) 推荐(0)
摘要: var a = "Hello World";function test() { alert(window.a); // "Hello World" alert(a); //underfined JavaScript 在执行的时候 会对全局的变量(包括局部变量进行检测)... 阅读全文
posted @ 2014-09-19 15:27 Coding_Yong 阅读(204) 评论(0) 推荐(0)