SoFunction
Updated on 2025-04-06

vue solves the problem of submitting form forms but not jumping pages

vue uses @="" to set the function executed when submitting and prevents page from jumping:

 <form  action="" method="post" @="sub">

The sub function is written in methods:

 methods:{
  $.post('/visitorinfo/', $('#msgForm').serialize(), function(data){
  (data);
  }) 
 }

The above vue solves the problem of submitting form forms but not jumping pages is all the content I share with you. I hope it can give you a reference and I hope you support me more.