JQuery基础-- Ajax

基本格式:

get:

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

post:

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

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

原文地址:https://www.cnblogs.com/-beyond/p/8309487.html