带着乌龟追蜗牛
2017-03-01 09:41
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Math </title>
<script type="text/javascript">
function num(a)
{
document.write(Math.ceil(a)+"<br>");
}
var myarr=[3.3,-0.1,-9.9,8.9];
for(var i=0;i++<myarr.length)
{
num(myarr[i]);
}
</script>
</head>
<body>
</body>
</html>
for(var i=0;i++<myarr.length) for循环你写错了
JavaScript进阶篇
468061 学习 · 21891 问题
相似问题