js中怎么获取json中的key,value值var obj = {"id": 1, "name":"张三"}for(var key in obj){alert("Key是:" + key)aler2023-03-11JavaScript190