摘要: /* * 全局对象 * this = window * 在全局作用域中它的 this 执行当前的全局对象(浏览器端是 Window,node 中是 global)。 */ console.log(this); // Window /* * @ 函数中执行, 调用 * @ 一个函数被直接调用的时候, 属于全局调用,this指向全局对象 */ function test(){ ... 阅读全文
posted @ 2016-10-19 19:48 AlanTao 阅读(178) 评论(0) 推荐(0)