JS Math.min && Max 小记 | 西瓜🍉
weisiwu opened this issue · comments
http://localhost:4001/2022/04/28/JS%20Math.min%20Math.max%E5%B0%8F%E8%AE%B0.html
Math.min 和 Math.max 是较为常用的内置工具函数,但你知道这个函数返回值有哪几种情况吗? 下面就返回的几种情况,结合例子分别说明易错场景。 返回值种类 【返回】数字 【参数】全数字(或可转为数字) 1234567891011Math.min(1,2,3,4,5); // 1Mat