我正在测试谷歌聚合物是否适用于 ie9。webcomponents.min.js 的第 11 行出现错误,在 get() 和 href 之间需要“:”。以下是 webcomponent.js 文件的摘录:
...
jURL.prototype = {
toString: function() {
return this.href;
},
get href() {
if (this._isInvalid) return this._url;
var authority = "";
if ("" != this._username || null != this._password) {
authority = this._username + (null != this._password ? ":" + this._password : "") + "@";
}
return this.protocol + (this._isRelative ? "//" + authority + this.host : "") + this.pathname + this._query + this._fragment;
}, ....
是否有解决方法来避免此错误?