87,910
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<script type="text/javascript">
function create_input_text(){
var text = document.getElementById("input_text");
var e = document.createElement("input");
e.type = "text";
e.value = "增加的input文本框...";
var object = text.appendChild(e);
}
</script>
</head>
<body>
<div><input type="button" id="btn_one" value="创建input文本框" onclick="create_input_text()" /></div>
<div id="input_text"></div>
</body>
</html>