0

当我尝试在托管时执行此请求时,它被取消,但它可以在本地主机上运行,​​问题出在哪里?

$(".cover_image").click(function() {
            var imgid = $(this).attr('title');
            var dataString =
                '&imgid=' + imgid;
            $.ajax({
                type: "POST",
                url: baseUrl + "welcome/cover",
                async: true,
                data: dataString,
                success: function(msg) {

                    window.location.href = 'http://www.facebook.com/profile.php?preview_cover='+ msg;
                    //  $("#loading").css('visibility', 'hidden');

                },
                beforeSend: function () {
                    $("#loading").css('visibility', 'visible');
                }
            }).done(function () {
                    $("#loading").css('visibility', 'hidden');

                });
        });
4

0 回答 0