Uncaught TypeError: Cannot read property 'length' of null错误怎么处理?
生活随笔
收集整理的這篇文章主要介紹了
Uncaught TypeError: Cannot read property 'length' of null错误怎么处理?
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Uncaught TypeError: Cannot read property 'length' of null
錯(cuò)誤怎么處理?
1.可能是返回的datagrid數(shù)據(jù)格式有問題,比如{"total":0,"rows":null},改為{"total":0,"rows":"[]"}就可以了
?
if (capital != null && capital.length < 1) {
轉(zhuǎn)載于:https://www.cnblogs.com/lovebing/p/7474814.html
總結(jié)
以上是生活随笔為你收集整理的Uncaught TypeError: Cannot read property 'length' of null错误怎么处理?的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 中尼将建跨喜马拉雅山铁路!世界最高 年内
- 下一篇: Matlab 使用GPU加速 转载