easyui隐藏列

1.$("#test-datagrid").datagrid('hideColumn', 'password');
其中第二个参数为对应的域,即field

2.

<th data-options="field:'roles',hidden:true,$(this).width() * 0.3,formatter:roleView">角色</th>

原文地址:https://www.cnblogs.com/toSeeMyDream/p/4344577.html