Javascript Array inside Array - how can I call the child array name?

前端 未结 8 916
不思量自难忘°
不思量自难忘° 2020-12-24 13:42

Here is the example of what I am doing:

   var size = new Array("S", "M", "L", "XL", "XXL");
   var color =          


        
8条回答
  •  有刺的猬
    2020-12-24 14:30

    you can get using key value something like this :

    var size = new Array("S", "M", "L", "XL", "XXL");
    var color = new Array("Red", "Blue", "Green", "White", "Black");
    var options = new Array(size, color);
    
    var len = options.length;
    for(var i = 0; i

    see here : http://jsfiddle.net/8hmRk/8/

提交回复
热议问题