JS 设计的只支持一维数组,出于何种考虑,还支持二维数组的写法?这个特性差点把我虐成狗最初以为是 Chrome 的bug,但是测试是 IE、FireFox都支持,结果都一直,难道是标准的一部分//下面代码是搞笑的var arr = [1,2], val;//val = arr[1]写成不知道算不算黑科技val = arr[1,0,0,8,6,"是","中","国","移","动","的","客","服","电","话",1]
添加回答
举报
0/150
提交
取消