jquery跨域方法

 $.ajax({
                type: 'get',
                dataType: "jsonp",//支持跨域
                jsonp: "callback",
                jsonpCallback: "flightHandler",
                url: url,
                async: true,
                data: data,
                success: function (data) {
                ........
                                                    }
             });                                                                                                                            

 

posted on 2018-04-11 16:53  配妞儿  阅读(233)  评论(0编辑  收藏  举报