Math.max.apply()
是如何工作的。
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<script>
var list = ["12","23","100","34","56",
"9","233"];
console.log(Math.max.apply(Math,list));
</script>
</body>
</html>
Https://developer.mozilla.org/en-us/docs/web/javascript/reference/global_objects/math/max
The above code finds the Max number in the List. Can anyone tell me how does the below code work?. It seems it works if i pass null or Math.
console.log(Math.max.apply(Math,list));
是否所有的 user-defined/Native functions
都有我们可以使用的调用和应用方法。