javascript一些常用代码块

Array.prototype.max = function(){
  return Math.max.apply({},this)
}
Array.prototype.min = function(){
  return Math.min.apply({},this)
}
posted @ 2012-09-12 11:03  awp110  阅读(135)  评论(0编辑  收藏  举报