jQuery代表问题在Firefox 11中 [英] jQuery delegate issue in Firefox 11

查看:127
本文介绍了jQuery代表问题在Firefox 11中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

jQuery的委托函数给我的插件不是一个函数的错误。所以我试着运行 jQuery网站上给出的例子,即使是在Firefox 11中出现错误。它在Safari和Chrome浏览器中工作正常。



有什么想法/评论? p
$ b

解决方案

'重新使用1.7+,使用.on()而不是.delegate()


jQuery delegate function is giving 'not a function' error for my plugin. So I tried running the example given on jQuery site, even that is giving an error in Firefox 11. It works fine in safari and chrome.

Any thoughts/comments?

解决方案

If you're using 1.7+, use .on() instead of .delegate()

这篇关于jQuery代表问题在Firefox 11中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆