我给系统里所有的grid都做了换行处理,但是组织树变得很难看,有没有什么解决方法
这是换行的代码
if (evtData.colVal != undefined) { // 判断是不是需要换行显示的这列并且列是有值的
var title = evtData.colVal;
var value = evtData.colVal;
if(value.length >100 ){
value = value.substr(0,100)+'...'
}
evtData.html = "<div style='word-wrap:break-word; white-space:normal;',title='" + title + "'>" + value + "</div}