jQuery 1.7 on() and off() methods for dynamic elements

前端 未结 3 987
误落风尘
误落风尘 2020-12-08 03:13

jQuery 1.7\'s .on() and .off() methods are supposed to replace .live() and such.

I tried it with a dynamic item:



        
3条回答
  •  臣服心动
    2020-12-08 03:21

    Here is a little example:

    http://jsfiddle.net/zzSjK/

    
    
    
    -click-

提交回复
热议问题