复制代码 代码如下:
$(document.getElementsByTagName("a")).each(function () {
if ($(this).text() == "jquerys") {
$(this).addClass("navTitle");
}
});
$(document.getElementsByTagName("a")).each(function () {
if ($(this).text() == "jquerys") {
$(this).addClass("navTitle");
}
});