//表格超出宽度鼠标悬停显示td内容
function paramsMatter(value,row,index) {
var span=document.createElement("span");
span.setAttribute("title",value);
span.innerHTML = value;
return span.outerHTML;
}
//td宽度以及内容超过宽度隐藏
function formatTableUnit(value, row, index) {
return {
css: {
"white-space": "nowrap",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width":"200px"
}
}
}
页面表格内容太长,则使用鼠标悬停显示内容
最新推荐文章于 2024-07-25 02:11:29 发布