数组for循环方法
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Math </title>
<script type="text/javascript">
var ar=[3.3,-0.1,-9.9,8.9];
for(var i=0;i<ar.length;i++){
document.write(Math.ceil(ar[i])+ "<br />")
}
</script>
</head>
<body>
</body>
</html>