还有没有更简单的
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Math </title>
<script type="text/javascript">
var a=["0.8","6.3","5"]
for(i=0;i<a.length;i++){
document.write(Math.ceil(a[i]))
}
</script>
</head>
<body>
</body>
</html>