摘要:
1、 let yy = new Date().getFullYear(); //获取年 let mm = new Date().getMonth() + 1; //获取月 let dd = new Date().getDate(); //获取日 if (mm >= 1 && mm <= 9) mm 阅读全文
摘要:
1、在 echarts 中,只能用 number,不能用字符串,假设后端返回过来的为: 2、 要把 "0.00%" 变成数字,且保留2位小数,则需要: function toDecimal2(x) { const f = parseFloat(x); let s = f.toString(); le 阅读全文