序列化百分比数据

//格式化百分比数据
function FormatDataPoint(type)
{
    if (type) {
        return parseFloat(type).toFixed(2).toString();
    }
    else {
        return "--";
    }
}

原文地址:https://www.cnblogs.com/liupengfei19940119/p/4212600.html