📜  使用 jquery 成功返回值设置数据表 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:05.605000             🧑  作者: Mango

代码示例1
success: function(respone){
              table.destroy(); //destruy allow to reinitialize
              const res = JSON.parse(respone); // parse if got encode in server
              const response_object = res.data; 
    // data:{['record','record'],['record','record']...}    

              console.log(response_object);

              $('#table_id').DataTable( {
                data: response_object,
               // datatablesetting....
            } );
            }