如果要创建一个<input type="text">应该使用哪条语句?最好能给个实例程序段。谢谢。
2 回答

ibeautiful
TA贡献1993条经验 获得超5个赞
var
input = document.createElement(
'input'
);
input.setAttribute(
'type'
,
'text'
);
添加回答
举报
0/150
提交
取消