<div class="codetitle"> <span><a style="CURSOR: pointer" data="59698" class="copybut" id="copybut59698" onclick="doCopy('code59698')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code59698"> <br>$(document.getElementsByTagName("a")).each(function () { <br>if ($(this).text() == "jquerys") { <br>$(this).addClass("navTitle"); <br>} <br>}); <br> </div>