- 主题:cannot read property "hostRule" of null
自己写的 JS 网页。
出现:Uncaught TypeError: cannot read property "hostRule" of null
在html和js来回搜索这个hostRule , 找不到。
更要命的是:只有手机自带的浏览器有错, pc浏览器没有,手机chrome也没有这个错误。
哎。
window.onerror 抓到的。
显示的行数也是0.
谢谢各位了。
--
FROM 211.95.35.*
再搜搜 。。
检查工具、网络工具看看是不是有额外的请求。
【 在 aYong77 (aYong77) 的大作中提到: 】
: 自己写的 JS 网页。
: 出现:Uncaught TypeError: cannot read property "hostRule" of null
: 在html和js来回搜索这个hostRule , 找不到。
: ...................
--
FROM 220.181.41.*
好的。我再查查
--
FROM 211.95.35.*
不同解析器 生成dom结构属性不一样呗
读写之前先判断 undefined
【 在 aYong77 的大作中提到: 】
: 自己写的 JS 网页。
: 出现:Uncaught TypeError: cannot read property "hostRule" of null
: 在html和js来回搜索这个hostRule , 找不到。
: ...................
--
FROM 124.64.23.*