commit by magit in emacs@2022-09-13 14:36:17

This commit is contained in:
Aborn Jiang 2022-09-13 14:36:19 +08:00
parent c8f5b5811a
commit 37fc324f9b
1 changed files with 10 additions and 0 deletions

View File

@ -7,3 +7,13 @@ typeof '' === 'string';
'blue ss'.indexOf('blue');
// str.substring(indexStart[, indexEnd])
// 向下取整 floor
Math.floor( 45.95); // 45
// 向上取整 ceil
Math.ceil(.95) // 1
// 给定数字的值四舍五入到最接近的整数。
Math.round(20.49); //20
Math.round(20.5); //21