原文:jQuery中live()使用报错,TypeError: $(...).live is not a function

原博文 https: blog.csdn.net sdfdyubo article details 使用 原写法 调整后的写法 说明 jquery中的live 方法在jquery . 及以上的版本中已被废弃了,如果使用,会抛出TypeError: ... .live is not a function错误。 解决办法 例子 例子 ...

2018-08-25 09:59 3 3843 推荐指数:

查看详情

报错TypeError: $(...).live is not a function解决方法

报错的原因是这个方法在jquery1.7以后就被废除了, 1.7以后的版本改用.on()方法 之前的用法: .live(events, function)    新方法: .on(eventType, selector, function ...

Wed Feb 13 18:10:00 CST 2019 0 710
jQuery 1.9 .live() is not a function

jquerylive()方法在jquery1.9及以上的版本已被废弃了,如果使用,会抛出TypeError: $(...).live is not a function错误。 解决方法: 之前的用法: .live(events, function) 新方法 ...

Wed Dec 09 02:02:00 CST 2015 0 15020
jQuerylive()变更

开始的时候在jQuery.1.7.1中使用了.live()觉得很好用,特别是在绑定事件之后再加入的元素的事件绑定上很方便(第一次live之后以后添加的元素就不需要绑定啦) 后来jQuery更新到1.9.1,页面的.live报错:"has no method live", 后来查了文档才知道 ...

Mon Feb 25 18:52:00 CST 2013 1 3383
jquery报.live() is not a function的解决方法

jquery报.live() is not a function的解决方法: jquerylive()方法在jquery1.9及以上的版本已被废弃了,如果使用,会抛出TypeError: $(...).live is not a function错误。 解决方法: 之前的用法 ...

Sat Apr 29 00:00:00 CST 2017 0 2310
Jquerybind和live的区别

Jquery绑定事件有三种方法:以click事件为例 (1)target.click(function(){}); (2)target.bind("click",function(){}); (3)target.live("click",function ...

Tue Apr 14 00:22:00 CST 2015 0 3078
jQuery.bind() .live() .delegate() .on()的区别

bind(type,[data],fn) 为每个匹配元素的特定事件绑定事件处理函数 live(type,[data],fn) 给所有匹配的元素附加一个事件处理函数,即使这个元素是以后再添加进来的 delegate(selector,[type],[data],fn ...

Sun Mar 31 01:01:00 CST 2013 4 58737
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM