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
上面的代码在List中查找Max数。谁能告诉我下面的代码是如何工作的?如果我通过了,它似乎有效null or Math.
console.log(Math.max.apply(Math,list));
是否所有的user-defined/Native functions
都有我们可以使用的调用和应用方法?