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

时间:2021-09-15 19:31:38

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