jQuery: Unbind event handlers to bind them again later

前端 未结 7 1006
Happy的楠姐
Happy的楠姐 2020-11-27 03:58

Does anybody know how to unbind set of event handlers, but memorize them in order to bind them again later? Any suggestions?

7条回答
  •  情话喂你
    2020-11-27 04:39

    There is a jQuery plugin called Copy Events, which copies events from one object to another. This could very easily be used to "save" events from one element and bring them back later. Just one more option :)

    Edit: fixed broken link

提交回复
热议问题