倚天杖
var arr = [
['1','15','56'],
['1','15','56'],
['3','-','56'],
['1','78','-'],
['1','-','56'],
];function dparseInt(i){ var j = parseInt(i); if( isNaN(j) ) return 0; return j;var arr = [
['1','15','56'],
['1','15','56'],
['3','-','56'],
['1','78','-'],
['1','-','56'],
];function dparseInt(i){ var j = parseInt(i); if( isNaN(j) ) return 0; return j;
}//数组全是字符先转为数字var arr1 = arr.map(item=>{ return item.map(i => dparseInt(i));
});console.log(arr1);//两个Math.max 搞定var result = Math.max(...arr1.map(v=>Math.max(...v)))console.log(result)