发布网友 发布时间:2022-04-25 03:36
共4个回答
热心网友 时间:2022-04-22 21:37
<script type="text/javascript">
window.onload = function(){
var div = document.getElementById('neirong');
div.innerHTML = div.innerHTML.replace(/好/g,'不好').replace(/你/g,'我').replace(/是/g,'no');
}
</script>
热心网友 时间:2022-04-22 22:55
<!DOCTYPE html>
<html>
<body>
<p id="p1">Hello World!</p>
<script>
document.getElementById("p1").innerHTML="已经不是Hello了!";
</script>
<p>百度知道</p>
</body>
</html>
热心网友 时间:2022-04-23 00:30
<script>var dom = document.getElementById( "neirong" );
var neirong = dom.innerHTML;
neirong = neirong.replace( /好/g, "不好" );
neirong = neirong.replace( /你/g, "我" );
neirong = neirong.replace( /是/g, "no" );
dom.innerHTML = neirong;
</script>
热心网友 时间:2022-04-23 02:21
FDXFXC GDGFFVF