<html>
<body>
<p>单击按钮可创建带有“单击我”文本的输入按钮。</p>
<button onclick="myFunction()">试一试</button>
<script>
function myFunction() {
var x = document.createElement("INPUT");
x.setAttribute("type", "button");
x.setAttribute("value", "单击我");
document.body.appendChild(x);
}
</script>
</body>
</html>