var result = {
"a":"a1",
"b":"2"
}// 循环遍历Mapfor (var key in result) {
if (result.hasOwnProperty(key)) {
// 得到key和value
console.log("key: " + key + " value: " + JSON.stringify(result[key]))
}
}var result = {
"a":"a1",
"b":"2"
}// 循环遍历Mapfor (var key in result) {
if (result.hasOwnProperty(key)) {
// 得到key和value
console.log("key: " + key + " value: " + JSON.stringify(result[key]))
}
}