在 d3 版本 3 中,我有这段代码,效果很好:
d3.html("http://google.com",function(frag){
console.log(frag);
});
该代码在版本 4 中不起作用。所以查看API和更改日志,我想也许是这样的:
d3.html("http://www.google.com").get(function(error,frag){ console.log(frag); });
但这也不起作用。有没有人有 d3.v4 for d3.html 的工作示例?
谢谢