简体   繁体   中英

How i can use jQuery and Spry framework both in a web-application

i want to use jQuery and Spry both in my web-application. how it's possible.

the two thing i used from different different framework :>

tab from spry and famespam from jQuery

You can use jQuery independently of anything else, doesn't matter what other libraries you choose. All you need to be careful about is the $ variable, which might be used somewhere else.

That's why jQuery has the noConflict() method. If your other framework uses the $ variable, simply do

$.noConflict();
// other libraries can use the $ now ...
// jQuery is still available under the jQuery variable, eg.
jQuery("foo").click(...)

More information about $.noConflict()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM