在地图组件里,我有这样的代码,(显示了10位小数)

.text(d.properties.name + ":" + d.properties.emission);

修改为显示4位小数

.text(d.properties.name + ":" + d.properties.emission.toFixed(4));