- 注册时间
- 2012-11-11
- 最后登录
- 2014-4-9
- 阅读权限
- 10
- 积分
- 97
- 精华
- 0
- 帖子
- 17
|
DataGrid:
- <div id="dgLand" class="mini-datagrid" style="width: 99%;" showloading="false"
- allowresize="true" pagesize="10" emptytext="无数据"
- showemptytext="true" sizelist="[5,10,20,30,50]" align="center">
- </div>
复制代码
Javascript:
- var grid = mini.get("dgLand");
- var columns = [
- { field: "loginname", width: 120, headerAlign: "center", allowSort: true },
- { field: "name", width: 120, headerAlign: "center", allowSort: true },
- { field: "name1", width: 120, headerAlign: "center", allowSort: true }
- ];
- grid.setColumns(columns);
复制代码 效果:
能显示出3列,但是无列名,是否哪里设置不对?
|
|