我有最新的iron-router和meteorjs。
除了 Internet Explorer 8 之外,一切都工作正常。我的支持目标至少是 ie 9 和 8。其他所有浏览器都工作正常,包括 ie 9,除了 ie 8。 我收到此错误:
DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337
File: 192.168.137.21:3000
HTML1300: Navigation occurred.
File: 192.168.137.21:3000
SCRIPT445: Object doesn't support this action
File: iron_middleware-stack.js, Line: 440, Column: 1
当我点击“文件:iron_middleware-stack.js,行:440,列:1”时,我会看到这一点。
Object.defineProperty(MiddlewareStack.prototype, "length", {
get: function () {
return this._stack.length;
},
writeable: false,
configurable: false,
enumerable: true
// X ERROR: Object doesn't support this action
});
最佳答案
这可能是由 IE8 引起的 iron:router
中的错误。 I would suggest lodging an issue on their github (if there isn't already one).
There's another stack overflow question which looks at Object.defineProperty
in IE 8
关于javascript - 我在对象上遇到错误 - Meteorjs Iron-router Internet Explorer 8 (ie8),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27058136/