js在页面上循环输出十个按钮

代码

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<script language="JavaScript">
//var tel = "13333333333";

for(var i = 0; i < 10; i++)
document.write("<input type='button' value='按钮' />")

</script>
<input type='button' value='按钮' />

</body>
</html>

效果图

js在页面上循环输出十个按钮_javascript