<IE8错误:'polygonOptions.fillColor'为null或不是对象
< IE8 error : 'polygonOptions.fillColor' is null or not an object
我用一些数据和多边形创建了一个融合表。我正在使用谷歌地图API进行样式设计。这是该网站的链接。它在最新的浏览器和IE 9中都运行得很好,但在< IE 8
中我收到了这个错误:
Webpage error details :
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)
Message: 'polygonOptions.fillColor' is null or not an object
您正在使用一个迭代对象属性的方法对数组进行迭代:
for (t in e)
这将导致意外的行为,因为这也可能返回内置属性的名称,例如数组方法的名称(对我来说,当t是"map"时,IE停止)
使用
for (var t=0; t<e.length; ++t)
迭代数组的项
相关文章:
- 谷歌地图API-“;toGeoJson”;返回几何体为null的对象
- 验证对象是否为null Javascript/Angularjs
- 对象为null或IE9中存在未定义错误
- 如何计算一个对象中五个属性中有多少是非null的
- Microsoft JScript运行时错误:无法获取属性'的值;样式':对象为null或未定义
- javascript对象显示为null,但object.properties返回数据
- global.getElementById('..')为null或不是对象
- IE8错误:为null或不是对象,但仍然可以跟踪/控制台注销
- AJAX请求中的JSON对象为Null或空
- Highcharts无法设置属性'的值;要点':对象为null或未定义
- ui.selectmenu投掷'this.newelement.0'为null或不是对象
- 添加到序列化数组中的复杂对象在服务器端始终为 null
- 什么是 ClojureScript 类似地将不存在的对象值设置为 JavaScript 中的 null
- 最大查询返回带有sequelise.js的null对象
- 从JSON对象中删除jQuery和null对象
- 从客户端到服务器的SocketIO回调没有'不起作用(改为null对象)
- 迭代react元素中的undefined/null对象
- “Interiting"From null对象似乎不会影响性能
- Null对象中属性默认值的赋值
- 在js中捕获null对象