在Zurb的Foundation Framework中添加jquery插件 [英] adding jquery plugin to Zurb's Foundation Framework

查看:66
本文介绍了在Zurb的Foundation Framework中添加jquery插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Zurbs的基金会快速原型框架,非常好。我想知道将另一个jquery插件集成到其中的正确方法。

I am working with Zurbs's Foundation rapid prototyping framework and very good it is to. I am wondering the proper way to integrate another jquery plugin into it.

基础对于如何包含其他插件非常挑剔。部分框架是一个充满功能的app.js文件。我应该直接在那里添加我的新功能吗?

foundations is very picky about how you include other plugins. Part of the frameworks is an app.js file full of functions. Should I be adding my new functions direct to there?

虽然我理解js(阅读确定)我不是js专家所以请一个明确解释的答案。

Whilst I do understand js (reading ok) I am no js expert so a clearly explained answer please.

谢谢

(工作的网站是vincentstephens.co.uk/vs5.1/portfolio - 试图整合一段时间线滑块位于vincentstephens.co.uk/vs5.1/portfolio/portfolio.html)

(site working on is vincentstephens.co.uk/vs5.1/portfolio - trying to integrate a time line slider located at vincentstephens.co.uk/vs5.1/portfolio/portfolio.html)

推荐答案

不确定我是否'我错过了一些东西,但你不需要将它整合到基础。如果你有另一个jquery插件只包含.js作为任何脚本,你就完成了。

Not sure if I'm missing out on something but you don't need to integrate it to foundation. If you have another jquery plugin in just include the .js as any script and you're done.

foundation.min.js 是一个包含所有基础插件和jquery的缩小文件 - 您可能希望缩小插件并添加到此文件以进行优化。

The foundation.min.js is a minified file with all foundation plugins as well as jquery - you might want to minify your plugin and add to this file for the purpose of optimizing.

app.js 是初始化插件的地方。这通常是您调整自己的设置和首选默认值的文件,而不是触及 foundation.min.js

The app.js is where you initialize the plugins. This is generally the file you fiddle your own settings and preferred default values, not touching the foundation.min.js.

这篇关于在Zurb的Foundation Framework中添加jquery插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆