<script type="text/javascript">
alert(["a","b","c","d","e"][[1,2],3,4]);
</script>
请问输出什么?
注意:javascript的二维数组可不是这么写的。
// 这是javascript的二维数组var ttt = [ ["a","b","c","d","e"],[[1,2],3,4] ]
var ttt = ["a","b","c","d","e"][[1,2],3,4];
这相当于把前面那个堪称一个数组,后面的是它的下标,进行逗号运算,逗号运算取最后一个值。