请原谅我的无知,因为我对jquery并不熟悉.是否有dojo.connect()的等价物?
我找到了这个解决方案:http://think-robot.com/2009/06/hitch-object-oriented-event-handlers-with-jquery/
但是没有断开功能!
你知道jquery的其他解决方案吗?有jquery.connect但这个插件在我的测试中不起作用.
谢谢你的帮助,斯特凡
解决方法:
你对dojo.connect()的等价是什么意思?
如果您愿意创建自己的自定义事件处理程序,请查看Events中的bind(),trigger()和proxy().
proxy()函数将使您重新定义回调函数中指向的内容.