摘要:
1、在 echarts 中,只能用 number,不能用字符串,假设后端返回过来的为: 2、 要把 "0.00%" 变成数字,且保留2位小数,则需要: function toDecimal2(x) { const f = parseFloat(x); let s = f.toString(); le 阅读全文
摘要:
function DateDiff(start, end) { var sdate = new Date(start); var now = new Date(end); var days = now.getTime() - sdate.getTime(); var day = parseInt(d 阅读全文