Array.prototype.max = function() { return Math.max.apply(null, this)}
es6
Math.max(...array)
上一篇 说说你对this的理解
下一篇 如何读取字符串的第一行?[重复]
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号