JS对象转换为Jquery对象实现代码
发布时间:2016-12-30 来源:查字典编辑
摘要:复制代码代码如下:$(document.getElementsByTagName("a")).each(function(){if($(th...
复制代码 代码如下:
$(document.getElementsByTagName("a")).each(function () {
if ($(this).text() == "jquerys") {
$(this).addClass("navTitle");
}
});