a.toMaxFixed(2) => "2.34"
a=2
a.toMaxFixed(2) => "2"
a=2.3
a.toMaxFixed(2) => "2.3"
a.toMaxFixed(2) => "2.3"
return this.toFixed(最大小數位).replace(/0+$/, '').replace(/\.$/, '');
}
// 使用 filter [Route("api/[controller]")] [ApiController] [Authorize] [TypeFilter(typeof(CustomAsyncAuthorizationFilter))] public c...
沒有留言:
張貼留言