🌈 搜索
📅  最后修改于: 2022-03-11 15:01:57.985000             🧑  作者: Mango
var myNumber = 2; myNumber.toFixed(2); //returns "2.00" myNumber.toFixed(1); //returns "2.0"