function getParent($this,selector){ var p = $this.parent(); while(p){ if(p.is(selector)){ return p; } p = p.parent(); } return null; }
jquery选择指定的父元素
↧
↧
Trending Articles
More Pages to Explore .....