Can I make a <button> not submit a form?

前端 未结 8 1091
耶瑟儿~
耶瑟儿~ 2020-11-22 05:36

I\'ve got a form, with 2 buttons



8条回答
  •  有刺的猬
    2020-11-22 05:47

    Yes, you can make a button not submit a form by adding an attribute of type of value button:

提交回复
热议问题