jQuery this and Selector $(this:first-child).css('

<p>一</p><p>$(&#39;.galler_attr&#39;).bind(&#39;click&#39;, function() {</p><p> $(this).find(&#39;:first-child&#39;).css(&#39;color&#39;, &#39;red&#39;);</p><p>});</p><p>二</p><p>$(&#39;.galler_attr&#39;).bind(&#39;click&#39;, function() {</p><p> $(&#39;:first-child&#39;, this).css(&#39;color&#39;, &#39;red&#39;);</p><p>});</p>
RangeTime:0.013328s
RangeMem:203.95 KB
返回顶部 留言