this is javascript code.
<script>
var jsonObj = {"jack":"american","xiaoming":"chinese"};
for(var key in jsonObj){
console.log(key+"==="+jsonObj[key]);
}
</script>
output string:jack===american xiaoming===chinese
<script>
var jsonObj = {"jack":"american","xiaoming":"chinese"};
for(var key in jsonObj){
console.log(key+"==="+jsonObj[key]);
}
</script>
output string:jack===american xiaoming===chinese
No comments:
Post a Comment
Note: only a member of this blog may post a comment.