开发者

javascript multidimensional array help

开发者 https://www.devze.com 2023-02-05 09:23 出处:网络
should this work? Am imissing something? var this_array = [ [], [ [], [ 开发者_StackOverflow中文版[],

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

精彩评论

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