阅读背景:

Javascript从事件处理程序获取对父对象/类的引用

来源:互联网 

I have a class (or function-containing object; I've heard that there is no such thing as a Javascript class) called Foo, with an event handler that is attached to a click event. When the event handler is called, I want to modify a property of my class Foo. Normally, I would use the I have a class (or function-containing object;




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

分享到: