<script> var test = new Array(1,6,898,345,99,56,4546,3,6,45,6); eval("xx=Math.max("+test.join(",")+")"); alert(xx); </script> [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]