2011-01-20 100 views
0

應該這樣工作嗎?我錯過了什麼嗎?javascript multidimensional array幫助

var this_array = [ 

    [], 

    [ 
     [], 
     [ 
      [], 
      [ 
       [], 
       [ 
        ['50.3'] 
       ], 
       [ 
        ['12.0'] 
       ] 
      ] 
     ] 
    ], 
    [ 
     [], 
     [ 
      [], 
      [ 
       [], 
       [ 
        ['85.3'] 
       ], 
       [ 
        ['31.1'] 
       ] 
      ] 
     ] 
    ] 
]; 

$(document).ready(function() { 
    alert(this_array[1][1][1][1][0]); 
} 
+0

是的。這應該工作。你不會錯過任何東西。繼續編碼。 – miqbal 2011-01-20 00:51:18

回答

1

是的。它適用於我:

'50.3'

您是否收到錯誤消息?