Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我生成了一份试卷。我想在时间达到最大值时自动提交试卷。
我使用java脚本和调用document.forms["form1"].submit方法生成计时器,但它没有提交,它会在时间完成时刷新页面。
document.forms["form1"].submit
形式:
<form id='myform'>
JavaScript:
setTimeout(function(){document.forms["myform"].submit();},3000);