jQuery 作为时下前端的"霸主"。它的强大已毋庸置疑。简洁,效率,优雅,易用等优点让人很容易对它珍爱有加。作为js的小菜,为了提升自我等级,根据各大神博客精辟的解析,硬啃了jQuery源码。在此,并不是要解析啥源码啥的(也没到那个级别哈),读书笔记,仅此而已。所谓磨刀不误砍柴功,jQuery在大...
分类:
Web程序 时间:
2015-06-10 01:04:48
阅读次数:
126
//这里是插件接口jQuery.extend = jQuery.fn.extend = function() { var src, copyIsArray, copy, name, options, clone, target = arguments[0] || {}, //参数数组argumen....
分类:
Web程序 时间:
2015-06-09 16:31:34
阅读次数:
159
今天主要接着上一篇来讲讲jQuery.prototype中的一些方法,闲话不多说,直接开始。----------------------------------------------------------------------------------- toArray: function() ...
分类:
Web程序 时间:
2015-06-09 13:33:54
阅读次数:
172
jQuery.fn = jQuery.prototype = { jquery: core_version, constructor: jQuery, init: function( selector, context, rootjQuery ) { var match, elem; if ( .....
分类:
Web程序 时间:
2015-06-09 13:18:48
阅读次数:
129
前面转了一个将jQuery总体框架的文章建议先阅读var readyList, rootjQuery, core_strundefined = typeof undefined, location = window.location, document = window.document, docE...
分类:
Web程序 时间:
2015-06-09 11:34:34
阅读次数:
118
HTTP协议,不了解;TCP三次握手,课本上学过;web性能瓶颈,没关注;闭包,就返回一个函数嘛.连代码打包都没试过,sass、less、grunt,一律没听过,精通HTTP协议、JQUERY、Bootstrap、angular之类之类的JS的OOP,没试过;JQUERY源码,没看过;JQUERY插...
分类:
其他好文 时间:
2015-06-08 21:09:25
阅读次数:
215
no1:
// Define a local copy of jQuery
var jQuery = function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( selector, contex...
分类:
移动开发 时间:
2015-06-01 09:47:11
阅读次数:
196
文章转自:jQuery源码分析系列-Aaron版本截止到2013.8.24 jQuery官方发布最新的的2.0.3为准附上每一章的源码注释分析 :https://github.com/JsAaron/jQuery正在编写的书 -jQuery架构设计与实现本人在慕课网的教程(完结)jQuery源码解析...
分类:
Web程序 时间:
2015-05-31 13:46:28
阅读次数:
137
1、jquery初始化function jQuery() { return new jQuery.prototype.init();}jQuery.prototype.init = function () {}jQuery.prototype.css = function () {}为啥链式运...
分类:
Web程序 时间:
2015-05-25 20:18:33
阅读次数:
123
外部插件:
$.fn.tinytip = function(text, customOptions) {
debugger;
if (text && typeof text === 'object'){
customOptions = text;
text = customOptions.tooltip;
...
分类:
编程语言 时间:
2015-05-22 09:45:31
阅读次数:
121