摘要:
jQuery.fn jQuery.fn = jQuery.prototype = { init: function( selector, context ) {//…. //…… }; 原来 jQuery.fn = jQuery.prototype.对prototype肯定不会陌生啦。 虽然 jav 阅读全文
posted @ 2016-12-03 22:33
1883808
阅读(203)
评论(0)
推荐(0)
摘要:
例子如下:(function($) { var compiled = {}; $.fn.handlebars = function(template, data) { if (template instanceof jQuery) { template = $(template).html(); } 阅读全文
posted @ 2016-12-03 22:23
1883808
阅读(373)
评论(0)
推荐(0)
摘要:
最近在研究jQuery。把jQuery.extend扩展函数的用法记录下来。1、扩展jQuery静态方法. 1$.extend({2test:function(){alert('test函数')}3}) 用法: $.test() 2、合并多个对象.为jQuery.extend(css1,css2)为 阅读全文
posted @ 2016-12-03 16:15
1883808
阅读(116)
评论(0)
推荐(0)
浙公网安备 33010602011771号