data can be added when you click the button you set. When you click the button again, datatables will not be able to reinitialize. What is the reason
chart.on ("click", function (params) {
)
var index = params.value.length;
var glcode = params.value[index-3];
var glname = params.data.name;
var orgCode = params.value[index-5];//
freshDpmap(glcode,glname,orgCode);
var _self = this;
if(opt.goDown && params.name !== name[idx]){
if(cityMap[params.name]){
var url = ".//" + cityMap[params.name] + ".json";
$.get(url, function(response){
// console.log(response);
curGeoJson = response;
echarts.registerMap(params.name, response);
handleEvents.resetOption(_self, option, params.name);
});
}
}
var wwww = window.setInterval(function(){
if (arrItem1 == false) {
}else{
window.clearInterval(wwww);
datac = arrItem1;
console.log(datac);
$("-sharpglNum").DataTable( {
"bAutoWidth":true,
bFilter: false, //
bLengthChange: false, //
ordering:false,//
"paging": false,//
"info": false, //
language: { //
"sProcessing": "...",
"sLengthMenu": " _MENU_ ",
"sZeroRecords": "",
"sInfo": " _START_ _END_ _TOTAL_ ",
"sInfoEmpty": " 0 0 0 ",
"sInfoFiltered": "( _MAX_ )",
"sInfoPostFix": "",
"sSearch": ":",
"sUrl": "",
"sEmptyTable": "",
"sLoadingRecords": "...",
"sInfoThousands": ",",
"oPaginate": {
"sFirst": "",
"sPrevious": "",
"sNext": "",
"sLast": ""
},
"oAria": {
"sSortAscending": ": ",
"sSortDescending": ": "
}
},
data: datac
} );
}
},1000);
} );