阅读背景:

JavaScript回调函数中的变量范围

来源:互联网 

I expected the code below to alert "0" and "1", but it alert "2" twice. I don't understand the reason. Don't know if it is a problem of jQuery. Also, please help me to edit title and tags of this post if they are inaccurate.I expected the code below to alert "0" and "1",




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: