问题
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