let x;
let a = ['a','b','c']
let b = {name:'LIUNAN',age:19}
for(x of a){
document.write(x)
}
for(x in a){
document.writeln(x+':'+a[x])
}

for(x in b){
console.log(x+":"+b[x])
}
</script>

相关文章:

  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2021-05-16
  • 2021-08-06
  • 2021-06-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案