我怎样才能在javascript中从二维数组中获取数据

时间:2015-07-17 13:08:34

标签: javascript php

此表格中的数据

Array (
    [0] => Array (
        [scan] => MRI any one spine segment with screening whole spine             
        [charges] => 100
    )
    [1] => Array (
        [scan] => MRI leg/thigh/hard palate/one body part
        [charges] => 100
     )

)

1 个答案:

答案 0 :(得分:0)

如果您想访问阵列的第二维,您可以这样做:

myArray[0]['scan']