Jquery Ajax响应无法在safari中工作..但是其他浏览器工作正常......这里有什么错误?

时间:2013-04-03 10:54:24

标签: jquery ajax

$.ajax({
        url:'ajax.php?action=wordFind&word='+arrString,
        cache: true,
        type: "GET",
        success:function(res){
              if(res=="find") { }
        }
    });

1 个答案:

答案 0 :(得分:0)

$.ajax({
        url:'ajax.php?action=wordFind&word='+arrString,
        cache: true,
        async:false,
        dataType:html,//If the response is json replace it with "json"
        type: "GET",
        success:function(res){
           console.log(res);//To check you are getting any reponse
           if(res=="find")
               {
                //Do the stuff you want.
               }
            }
    });