Open soonfy opened 6 years ago
const toPercent = (point) => { let percent = Number(point * 100).toFixed(2); percent += '%'; return percent; }
const toPoint = (percent) => { let point = percent.replace('%', ''); point = point / 100 - 0; return point; }
soonfy
小数转百分比
百分比转小数
soonfy