js获取对象的值的方法
-
js获取对象的值的方法(js对象取值的方法)
原生Math.max方法Math.max方法不能接收数组,可以使用ES6的…将数组打散constarr=[111,12,111,34,2,5,76];console.log(Math.max(…arr));当然也可以用appl
原生Math.max方法Math.max方法不能接收数组,可以使用ES6的…将数组打散constarr=[111,12,111,34,2,5,76];console.log(Math.max(…arr));当然也可以用appl