JavaScript之对象应用
<script> obj={"111":"one","222":"two","333":"three"}; var i; for(i in obj) { console.log(i); console.log(obj[i]); } </script>
上面的代码运行后,在控制台显示:
<script> obj={"111":"one","222":"two","333":"three"}; var i; for(i in obj) { console.log(i); console.log(obj[i]); } </script>
上面的代码运行后,在控制台显示: