$.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
     }
 })

更多推荐

ajax请求返回整个页面