feico
JavaScript 中的 this 指向 JavaScript 中的 this 指向
JavaScript 中的 this 指向全局的 this全局 this 一般指向全局对象,浏览器中的全局对象就是 window。 例如: console.log(this.document === document); //true co
2019-06-12
JavaScript 中的闭包 JavaScript 中的闭包
JavaScript 中的闭包闭包的例子function outer() { var localVal = 30; return localVal; } console.log(outer()); //
2019-05-17
2 / 2