DataTable.NET的event執行順序
Posted sipher
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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)
以上是关于DataTable.NET的event執行順序的主要内容,如果未能解决你的问题,请参考以下文章
將sql server 2008R2 Max memory 意外設為0