为什么这个函数可以这样加?
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Array对象 </title>
<script type="text/javascript">
function bb(a,b) {
return b - a;
}
var myarr = new Array("80","16","50","6","100","1");
document.write(myarr.sort(bb));
</script>
</head>
<body>
</body>
</html>
以前加函数都要在后面加上() 为什么个参数可以直接写名称?