今天主要接着上一篇来讲讲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
这个方法在jQuery源码中比较靠后的位置出现,主要用于两处。1是构造jQuery对象的时候使用2.是为DOM操作提供底层支持,这也就是为什么先学习它的原因。之前的随笔已经分析过jQuery的构造函数了,也提到了有12个分支,其中有一个分支就是通过jQuery.buildFragment方法来处理的...
分类:
Web程序 时间:
2015-05-14 23:22:47
阅读次数:
137
本文遵守CC-BY。前言: 标题真是不知道如何命名,就取最重要的一句话吧。话说最近在看javascript权威指南,感觉对这个语言有种莫名的喜欢。。。这个也应该是一个比较经典的问题了,不是出自此书,据说是jQuery源码中的一个用法,网上找了一阵,stackoverflow上直接是0 result....
分类:
其他好文 时间:
2015-05-09 13:01:37
阅读次数:
170