我的代码片段
var assetListTable = function () {
var
dataTable;
var
zTreeObj;
var $table =
$("#dataTable");
var
zNodes;
var
handleRecords = function () {
dataTable = new Datatable();
dataTable.init({
src: $table,
onQuery:function(data){
data.assetId=$("#assetIdQuery").val();
data.assetName=$("#assetNameQuery").val();
data.assetRole=$("#assetRoleQuery").val();
data.assetTag=$("#assetTagQuery").val();
},
onSortColumn:function (sortColumn, sortDirection) {
switch (sortColumn) {
case "assetId":
sortColumn = "asset_id";
break;
case "assetName":