当我尝试在FF中加载页面时,我收到此错误:
TypeError: property Array.prototype.splice.call(...) is non-configurable and can't be deleted
这是原型
HTMLElement.prototype.selectorAll = function (selectors, fun) {
var sels = Array.prototype.splice.call(this.querySelectorAll(selectors), 0)
if (!fun) { return sels; }; fun.call(sels);
};
如何解决此错误?
答案 0 :(得分:2)