jQuery和Ajax联动

jQuery对象Ajax的支持

  jQuery对Ajax进行封装,提供了$.ajax()方法

  语法:$.ajax(options)

  

 

 

Ajax函数的使用

 

Ajax函数的详细说明

 "error" :function(xmlhttp, errorText){

   if(xmlhttp.status !=200){

    alert("请求错误")

  }   

     }  

posted @ 2020-09-20 10:46  python成长中  阅读(108)  评论(0)    收藏  举报