简体   繁体   中英

ZURB Foundation 5 3rd party javascript

I have a problem with Zurb Foundation and 3rd party javascripts.

I'm creating website in Foundation 5 (because of nice responsive design) and everything works great until I try to add my own javascripts on the page inside the script tags.

When I remove the $(document).foundation(); call at the end of the document, everything I've wrote in JavaScript begin to work.

What is wrong? How should I include 3rd party JavaScript code and call it, to make it work without conflict?

I'm using Notepad++ to code.

I believe Foundation 5 uses jQuery 2, which may not be compatable with the 3rd Party scripts you are including. Try add an older version of jQuery (along with the version that's included with Foundation). It's possible to do so without there being a conflict, see this post .

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