JQuery Ajax call often not working on Safari 6

后端 未结 5 1704
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-10 09:51

My Ajax call is really simple as below:

function ajax(reqUrl, params , callback) {
console.log(\"Request URL \"+reqUrl);
var cond;
cond = $.ajax({
    type:          


        
5条回答
  •  半阙折子戏
    2020-12-10 10:28

    This is use for MVC application.

    $.ajax({
    type: "POST",
    url:'getResult', 
    data: "{userName :'" + userName  + "',password :'" + password + "' }",
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    success: function (data) {
    alert("here" + data.toString());
    });
    

    For Asp.net Application :

    $.ajax({
    type: "POST",
    url:'getResult', 
    data: "{userName :'" + userName  + "',password :'" + password + "' }",
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    success: function (data) {
    alert("here" + data.toString());
    });
    

    if u have still the issue than please post ur complete code here. i will test and reply soon

提交回复
热议问题