1.js函数

1 function hoveringShow(value) {
2       return "<span title='" + value + "'>" + value + "</span>";
3 }

2.调用函数

1 <table id="mydatagrid" style="width:100%;height:96%">
2     <thead>
3     <tr>
4         <th data-options="field:'code',width:150, formatter: hoveringShow">编码</th>
5         <th data-options="field:'flowname',width:150, formatter: hoveringshow">名称</th>
6     </tr>
7     </thead>
8 </table>

3.图示

调用前:

            EasyUI的Datagrid鼠标悬停显示单元格内容

调用后:

            EasyUI的Datagrid鼠标悬停显示单元格内容

 

相关文章:

  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2021-06-09
猜你喜欢
  • 2022-01-19
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2021-10-01
相关资源
相似解决方案