js----循环遍历数组(键和值)

来源:互联网 发布:好看的女包淘宝店铺 编辑:程序博客网 时间:2024/06/05 20:55

循环遍历数组(key和value)

for(var x in array){    key= x;//键    value = array[x];//值}