Ajax跨域请求

来源:互联网 发布:快速排名提升软件 编辑:程序博客网 时间:2024/04/30 08:26
 $.ajax({
                async: false,
                url: "http://list.qq.com/cgi-bin/qf_compose_send",
                type: "GET",
                dataType: 'jsonp',
                contentType: "application/x-www-form-urlencoded; charset=gb2312",
                jsonp: 'jsoncallback',
                data: d,
                timeout: 5000,
                beforeSend: function() { },
                error: function(xhr) {
                    alert(xhr);
                },
               success: function() {
                    alert("success");
                }
                      });
原创粉丝点击