ajax返回html刷新整个页面

$.ajax({
     type: "post",
     url: "/goods/keywords",
     async : true,
     dataType:"html",//返回整合HTML
    // dataType: "json",//返回json格式设置
     data : JSON.stringify(data), 
     contentType:'application/json; charset=utf-8',
     success: function (data) { 
         $("#allBody").html(data);//刷新整个body页面的html
     }
 })

猜你喜欢

转载自blog.csdn.net/fengcai0123/article/details/79584808
今日推荐