EasyUI datagrid报错:Uncaught TypeError: Cannot read property 'width' of null
2018-11-26 14:29
453 查看
采用EasyUI的 datagrid 展示数据,报错:Uncaught TypeError: Cannot read property ‘width’ of null
解决办法:
columns参数写法错误,该参数有两个[],少写会报该错误。
columns:[[
{field:‘code’,title:‘Code’,width:100},
{field:‘name’,title:‘Name’,width:100},
{field:‘price’,title:‘Price’,width:100,align:‘right’}
]]
相关文章推荐
- Uncaught TypeError: Cannot read property 'width' of null
- Uncaught TypeError: Cannot read property 'querySelector' of null
- Uncaught TypeError: Cannot read property 'offsetTop' of null
- Uncaught TypeError: Cannot read property 'prototype' of null using Openerp 7.0
- Uncaught TypeError: Cannot read property 'value' of null
- canvas出现Uncaught TypeError: Cannot read property 'getContext' of null 错误
- 关于js Uncaught TypeError: Cannot read property 'style' of null 问题
- js提示Uncaught TypeError: Cannot read property 'options' of null
- Uncaught TypeError: Cannot read property 'hasOwnProperty' of null
- Uncaught TypeError: Cannot read property 'length' of null
- 在开发Ext 项目中如果遇到 Uncaught TypeError: Cannot read property 'insertAdjacentHTML' of null
- JavaScript:Uncaught TypeError Cannot read property 'id' of null。
- Uncaught TypeError: Cannot read property 'getItem' of null
- Uncaught TypeError: Cannot read property 'click' of null问题的解决
- 在使用renderTo中遇到的Uncaught TypeError: Cannot read property 'insertAdjacentHTML' of null
- 安卓Webview 加载网页 Uncaught TypeError: Cannot read property 'getItem' of null",
- js事件处理程序 Uncaught TypeError: Cannot read property 'addEventListener' of null
- Uncaught TypeError: Cannot read property 'value' of null
- discuz 出现了Uncaught TypeError: Cannot read property 'appendChild' of null
- Uncaught TypeError: Cannot read property of 'name' null