Disable Jquery in certain sections

烈酒焚心 提交于 2019-12-25 06:35:21

问题


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>

so that I can use my own custom elements without touching jquery functions.


回答1:


No you can not. Use the latest jQuery 1.x, which will work for both.

http://jquery.com/download/#jquery-1-x



来源:https://stackoverflow.com/questions/22712037/disable-jquery-in-certain-sections

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!