Data can be added when you click the button you set. When you click the button again, datatables will not be able to reinitialize.

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);
    } );
Mar.07,2021

set a timer to display the div of all table at the beginning. After several seconds or milliseconds of opening the page, just hide the div that should not be displayed. The hide (), is now perfectly solved. If you have any questions later, please continue to ask

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30261-2bcd3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30261-2bcd3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?