jQueryはJsonのデータをどのように取得しますか.
1256 ワード
function f_save(item, dialog) {
var issave = dialog.frame.f_save(); //issave Json
var a = $.parseJSON(issave); // JSON , JavaScript
if (a.doctor_on_duty_date == "") // Json 。
{
$.ligerDialog.error(" !");
return;
}
if (issave) {
$.ligerDialog.waitting(' , ...');
$.ajax({
url: "../../../Handler/AppointmentManager/ReorganiseListHandler.ashx", type: "POST",
data: { Action: "Add_SchedulingTable", json: issave },
success: function (responseText) {
$.ligerDialog.closeWaitting();
if (responseText.IsSuccess) {
dialog.close();
$.ligerDialog.success(' !');
manager.loadData();
}
else {
$.ligerDialog.error(' , ');
}
},
error: function () {
$.ligerDialog.closeWaitting();
$.ligerDialog.error(' , ');
},
dataType: "json"
});
}
};