我正在使用d3.js进行数据可视化.我收到如下图所示的警告.
有谁知道为什么会发生这种情况?我该如何解决这个问题?错误中显示的消息如下
mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create
Run Code Online (Sandbox Code Playgroud)
有谁知道为什么会发生这种情况
看起来这是d3的错.他们似乎在这里使用它来子类化数组:
// Until ECMAScript supports array subclassing, prototype injection works well.
var d3_subclass = function(object, prototype) {
object.__proto__ = prototype;
};
Run Code Online (Sandbox Code Playgroud)
我该怎么解决这个问题?
| 归档时间: |
|
| 查看次数: |
4186 次 |
| 最近记录: |