【发布时间】:2011-05-31 04:17:52
【问题描述】:
使用此代码:
$("#mybutton").click(function(){
$.ajax({
url: '/Member/GetPinPoints/@Model.Id',
type: "POST",
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function(data) {
alert(data);
},
error: function() {
alert("error");
}
});
return false;
});
我收到一个如下所示的 JSON 对象:
[{"Position":1,"Top":182,"Left":20,"Height":73,"Width":90},{"Position":2,"Top":69,"Left":103,"Height":98,"Width":1}]
如果我想提醒每个单独的值,我该如何遍历这些数据?
【问题讨论】:
标签: c# jquery asp.net json asp.net-mvc-3