jQuery post respond with readyState:0, status:0

后端 未结 4 635
予麋鹿
予麋鹿 2020-12-10 15:15

all. I am using a jquery version 1.6.2. I do a ajax call like this:

  var jqxhr = $j.post(myPHP, function() {
          alert(\"success\");
        })
               


        
4条回答
  •  清歌不尽
    2020-12-10 15:31

    In my case, it was not due to Cross domain. I was not using e.PreventDefault(). See here

提交回复
热议问题