3-js-document.write函数重写页面

通过清心醉

3-js-document.write函数重写页面

<h1>My First Web Page</h1>

<p>My First Paragraph.</p>

<button onclick=”myFunction()”>点击这里</button>

<script>
function myFunction()
{
document.write(“糟糕!文档消失了。”);
}
</script>

关于作者

清心醉 administrator

发表评论

如果喜欢作者的文章,您可以打赏给作者:

TRC20(虚拟货币):


ERC20(虚拟货币):


Bitcoin(BTC):