Math.Max.Apply(Math,tmp);
也可以寫成
Math.Max.Apply({},tmp);的簡寫形式
sampleNumList = [1,2,3,4]
var firstMax = Math.max.apply(Math, sampleNumList);//最大值
Math.Max.Apply(Math,tmp);
也可以寫成
Math.Max.Apply({},tmp);的簡寫形式
sampleNumList = [1,2,3,4]
var firstMax = Math.max.apply(Math, sampleNumList);//最大值