是定时的检测页面内容吗?
var timer=setInterval(to_replace,1000);
function to_replace(){
body.innerHTML=body.innerHTML.replace("sssssss","");
}
var timer=setInterval(to_replace,1000);
function to_replace(){
body.innerHTML=body.innerHTML.replace("sssssss","");
}
而且也没有把SSSSSS该字符串替换
是不是有错了
在body前加"document."再试试,会不会被屏蔽:document.body.innerHTML=document.body.innerHTML+"1212";
比如:<p align='center'><font color='blue'>效果已经实现 yyyyyy 2008 感谢。莱坞<a href='http://www.yyyyyy.net'>erwrwrqwerq</a>莱坞,恭恭敬敬好莱坞。</font></p>
我想把以上的字符串全部替换为空就失效了!