JQuery: ‘Math.max’

引数として与えた複数の数の中で最大の数を返します。

via: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Math/max

「大きい方の値を得る」サンプルコード

via: http://javascriptist.net/ref/Math.max.html

 

逆は、 Math.min

Leave a Reply

Your email address will not be published. Required fields are marked *