博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

ajax实现返回数据是html类型的跨域问题

Posted on 2016-01-07 17:14  人生梦想起飞  阅读(398)  评论(0编辑  收藏  举报

$.ajax({
            url : _url,
            type : 'GET',
            dataType : 'html',
            xhrFields: {
                withCredentials: true
            },
            success : function(result){
                $(dom).html(result);
            }
        });