Blogger Information
Blog 8
fans 0
comment 0
visits 8593
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
JQuery绑定事件的两种方式与解除实践
一语笑嫣然
Original
636 people have browsed it
  • 绑定事件

    • 向页面已存在的元素添加事件:event()

    • 向脚本动态创建的元素添加事件:bind("事件名",function(){})

  • 解除事件

    • 解除当前元素下所有的事件:unbind()

    • 解除当前元素下指定的事件:unbind("事件名")

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post