摘要:
function f(){ return this.a; } var g = f.bind({a:"azerty"}); console.log(g()); // azerty var o = {a:37, f:f, g:g}; console.log(o.f(), o.g()); // 37, a 阅读全文
摘要:
js基础梳理-究竟什么是变量对象,什么是活动对象? 阅读全文
摘要:
function foo() { var a = 7; console.log(a);//7 console.log(b);//b is not defined (function b() { a = 77; })(); console.log(a);//77 } foo(); var c=func 阅读全文