JS对象转换为Jquery对象实现代码


复制代码 代码如下:

$(document.getElementsByTagName("a")).each(function () {
if ($(this).text() == "jquerys") {
$(this).addClass("navTitle");
}
});

« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3