①:用js来定义函数
<head>
<title>失物招领管理</title>
<%@ include file="../flat/flat_head_inc.jsp" %>
<script type="text/javascript">
//鼠标悬浮时,显示文本框里面的全部内容
function formatCellTooltip(value){
return "<span title='" + value + "'>" + value + "</span>";
}
</script>
</head>
②:调用函数
<div data-options="region:'center',border:false" style="overflow: hidden;padding:0px;background:#EEEEEE;">
<table id="dg" class="easyui-datagrid" title="失物招领信息"
data-options="rownumbers:true,singleSelect:true,url:'${actionDataGridUrl}',method:'get',toolbar:'#toolbar',
showFooter:false,pagination:true,idField:'ID'">
<thead>
<tr>
<th data-options="field:'SUMMARY',180,align:'center',formatter:formatCellTooltip">描述说明</th>
</tr>
</thead>
</table>
</div>