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

前端 未结 8 917
不思量自难忘°
不思量自难忘° 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:23

    Yes it is. You can use

    alert(options[0][0])
    

    to get the size "S"

    or

    alert(options[0][1])
    

    to get the color "Red"

提交回复
热议问题