jQuery插件-这是一个好习惯吗? [英] jQuery plugins - is it a good practice?

查看:76
本文介绍了jQuery插件-这是一个好习惯吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,
我正在阅读有关js,jQuery&从几周开始的dom,但今天我读了

Hey,
I am reading about js, jquery & dom from few weeks but today i read a Tutorial in which he uses plugin for delay & ease.

使用插件是一种好习惯吗?

Is it a good practice to use plugin?

附加内容:

delay.js代码在四到五行之间完成.
也许我们也可以编写它.

The delay.js code is finished between four to five lines.
Maybe we could also just write it.

请帮助我理解它.
谢谢.

Please help me to understand it.
Thanks.

推荐答案

只要它们能为您的工作增添价值,我想在js中使用插件是没有错的.
查看jquery的
摘要和最佳实践.

As long as they add value to your work, I guess there's nothing wrong of use of plugin in js.
Look at the jquery's Summary and Best Practises.

请参阅以下链接.他们会清除您的疑问.

See this below links. They'll clear your doubt.

  • Plugin in js - a good practise ?
  • Too many jquery plugins ?

这篇关于jQuery插件-这是一个好习惯吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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