Method POST, Status (canceled) error message

前端 未结 6 1465
北恋
北恋 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:31

    You are using the keyup event, which seems to be the problem.

    If anything at all, you need to wait after typing one character before taking action.

    A better solution might be to follow the same strategy as the JQuery AutoComplete COmponent.

提交回复
热议问题