
$('.tooltipper').live('ready',function(){ $(this).tooltip()} 但它没有成功—准备好的事件没有发生.负载相同.我已经读过livequery可以产生我正在寻找的结果,但是肯定有一种方法可以使用jquery .live()将它拉下来,考虑到文档说它适用于所有jquery事件,其中我相信准备就绪.
解决方法 引自jQ API( http://api.jquery.com/live/):In jquery 1.3.x only the following JavaScript events (in addition to custom events) Could be bound with .live(): click,dblclick,keydown,keypress,keyup,mousedown,mousemove,mouSEOut,mouSEOver,and mouseup.
As of jquery 1.4 the .live() method supports custom events as well as all JavaScript events.
As of jquery 1.4.1 even focus and blur work with live (mapPing to the more appropriate,bubbling,events focusin and focusout).
As of jquery 1.4.1 the hover event can be specifIEd (mapPing to “mouseenter mouseleave”).
.live()似乎不支持ready事件.
总结以上是内存溢出为你收集整理的dom – jQuery与ready或load事件一起生活全部内容,希望文章能够帮你解决dom – jQuery与ready或load事件一起生活所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)