1
我从d3.json api调用中获得500。但我没有在文档中看到捕获错误消息并显示它的方法。任何人有任何想法如何做到这一点?如何捕获和显示d3.json http状态代码500
我从d3.json api调用中获得500。但我没有在文档中看到捕获错误消息并显示它的方法。任何人有任何想法如何做到这一点?如何捕获和显示d3.json http状态代码500
回调函数的第一个参数为d3.json()
是一个错误对象,用于捕获并描述错误。如果请求成功,则错误将是null
。