站长资源网络编程

JS对象转换为Jquery对象示例

整理:jimmy2026/8/6浏览2
简介复制代码 代码如下: $(document.getElementsByTagName("a")).each(function () { if ($(this).text() == "jquerys") { $(this).addClass("navTitle"); } });
复制代码 代码如下:
$(document.getElementsByTagName("a")).each(function () {
if ($(this).text() == "jquerys") {
$(this).addClass("navTitle");
}
});