- <th data-options="field:'id',width:180,formatter: rowformater">操作</th>
复制代码
- <script type="text/javascript">
- function rowformater(value,row,index)
- {
- return "<a href='"+row.id+"' target='_blank'>操作</a>";
- }
- </script>
复制代码
OK,应该能跑起来了。跑出的结果就是上面的截图样式。联系客服