基本格式:

get:

$.get("url",data,function(res){   #.....   })

post:

$.post("url",data,function(res){   #...   })

 

其中,data为json格式。后面的function是指成功请求,并且获得响应结果(res)之后,进行的操作。

相关文章:

  • 2021-08-29
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-10-16
猜你喜欢
  • 2021-12-23
  • 2021-10-24
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案