var o = document.querySelectorAll("#anqu");
for (var i = 0; i < o.length; i++)
{
o[i].innerHTML = o[i].innerHTML.replace(/gaosudu/g,"tuicha");
}
$("div [id=anqu]").each(function(){
console.log(2);
$(this).html().replace(/gaosudu/g,"tuicha");
});
织梦网站用js/jquery如何给多个相同id赋值
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/cbf72cbcfcfdda0c4a48e775e76fa3ff.html