let num: number = 100.001; let str: string = num.toFixed(2); 记录一下以防忘记~ 转载于:https://www.cnblogs.com/zxjiangxiaolong/p/11535237.html