Open hsipeng opened 7 years ago
远程html代码返回,插入指定元素
url 请求路径 data 请求参数,使用JSON串 callback 回调函数
无参数,get,有参数,post
- .get(ur,[data],[callback],[type]) url 请求路径 data 请求参数,使用JSON串 callback 回调函数 type 类型
- .post(ur,[data],[callback],[type]) url 请求路径 data 请求参数,使用JSON串 callback 回调函数 type 类型
数据转化为JSON串,所以返回类型为json,返回html无效