JS对象转换为Jquery对象示例
(编辑:jimmy 日期: 2025/5/11 浏览:3 次 )
复制代码 代码如下:
$(document.getElementsByTagName("a")).each(function () {
if ($(this).text() == "jquerys") {
$(this).addClass("navTitle");
}
});
$(document.getElementsByTagName("a")).each(function () {
if ($(this).text() == "jquerys") {
$(this).addClass("navTitle");
}
});
下一篇:JavaScript原型链示例分享