百分数转化为小数
function toPoint(percent){ var str=percent.replace("%",""); str= str/100; return str; }
小数转化为百分数
function toPercent(point){ var str=Number(point*100).toFixed(1); str+="%"; return str; }
参考文档:https://www.cnblogs.com/web520/p/7994203.html