There is a cross-domain in bootstrap table. Why is there only a 'option',' request but no successful returned link?

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",

});


it should be that your background interface does not enable cross-domain access.
example: http://bootstrap-table-exampl.

clipboard.png

you can make the corresponding settings through the background service or using the Nginx server.

Menu