TypeError: Cannot read property 'split' of null
2019-05-31 15:44
531 查看
版权声明:关注一下呗o(* ̄▽ ̄*)ブ。。 https://blog.csdn.net/qq_37548296/article/details/90717510
str.split('.')
变成
(str || "").split('.')
不报错啦
相关文章推荐
- canvas出现Uncaught TypeError: Cannot read property 'getContext' of null 错误
- Uncaught TypeError: Cannot read property of 'name' null
- 在使用renderTo中遇到的Uncaught TypeError: Cannot read property 'insertAdjacentHTML' of null
- Uncaught TypeError: Cannot read property 'hasOwnProperty' of null
- discuz 出现了Uncaught TypeError: Cannot read property 'appendChild' of null
- Uncaught TypeError: Cannot read property 'offsetTop' of null
- Uncaught TypeError: Cannot read property 'width' of null
- 关于js Uncaught TypeError: Cannot read property 'style' of null 问题
- 关于"Uncaught TypeError: Cannot read property 'time' of null"的处理
- Uncaught TypeError: Cannot read property 'length' of null
- Uncaught TypeError: Cannot read property 'getItem' of null
- Uncaught TypeError: Cannot read property 'click' of null问题的解决
- Uncaught TypeError: Cannot read property 'value' of null
- cocos2d-js-----Uncaught TypeError: Cannot read property 'style' of null
- Uncaught TypeError: Cannot read property 'prototype' of null using Openerp 7.0
- 在开发Ext 项目中如果遇到 Uncaught TypeError: Cannot read property 'insertAdjacentHTML' of null
- Uncaught TypeError: Cannot read property 'querySelector' of null
- JavaScript:Uncaught TypeError Cannot read property 'id' of null。
- Uncaught TypeError: Cannot read property 'value' of null
- 安卓Webview 加载网页 Uncaught TypeError: Cannot read property 'getItem' of null",