美文网首页
JS 常用方法记录

JS 常用方法记录

作者: wlianfu | 来源:发表于2018-10-18 22:50 被阅读4次
// 返回数组中的最小值
function min(target) {
  return Math.min.apply.(0, target);
}
// 返回数组中的最大值
function max(target) {
  return Math.max.apply(0, target);
}

相关文章

网友评论

      本文标题:JS 常用方法记录

      本文链接:https://www.haomeiwen.com/subject/ppdezftx.html