使用JQuery插件 [英] Using JQuery Plugins

查看:64
本文介绍了使用JQuery插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我想将Jquery插件添加到我的网站时,请使用插件的Javascript文件和JQuery Production或developemnt .js文件.你们能为什么使用所有这些.js文件有用吗?

解决方案

您需要插件的Javascript文件和其中一个开发文件或生产主要的jQuery文件.

开发版本和生产版本之间的区别实际上只是大小-生产版本已经通过Javascript缩小程序缩小了很多,但它使人难以理解.如果您不需要浏览jQuery库的源代码(并且您可能只是不需要使用插件),则可以使用正式版.


When I want to add a Jquery plugin to my web site, have I to use the plugin''s Javascript file & the JQuery Production or developemnt .js files. Can you guys why it is useful to use all that .js files?

解决方案

You need the plugin''s Javascript file(s) and either one of the development or production main jQuery files.

The difference between the development and production version is really just size - the production one has been through a Javascript minifier to make it a lot smaller, but it makes it unreadable by eye. If you don''t need to look through the source of the jQuery library (and if you''re just using a plugin you probably don''t) then use the production version.


这篇关于使用JQuery插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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