Method POST, Status (canceled) error message

前端 未结 6 1460
北恋
北恋 2021-02-20 04:08

I have the following code which is giving me a Method POST, Status (canceled) error message:

$(document).ready(function() {
    var xhr = false;

           


        
6条回答
  •  被撕碎了的回忆
    2021-02-20 04:39

    Ajax is an async type, its not recommonded that u to send request on every keyup event, try the...

    async: false
    

    in post method... it'll pause the subsequent posts until the current request done its callback

提交回复
热议问题