简体   繁体   English

ZURB Foundation 5第三党javascript

[英]ZURB Foundation 5 3rd party javascript

I have a problem with Zurb Foundation and 3rd party javascripts. 我对Zurb Foundation和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. 我正在Foundation 5中创建网站(因为响应式设计很好),并且一切正常,直到我尝试在脚本标记内的页面上添加自己的JavaScript为止。

When I remove the $(document).foundation(); 当我删除$(document).foundation(); call at the end of the document, everything I've wrote in JavaScript begin to work. 调用文档末尾,我用JavaScript编写的所有内容都开始起作用。

What is wrong? 怎么了? How should I include 3rd party JavaScript code and call it, to make it work without conflict? 我应该如何包含第三方JavaScript代码并进行调用,以使其正常工作而不会发生冲突?

I'm using Notepad++ to code. 我正在使用Notepad ++进行编码。

I believe Foundation 5 uses jQuery 2, which may not be compatable with the 3rd Party scripts you are including. 我相信Foundation 5使用jQuery 2,它可能与您所包含的3rd Party脚本不兼容。 Try add an older version of jQuery (along with the version that's included with Foundation). 尝试添加旧版本的jQuery(以及Foundation附带的版本)。 It's possible to do so without there being a conflict, see this post . 可以这样做而不会发生冲突, 请参阅这篇文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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