函数加法计数器
<html>
<head>
</head>
<body >
<script type="text/javascript">
function sum() {
var result = 0;
for(var i = 0; i < arguments.length; i++){
result += arguments[i];
}
console.log(result);
}
sum();
</script>
</body>
</html>