首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

Query源码 — after步骤

2012-09-12 
Query源码 — after方法after方法定义在jQuery.prototypeafter: function() {if ( this[0] && this[0].pare

Query源码 — after方法
after方法定义在jQuery.prototype

after: function() {if ( this[0] && this[0].parentNode ) {return this.domManip(arguments, false, function( elem ) {this.parentNode.insertBefore( elem, this.nextSibling );});} else if ( arguments.length ) {var set = this.pushStack( this, "after", arguments );set.push.apply( set, jQuery(arguments[0]).toArray() );return set;}}

热点排行