how to replace bindwithevent in mootools 1.3

后端 未结 2 1410
悲&欢浪女
悲&欢浪女 2021-01-21 22:11

I wonder how to replace the bindWithEvent function in Mootools 1.3, the example in the documentation is very basic:

Element.addEvent(\'click\', function(e){
myFu         


        
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-21 22:41

    You should read the upgrade from 1.2 to 1.3 page: http://github.com/mootools/mootools-core/wiki/Update-from-1.2-to-1.3

    This is what I came up with: http://jsfiddle.net/MBx2D/2/

提交回复
热议问题