繁体   English   中英

IE在Zurb foundation.min.js中抛出“对象不支持属性或方法'defineProperty'”的对象。 是否有修复程序或解决方法?

[英]IE is throwing a `Object doesn't support property or method 'defineProperty'` in Zurb foundation.min.js. Is there a fix or work around?

我有一个Zurb Foundation 6.2的Drupal网站。 当我尝试在IE 11中运行该站点时,所有布局都损坏了,并且出现错误:

对象不支持属性或方法“ defineProperty”

在foundation.min.js中。

此方法在foundation.js中出现多次,例如:

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

我对更改它或与Foundation纠缠不满。

我在某处读到,如果HTML元素具有相同名称的ID,也可能导致这种情况,因此我调出了页面的页面源并进行了搜索,但未找到任何内容。

谁会知道是否有针对此的修复程序或解决方法?

正如@Jaromanda和@Teemu所建议的,这是因为IE始终以5模式启动。 这是因为我的公司建立了其内部网。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM