How do I submit a form using vue?

I just contacted the vue, backend and gave it to the interface. I"m not sure how to submit it with post.
looked up a lot of information and didn"t figure out how to submit it to the server.

clipboard.png

Jun.16,2021

form submission is relatively simple and has nothing to do with the framework:

<form action="xxx.php" method="post">
  <input type="text" name="id" value="10001">
  <input type="submit" value ="" />
</form>

vue said they did not provide ajax content in order to reduce the size and reduce repetition. You can use the ajax library you are familiar with or submit the form directly with native form.
refer to vuejs's official example (axios)
ide/computed.html" rel=" nofollow noreferrer "> https://cn.vuejs.org/v2/guide. listener section


form submission? form , of course.

do you want ajax to submit? vue is not available. The official recommendation is axios . Use jquery if you have jquery. The original one is also fine.

Menu