摘要: 1、在 echarts 中,只能用 number,不能用字符串,假设后端返回过来的为: 2、 要把 "0.00%" 变成数字,且保留2位小数,则需要: function toDecimal2(x) { const f = parseFloat(x); let s = f.toString(); le 阅读全文
posted @ 2020-09-04 17:25 小蘑菇123 阅读(341) 评论(0) 推荐(0) 编辑