【发布时间】:2011-10-27 18:42:57
【问题描述】:
我编写了以下代码来从 web 服务获取 JSON 结果。
function SaveUploadedDataInDB(fileName) {
$.ajax({
type: "POST",
url: "SaveData.asmx/SaveFileData",
data: "{'FileName':'" + fileName + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
var result = jQuery.parseJSON(response.d);
//I would like to print KEY and VALUE here.. for example
console.log(key+ ':' + value)
//Addess : D-14 and so on..
}
});
}
这是来自网络服务的响应:
请帮我打印 Key 和它的 Value
【问题讨论】: