jQuery post respond with readyState:0, status:0

后端 未结 4 630
予麋鹿
予麋鹿 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:28

    For me this problem was caused by a cross-domain issue. So I had a local html file (c:\test.html) and tried to get data from a server (localhost/servlet). When putting html on the server - the problem was gone.

提交回复
热议问题