看了很多Bootstrap源码,发现每句话都不加分号,这样写有什么特殊意义么?随便贴一段:Tab.prototype.show=function(){var$this=this.elementvar$ul=$this.closest('ul:not(.dropdown-menu)')varselector=$this.attr('data-target')if(!selector){selector=$this.attr('href')selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')//stripforie7}if($this.parent('li').hasClass('active'))returnvarprevious=$ul.find('.active:lasta')[0]vare=$.Event('show.bs.tab',{relatedTarget:previous})$this.trigger(e)if(e.isDefaultPrevented())returnvar$target=$(selector)this.activate($this.parent('li'),$ul)this.activate($target,$target.parent(),function(){$this.trigger({type:'shown.bs.tab',relatedTarget:previous})})}
千巷猫影
相关分类