a[2]=20
//直接把相应的元素引用(
a[2]
)当变量使用就可以了。
数组的定义袜渗方式为:
类型
数组名[数组元素个数]
如:
int
a[10]数组成员的引用为滑晌:数组名[下标]
printf(
"%d",
a[0]
)
数组
var a = [["a","野毕b","c"],["d","e"],["1","2","3"]]var b= ["4","5","6"]
a.push(b)
console.log(a)
直接用push()就李脊漏可哪烂以了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)