功能描述:table鼠標懸停顯示單元格內容
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.圖示
調用前:
調用后: