在某些部分禁用Jquery [英] Disable Jquery in certain sections
本文介绍了在某些部分禁用Jquery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从一个网站上添加了很酷的CSS菜单,它使用的是jquery 2及更高版本.但是我有自己的自定义元素,现在该版本无法正常使用,IE总是在该jquery上出错,我想知道是否可以例如,在页面的某些部分禁用jQuery
I added cool css menu from one website, it uses jquery version 2. and above, but I had my own custom elements which now works not properly with that version, IE always drops error on that jquery, I wonder if I could disable jquery in some sections of page, for example
<div>jquery version 2.* enabled here</div> <div>jquery is disabled here</div>
以便我可以使用自己的自定义元素,而无需触及jquery函数.
so that I can use my own custom elements without touching jquery functions.
推荐答案
不,您不能.使用最新的jQuery 1.x,这两种版本均适用.
No you can not. Use the latest jQuery 1.x, which will work for both.
http://jquery.com/download/#jquery-1-x
这篇关于在某些部分禁用Jquery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文