jQuery on() method on multiple selectors

前端 未结 3 1008
陌清茗
陌清茗 2020-12-08 02:32

Since version 1.7 live is deprecated.

Following example is easy to make compatible with new on method:

$(\'nav li, #sb-nav          


        
3条回答
  •  长情又很酷
    2020-12-08 03:00

    You may want to have a look at the documentation of live(), the switch to on() is documented: http://api.jquery.com/live/

提交回复
热议问题