返回數(shù)組中最大的數(shù):function largestOfFour(arr) { return arr.map(Function.apply.bind(Math.max, null));}largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);//[5,27,39,1001]這個函數(shù)的傳參看不懂,有大佬能詳細(xì)講解一下么,多謝
Function.prototype.bind()有大佬能給講一下以下例子是怎么實現(xiàn)的么?
幕布斯6054654
2018-12-13 19:15:06