开发者

javascript multidimensional array help

should this work? Am i missing something?

var this_array = [

    [],

    [
        [],
        [
    开发者_StackOverflow中文版        [],
            [
                [],
                [
                    ['50.3']
                ],
                [
                    ['12.0']
                ]
            ]
        ]
    ],
    [
        [],
        [
            [],
            [
                [],
                [
                    ['85.3']
                ],
                [
                    ['31.1']
                ]
            ]
        ]
    ]
];

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


Works for me: http://jsfiddle.net/Ny8ze/

Are you getting any errors?


Yes. It works for me:

'50.3'

Did you get an error?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜