随笔分类 - js
摘要:jQuery为开发插件提拱了两个方法,分别是:· jQuery.fn.extend();或者$.fn.extend jQuery.extend();或者$.extend jQuery.fn ($.fn) 原来 jQuery.fn = jQuery.prototype.对prototype肯定不会陌生
阅读全文
摘要:1.this 、$this 、$(this) 打印结果 因此:this其实是一个html 元素;$(this)是一个JQuery对象 用法:this.id="test" ; $(this).attr("id","test"); $this:在jQuery中声明一个变量
阅读全文

浙公网安备 33010602011771号