ES6中Math对象的部分扩展 1、Math trunc() 该方法用于取出一个小数的小数部分,返回整数部分。看例子吧: Math trunc(1 234); 1 Ma JavaScript 2022-04-09 158 点赞 2 评论 239 浏览