javascript 动态生成的input如何用setAttribute相应事件

2025-03-13 00:43:31
推荐回答(1个)
回答1:

你ipt本身就是dom对象,不用再getElementById获取

ipt.onclick=function(){}