- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 JavaScript 类库起手式 ——万元归一
/** * selector 选择器 * content 上下文 * index 元素位置 */ function $(selector, context, index) { return new $.prototype.init(selector, context, index); }...
2018-06-11 09:41:54 293
原创 JavaScript 类库第四式 —— 四面楚歌
(function (window, o, factory) { //TODO 第一式&&第二式 window[o] = $; factory($); })(this, '$', function ($) { //TODO 第三式 });
2018-06-11 10:00:36 234
原创 JavaScript类库第三式 —— 聚气成刃
$.extend({ eq: function (i) { return $(this[i], this.selector, i) }, filter: function (e) { return $(e, this[0], 0) } })//console.log($(...
2018-06-11 09:54:34 248
原创 JavaScript类库第二式 —— 气沉丹田
$.extend = function (source) { for (var key in source) { if (source.hasOwnProperty(key)) { $.fn[key] = source[key]; } } };
2018-06-11 09:49:54 232
js 下载工具
2019-04-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人