lc_web 2018-02-26 18:04:23

特别简单的取整技巧

javascript javascript
javascript javascript
var num = 5.6667;
console.log(~~num);//5
var num = 5.666;
console.log(~~num);//5

评论

trang chủ - Wiki
Copyright © 2011-2025 iteam. Current version is 2.142.1. UTC+08:00, 2025-04-05 13:04
浙ICP备14020137号-1 $bản đồ khách truy cập$