<div class="codetitle"> <span><a style="CURSOR: pointer" data="86146" class="copybut" id="copybut86146" onclick="doCopy('code86146')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code86146"> <br> <script type="text/javascript"><BR> --<BR>var arr = new Array(13.5,3,4,5,6);<BR>for(var i=0;i<arr.length;i ){<BR> arr[i] = arr [i]/2.0;<BR>}<BR>alert(arr);<BR> //--><BR> </script><br> </div>