保留小數(shù)點(diǎn)后幾位 ${a?string("0.###")} //實(shí)際上舍去操作是四舍五入的 string round 四舍五入 ${a?round} floor 向下取整 ceiling 向上取整