<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Math </title> <script type="text/javascript"> var mystr=[3.3,-0.1,-9.9,8.9]; for(var substr in mystr) { document.write(Math.ceil(substr)+"<br>"); } </script> </head> <body> </body> </html>
是遍历有问题吗?
刚毅87