ajax()方法用于AJAX请求
data后端发送的数据
get从指定资源请求数据
post向指定资源提交要处理数据 一定会传参
callback可选的 请求成功后执行的回调函数
ur
$.ajax({
type
url
datatype
success:function(请求返回数据)
{
console.log(json.stringify())
}
ajax()方法用于AJAX请求
data后端发送的数据
get从指定资源请求数据
post向指定资源提交要处理数据 一定会传参
callback可选的 请求成功后执行的回调函数
ur
$.ajax({
type
url
datatype
success:function(请求返回数据)
{
console.log(json.stringify())
}