添加图片上传的表单,在form 添加属性onsubmit,提交之前会执行其中的方法,若返回FALSE,不会提交,返回TRUE,才会提交

 

<form method="post" enctype="multipart/form-data" action="/UpLoad.ashx" onsubmit="return check()">

<input type="file" name="fileUpLoad" />
<input type="submit" value="上传" />

</form>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
相关资源
相似解决方案