Home  >  Q&A  >  body text

javascript - Multiple ajax submissions. Some will cancel. Is there any solution?

$.when()..Submit multiple requests asynchronously; how to solve the following situation?

怪我咯怪我咯2713 days ago512

reply all(2)I'll reply

  • 迷茫

    迷茫2017-05-16 13:41:04

    Please refer to

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 13:41:04

    There are several methods. One is restriction. If the former one does not return, the latter one will not be executed. The other is to request a limit for a certain time. Also, when the next request is made, immediately close the previous request (jQuery can do this, but it won’t work after the request is completed)

    reply
    0
  • Cancelreply