运用数组的方法
<script type="text/javascript"> var a=["3.3","-0.1","-9.9","8.9"]; for(var i=0;i<a.length;i++) { document.write(Math.round(a[i])); }
<script type="text/javascript"> var a=["3.3","-0.1","-9.9","8.9"]; for(var i=0;i<a.length;i++) { document.write(Math.round(a[i])); }
2015-03-29
举报