$(function () { //初始化JS代码编辑器 window.jsCode = new CodeEditor(); jsCode.InitEditor($('#jscode')[0], false, false, [], false); jsCode.dataType = 3; InitTable(); }); function InitTable(){ window.TabInstance = $('#filterTable').dxDataGrid({ dataSource: [], keyExpr: 'resource_detail_id', remoteOperations: false, searchPanel: { visible: true, highlightCaseSensitive: true, }, groupPanel: { visible: true }, grouping: { autoExpandAll: false, }, allowColumnReordering: true, rowAlternationEnabled: true, showBorders: true, width: '100%', columns: [ { dataField: 'JS文件', dataType: 'JS文件' }, { dataField: "过滤器", caption: "过滤器" }, { dataField: '选择器类型', dataType: '选择器类型', }, { dataField: '调用方式', dataType: '调用方式', }, { dataField: '所在位置', dataType: '所在位置', }, { dataField: 'DOM操作分类', dataType: 'DOM操作分类', } ], onContentReady(e) { }, }).dxDataGrid("instance"); }