[url]http://www.cnblogs.com/linguoguo/p/4076279.html[/url]
{name: 'wareId', index: 'wareId', width: 150,
formatter: function (cellvalue, options, rowObject) {
return rowObject.wareName;
},
inputtype:"select",
searchoptions: {dataInit:function(elem){
alert("searchoptions");
//这里要实现一些操作,自己需要的时候
}, attr:{title:'Select Date'}, sopt:['cn', 'nc', 'in', 'ni'],value:"2:广州仓库;1:厚街仓库"}
}
表格字段格式化技巧
本文介绍了一种在前端展示表格数据时对特定字段进行格式化的技术。通过使用JavaScript,可以自定义单元格显示的内容,例如将ID替换为更易读的名称,并且能够通过下拉选择的方式进行搜索。这种方式提高了用户体验,同时也展示了如何在搜索选项中设置属性。
6271

被折叠的 条评论
为什么被折叠?



