我从我的 jquery 调用 web 服务
$.ajax({
type: "POST",
url: "/DataService.asmx/Search",
contentType: "application/json; charset=utf-8",
data: "{'date' : '" + $("#txtDate").val() + "'}",
dataType: "json",
success: function (data) {
},
error: function (req, status, error) {
}
});
在数据中收到一些值,例如"[{"Id":10,"Name":"abdul samathu","Mobile":"8147708287","Email":"shanish.mca@gmail.com"}]"
在这里我怎样才能单独获得这些值,我试过了
var name=data.Name;
var mobile=data.Mobile like this, but its not working can anyone help me here