学习博客链接:

https://www.cnblogs.com/cyStyle/

② https://www.cnblogs.com/chengyunshen/p/7277305.html

③ https://www.cnblogs.com/sjqq/p/6410839.html

jQuery插件的开发包括两种:

(1)类级别的插件开发,即给jQuery添加新的全局函数,jQuery的全局函数就是属于jQuery命名空间的函数,相当于给jQuery类本身添加方法。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgwAAAAXCAYAAABnCBd+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAz+SURBVHhe7Z1NbBRHFoDf7gEhDjE/x+wuB8aAEQwCKwg2CHEzDgjMBQ4IZTiBOJhoFYEvcIgvhOyBcIjYkwdFPuA9gCMS23uKCAkIyUYZIszPIGTMHg1Yu0KIy+573fVm3pSruqrbM+MJrk8qTVfVq/fqp+tnqqtn/vDy9X//B79jli5doq4CgUAgEAg0ij+qz0AgEAgEAgErYcEQCCwyLqXYlbPJJumgOF/3vpO1jFnSNao+56O3GW3cqLoiGZOcb5iNNLI26qEjC2HBEAgsAuo9wPS+fZeok+Jd7n3EVc+NGuhJbz3rNGs+s5RfDyO/zdULqiuTPmmrUfepzbaOj0yzWXRnGMZOLIGDxWNw7e0/oEuFBZrMs+OwrNQBpQOfQU4FVShfhJ2fAhR/NsQZKcOljzfAw7Pv4Js9KiiBhWl/yuNRgCu3odevUA2BB0H+9CFJ1haXZqCz6X6M7TSK7bQH22mtCvu9IOvFdu3CV9anrn1t6nAe0uSbkPK2ax1bnI9tHxmGZG2QDpeupHzqsL60SP1J9pLy2ShaZMEwBbev3oIXyvfBhr3QtWm58iVTnwVDPOn0jSsvLL4FxdiPS6C/7QHc2tKEGc26YBiBk0sPAFz3m/xjWmPBQHr7O7D+TlnqbxTL3AMtcV/5DDZZBkDWqet3+U2YFwxluINtfVf001ZZUCTViw1XfdpIU5c+de3CR8d8y2HDZjvJHsmb4lmPrlP6bfYIm05TGpueJP0uTPaZrDrT0hILhulfBuHFn47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TqPIqqOWrONHKTnhNRHAZzKptN5hc7ceVpllHGj10BqYFi3D5v5kk4SosZXFVGvigR8SYeWH9UGla35Ek2QYQ02uJ4TUh8FCNBL3xd1zJ2nVUY5Z3oNJGF9pmOIcgB87WYcRVQ9tszj1mXnsymnzSZR9dQDf24HSc8M1a5BTaYGxisE5RgvkuY34uftGhAaD6cAspX6Q6Quxhc55pMAN5NsDKsxRaetQbnVZoboxptte3pZz5+3E6rP9lpiFQRBEISYyHuQgiAIguBAHKQgCIIgOBAHKQiCIAgbAPg/sMpHpILeSgcAAAAASUVORK5CYII=" alt="" />

大佬的总结经验(第一个链接):

(1)把全部代码放在闭包中(闭包相当于一个私有作用域,外部无法访问到内部的信息,并且不会存在全局变量的污染情况)

(2)提供插件的默认参数选项

(3)遍历多个元素并返回(Sizzle选择器引擎,链式调用)

(4)一次性代码放在主循环外

(5)定义公有方法和私有方法(增加代码的健壮性)

(function($) {
// 在插件容器内,定义一个私有方法
var privateFunction = function() {
// code here
}; // 通过字面量创造一个对象,存储我们需要的共有方法
var methods = {
// code here
}; })(jQuery);

(6)添加持久性数据($.data函数为元素添加信息),$.removeData函数来删除相应的数据

学习总结:jQuery插件开发模式和结构的更多相关文章

  1. jquery学习笔记---jquery插件开发

    http://www.cnblogs.com/Wayou/p/jquery_plugin_tutorial.html jquery插件开发:http://www.cnblogs.com/damonla ...

  2. (转)jQuery插件开发模式

    要说jQuery 最成功的地方,我认为是它的可扩展性吸引了众多开发者为其开发插件,从而建立起了一个生态系统.这好比大公司们争相做平台一样,得平台者得天下.苹果,微软,谷歌等巨头,都有各自的平台及生态圈 ...

  3. jQuery插件开发模式

    jQuery插件开发模式 软件开发过程中是需要一定的设计模式来指导开发的,有了模式,我们就能更好地组织我们的代码,并且从这些前人总结出来的模式中学到很多好的实践. 根据<jQuery高级编程&g ...

  4. 浅谈jquery插件开发模式

    首先根据<jQuery高级编程>的描述来看,jQuery插件开发方式主要有三种: 通过$.extend()来扩展jQuery 通过$.fn 向jQuery添加新的方法 通过$.widget ...

  5. jquery学习笔记---插件开发模式和结构

    JQuery插件开发http://www.cnblogs.com/damonlan/archive/2012/04/06/2434460.html github教程:https://github.co ...

  6. 【转载】【JQuery学习】jQuery插件开发

    JQuery做得最好的就是他的闭包和扩展性.超级简单的扩展方法,让更多的人可以轻松的开发定制自己的jQuery插件.下面的东西是转载过来当做学习材料的.虽然貌似有点古老,但是jQuery的变更一直都不 ...

  7. jQuery插件开发精品教程,让你的jQuery提升一个台阶

    要说jQuery 最成功的地方,我认为是它的可扩展性吸引了众多开发者为其开发插件,从而建立起了一个生态系统.这好比大公司们争相做平台一样,得平台者得天下.苹果,微软,谷歌等巨头,都有各自的平台及生态圈 ...

  8. jquery插件开发继承了jQuery高级编程思路

    要说jQuery 最成功的地方,我认为是它的可扩展性吸引了众多开发者为其开发插件,从而建立起了一个生态系统.这好比大公司们争相做平台一样,得平台者得天下.苹果,微软,谷歌等巨头,都有各自的平台及生态圈 ...

  9. Jquery插件开发精品教程

    最开始接触jquery对他提供的各种插件总是十分有兴趣,但是总是不理解为什么这样写,从网络上查询了很久终于找到这篇文章,讲解的很详细,分享给大家. 要说jQuery 最成功的地方,我认为是它的可扩展性 ...

随机推荐

  1. centos7.4安装redis以及配置外网访问

    一.安装redis 第一步:下载redis安装包 wget http://download.redis.io/releases/redis-4.0.6.tar.gz [root@VM_34_108_c ...

  2. elasticsearch 请求体查询方式整理

    空查询(empty search) —{}— 在功能上等价于使用 match_all 查询, 正如其名字一样,匹配所有文档: GET /_search { "query": { & ...

  3. Kali渗透测试1-Netcat

    What is Netcat? Netcat is a featured networking utility which reads and writes data across network c ...

  4. Go指南 - 笔记

    Go指南 - 笔记 标签(空格分隔): Go Go指南 一.基础 1.包 每个Go程序都是由包构成的. 程序从main包开始运行. 包名与导入路径的最后一个元素一致 2.导入 分组导入:使用圆括号组合 ...

  5. LaTeX源代码显示宏包listings应用备忘之新语言定义

      我目前了解的LaTeX中有关源代码显示的宏包有两个,这里介绍其中的listings宏包.listings宏包中已经定义了部分计算机语言的显示样式,但还是有些语言没有定义,我们一起看一下如何定义新的 ...

  6. # 课下测试ch02

    课下测试ch02 1.假设下面位串是基于IEEE格式的5位浮点表示,一个符号位,2个阶码位,两个小数位.下面正确的是(AD) A . 3.5的表示是[01011] B . -1.0的表示[01111] ...

  7. 洛谷 2953 [USACO09OPEN]牛的数字游戏Cow Digit Game

    洛谷 2953 [USACO09OPEN]牛的数字游戏Cow Digit Game 题目描述 Bessie is playing a number game against Farmer John, ...

  8. libpcap详解

    转发自http://blog.chinaunix.net/uid-21556133-id-120228.html libpcap(Packet Capture Library),即数据包捕获函数库,是 ...

  9. layer.msg(msg, time, parme)设置图标问题

    layer.msg只提到3个参数,实际上有第4个参数,第4个参数就是msg关闭后执行的回调.   layer.msg('提示', 2, 1, function(){})   第一个参数:提示 第二个参 ...

  10. 电商打折套路分析 —— Python数据分析练习

    电商打折套路分析 ——2016天猫双十一美妆数据分析 数据简介 此次分析的数据来自于城市数据团对2016年双11天猫数据的采集和整理,原始数据为.xlsx格式 包括update_time/id/tit ...