由于客户需求,自己在项目上尝试排查了很多有可能的错误之后
前端控制台 一直弹出Cannot read property 'width' of null的错误,我刚开始不是很明白为什么会弹出这个错误,按照字面意思来看我并没有写错的宽度。我就开始找这个问题出现的原因,搜了很多博客没有我想要的答案。
在多次对比easyui的冻结列demo的时候我发现我和demo有区别的地方。
我的表头中带有**rowspan**属性,我感觉可能是这个原因
一开始是这样的
frozenColumns:[[
{field:'id',checkbox:true,width:25,rowspan:2},
{field:'guid',hidden:true, width:150,rowspan:2},
{field:'name',hidden:true, width:150,rowspan:2},
{field:'projectcode',title:'测测测',width:150,sortable:true,align: 'center',editor:{type:'textarea',options: {rows:'8'}},rowspan:2},
{field:'erpcode',title:'测测测',width:40,sortable:true,align: 'center',editor:{type:'textarea',options: {rows:'8'}},rowspan:2},
{field:'development_organization',title:&#