在网上偶然浏览到的,有点混乱,为什么通过callWithClosure()调用那段中的this指向是testObj对象?还有callWithClosure()里新建的回调函数的闭包不是function testCall(){...}吗,"通过Closure保持上下文回调"是什么意思?
callWithClosure()
testObj
function testCall(){...}
ibeautiful
相关分类