在js中,form中的onsubmit和action的区别:

  onsubmit="函数名",提交一个函数,执行当前的这个函数,点击<input type="submit" name ="submit"/>要执行的函数

  action="新的网页名", 转到一个新页面执行操作,一般是点击<input type="button" />要执行的页面操作,自己理解而已,有不正确的请欢迎各位大虾指正,谢谢

相关文章:

  • 2022-12-23
  • 2021-11-18
  • 2021-10-19
  • 2022-12-23
  • 2021-12-05
  • 2021-11-18
猜你喜欢
  • 2021-12-24
  • 2022-12-23
  • 2021-12-15
  • 2021-12-22
  • 2021-10-28
  • 2022-12-23
相关资源
相似解决方案