JS 字符串的常见方法
console.log(Math.PI); //Π
//方法
console.log(Math.floor(1.2), Math.floor(1.9), Math.floor(-1.1)); //向下取整 1 1 -2
console.log(Math.ceil(1.2), Math.ceil(1.9), Math.ceil(-1.1)); //向上取整 2 2 -1
console.log(Math.round(1.2), Math.round(1.9), Math.ro...
原创
2021-08-05 19:58:56 ·
51 阅读 ·
0 评论