Home  >  Q&A  >  body text

How does vue-resource terminate previous ajax request?

There are 5 tab pages in the page. When the tab page is clicked, the data of the corresponding tab page is requested, but I want to terminate the ajax request of the previous tab page (both get request and post request) when clicking other tab pages. The previous interface was terminated no matter what state it was in.) How to solve it?

扔个三星炸死你扔个三星炸死你2658 days ago872

reply all(2)I'll reply

  • 仅有的幸福

    仅有的幸福2017-06-13 09:26:02

    https://github.com/pagekit/vu...

    reply
    0
  • 阿神

    阿神2017-06-13 09:26:02

    abort method

    reply
    0
  • Cancelreply