json.ele.bootstrapTable({
url: json.url,
columns: columns,
pagination: true,
strictSearch: true,
cache: false,
// striped:true,
pageList: ['all'],
method: 'GET',
contentType: 'application/json',
dataType: 'jsonp',
jsonp:'call![图片描述][1]back',
queryParams: jsons,
onLoadSuccess:function(result){
console.log(result);
totalNum = result.data.length;
},
// sidePagination: 'server',
});
应该是你的后台接口没有开启跨域访问吧。
例子:http://bootstrap-table-exampl...
你可以通过后台服务或者使用 Nginx 服务器进行对应的设置。