<!DOCTYPE html>charset="utf-8"W3Cschool教程(w3cschool.cn)查找最大的数。id="demo"x = findMax(1, 123, 500, 115, 44, 88);function findMax() {var i, max = arguments[0];if(arguments.length < 2)return max;for (i = 0; i < arguments.length; i++) {if (arguments[i] > max) {max = arguments[i];}}return max;}document.getElementById("demo").innerHTML = x;