簡體   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