zoukankan      html  css  js  c++  java
  • DataTable.NET的event執行順序

    var dataTable = $('#table')
    .on( 'processing.dt', function ( e, settings, processing ) {
        $('#loading_overlay').css( 'display', processing ? 'block' : 'none' );
        if (!processing && dataTable  != null) {
            console.log("processing finished.")
        }
    })
    .on('xhr.dt', function ( e, settings, json, xhr ) {
        console("xhr event: ajax responsed");
        if (json["success"] == true) {
    
        }
    })
    .on( 'page.dt', function () {
        console("paging processed.");
    })
    .on( 'draw.dt', function () {
        console("draw processed.");
    })
    .on( 'init.dt', function () {
        console("init processed.");
    })
    .on( 'click', 'tbody td', function () {
    })
    .DataTable({ 
         // settings....
    });
    

    當頁面第一次load

    processing.dt (processing == false) => xhr.dt => page.dt => draw.dt => init.dt => processing.dt (processing == true)

    當換到另外一頁

    processing.dt (processing == false) => xhr.dt => page.dt => draw.dt => processing.dt (processing == true)

  • 相关阅读:
    EF 使用 oracle
    mysql安装笔记
    解决问题
    第四次冲刺
    第三次冲刺
    SQA
    第二次冲刺
    第一次冲刺,求进步
    Scrum _GoodJob
    我对git 、github的初印象
  • 原文地址:https://www.cnblogs.com/sipher/p/11267534.html
Copyright © 2011-2022 走看看