这个ajax调用工作在chrome,IE,firefox,opera但不在safari中。任何人都知道原因。
var functionToCall = "CallUserControlFunctionAdd";
var schoolInformation = JSON.stringify({ SchoolName: schoolName, schoolId: SchoolId, UserName: userName });
$.ajax({
type: 'POST',
url: "Account/MyAccount.aspx/" + functionToCall,
data: schoolInformation,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function () {
},
error: function () {
}
});