javascript常用方法On this page常用方法 Array map splice tips: 会改变数组原始值 arr.splice(startIndex, count, [item?...]) Math 四舍五入 toFixed() 但要注意结果是 string 类型。 平方 pow(num, '次方数')