1.$("#test-datagrid").datagrid('hideColumn', 'password');
其中第二个参数为对应的域,即field
2.
<th data-options="field:'roles',hidden:true,width:$(this).width() * 0.3,formatter:roleView">角色</th>
1.$("#test-datagrid").datagrid('hideColumn', 'password');
其中第二个参数为对应的域,即field
2.
<th data-options="field:'roles',hidden:true,width:$(this).width() * 0.3,formatter:roleView">角色</th>
转载于:https://www.cnblogs.com/toSeeMyDream/p/4344577.html