bootstrap table跨域问题完美解决

bootstrap table跨域问题完美解决

$('#table').bootstrapTable({
        columns: [
        {
        	field:'id',
        	title:'序号'
        },{
            field: 'name',
            title: '名称'
        }],
        pagination:true,
        pageList:[10],
        sidePagination:'server',
        url:'http://xxx/query.do',
        contentType: "application/x-www-form-urlencoded",/**支持跨域**/
        method:'GET',
        queryParams:queryParams,
        responseHandler:function(res){
            if(res){
                var data={"total":res.data.total,"rows":res.data.rows};
                return data;
            }
            return res.data;
        }
    });

 

bootstrap table跨域问题完美解决

相关文章:

你感兴趣的文章:

标签云: