1

这个 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 () {

        }
    });
4

0 回答 0