且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

AJAX Post JQuery无法正常工作

更新时间:2023-09-17 11:41:58

请以此替换ajax代码并进行检查.

Please replace the ajax code with this and check.

$.ajax({
    type: 'POST',
    url: 'http://myhost.com/guest-catcher/guest-post.php',
    crossDomain: true,
    data: 'ip=' + myip + '&country=' + mycountry + '&page=' + myurl,
    success: function(responseData, textStatus, jqXHR) {
        alert("success");
    },
    error: function (xhr, status, error) {
        alert(xhr.responseText);
    }
});