jQuery的事件处理方法介绍 - bind(),live(),delegate(),on()
来源:互联网 发布:网络言论法律 编辑:程序博客网 时间:2024/05/16 06:41
http://www.gbin1.com/technology/jquery/20120419jqueryeventhandler/
总的来说,在jquery1.7版本综合了 bind, live delegate 统一用on
下面是几个对应的例子
$('a').bind('click', myHandler);$('a').on('click', myHandler);$('form').bind('submit', { val: 42 }, fn);$('form').on('submit', { val: 42 }, fn);$(window).unbind('scroll.myPlugin');$(window).off('scroll.myPlugin');$('.comment').delegate('a.add', 'click', addNew);$('.comment').on('click', 'a.add', addNew);$('.dialog').undelegate('a', 'click.myDlg');$('.dialog').off('click.myDlg', 'a');$('a').live('click', fn);$(document).on('click', 'a', fn);$('a').die('click');$(document).off('click', 'a');
- jQuery的事件处理方法介绍 - bind(),live(),delegate(),on()
- jQuery的事件处理方法介绍 - bind(),live(),delegate(),on()
- jQuery中事件绑定bind、live、delegate、on方法
- jquery的事件委托-bind,live,delegate,on的区别
- jQuery事件绑定bind、live、delegate和on的区别
- jQuery的事件委托方法bind、live、delegate,on之间的区别
- jQuery事件绑定方法bind、 live、delegate和on的区别
- Jquery中的bind()live()delegate()on()绑定事件方法的用法
- jquery的on、off、one、bind、delegate、live、die绑定事件方法研究
- Jquery之绑定事件的三种方法(.bind .live .on .delegate )
- jQuery绑定方法的区别 - .bind() / .live() / .delegate() / .on()
- jQuery绑定方法的区别 - .bind() / .live() / .delegate() / .on()
- JQuery中的bind、delegate、on、live方法的区别及简单介绍
- JQuery中的bind、delegate、on、live方法的区别及简单介绍
- [TOP]原生JS事件绑定方法以及jQuery绑定事件方法bind、live、on、delegate的区别
- Jquery之事件绑定(bind(),live(),delegate(),on())
- 浅谈Jquery中的bind(),live(),delegate(),on()绑定事件方式
- Jquery中的bind(),live(),delegate(),on()绑定事件方式
- T-SQL查询:sqlserver 行列转换
- 中国制造业转型与管理信息化深化应用的思考
- 外企的邮件制度
- 依赖注入框架Autofac的简单使用
- 黑马程序员-银行业务调度系统
- jQuery的事件处理方法介绍 - bind(),live(),delegate(),on()
- asp.net 调用SAP RFC(基于sap.connector.dll和sap.connector.rfc.dll)
- 关于老板
- AutoFac文档2
- java第四周
- 怎样才能有自己的思维和idea
- vs2008 创建空MFC工程
- ZOJ_1051_A New Growth Industry
- 【开源自动化测试疑难FAQ】【WebDriver】RemoteWebDriver日志问题处理过程