首页 > 网站 > WEB开发 > 正文

jquery-EasyUI datagrid 换行

2024-04-27 15:09:50
字体:
来源:转载
供稿:网友
加上参数:nowrap: false,即可。 如下代码:$("#userList").datagrid({  width: 'auto',    height: 'auto',  fitColumns:true,  nowrap: false,  collapsible: true,  singleSelect: true,  rownumbers: true,  url:"test/overload!getList.action",  columns: [[             {"field":"id","title":"","width":120,"align":"center", "hidden":true},              {"field":"name","title":"姓名","width":300,"align":"center"},             {"field":"age","title":"年龄","width":100,"align":"center"},             {"field":"unit","title":"单位","width":300,"align":"center"}          ]] });
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表