嗨,我有一个 Ajax 的 Json 调用,代码是
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "Voyage.aspx/VoyageVessel_Set",
data: "{Action:'" + "Set" + "',VesselID:'" + "1" + "',VoyageMasterID:'" + "1" + "',StartTerminalID:'" + "1" + "',LastTerminalID:" + "" + ",EffectiveStartDate:'" + "09/09/09" + "',EffectiveEndDate:'" + "09/09/09" + "',PreviousVoyageID:'" + "1" + "',NextVoyageID:'" + "1" + "',DefaultVoyage:'" + "0" + "',Status:'" + "true" + "'}",
async: true,
dataType: "json",
success: function (data) {
try {
alert("Success for ADD button");
// $('#dvVesselTaggerInfo').html(html);
} catch (ex) {
alert(ex);
}
},
error: function (msg) {
alert(error);
}
});
由于我试图给出我的方法的数据没有调用,我希望我以正确的格式编写它,但我仍然无法理解问题是什么,任何人都可以帮助我。