POST TIME:2021-05-23 01:16
织梦网站js写法
var o = document.querySelectorAll("#anqu"); for (var i = 0; i < o.length; i++) { o[i].innerHTML = o[i].innerHTML.replace(/gaosudu/g,"tuicha"); } |
织梦网站jquery写法
$("div [id=anqu]").each(function(){ console.log(2); $(this).html().replace(/gaosudu/g,"tuicha"); }); |