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

来源:互联网 发布:淘宝什么值得买 编辑:程序博客网 时间:2024/05/18 16:37
1.js 定义函数  <script type="text/javascript">           //格式化单元格提示信息          function formatCellTooltip(value){              return "<span title='" + value + "'>" + value + "</span>";          }    </script>  2、调用函数
 <table class="easyui-datagrid" style="width:400px;height:250px"
    data-options="url:'datagrid_data.json',fitColumns:true,singleSelect:true">
    <thead>
      <tr>
      <th data-options="field:'itemid',width:80,halign:'center',formatter:formatCellTooltip">Item ID</th>
      </tr>
    </thead>
 </table>

原创粉丝点击