S为什么我的click()事件不能用,坐等,谢谢! <head> [removed] var i=0; function test1(){ alert("hello"); i++; var f=document.getElementById("files1"); if(f!=null){ f.disabled=true; } alert(i); if(i==3){ var f=document.getElementById("files1"); f.disabled=false; f.id="ss"; alert("what"); f.click();//为什么这里没有执行 alert("why"); } } </head> <body> <div id="filedt" onclick="test1()"> <input type="file" name="file" id="files1"/> </div> </body> </html>studyjs 4 777413 年前