str=str。replace(/
}
var str=document。getElementById("content")。innerHTML;//这里是整个页面代码 ,也可以指定id
/gi,"2");
window。onload = function{ //window。onload 打开网页就运行
"index。html">回书目(快捷键:Enter)
str=str。replace(/\/gi,"");
str=str。replace(/\<\/P\>/gi,"");
str=str。replace(/\