script type = " text/JavaScript " & gt;
//達到最小值
函數sortMinNumber(a,b){ return a–b }
//達到最大值
函數sortMaxNumber(a,b){ return b–a }
//數組
var arr =