JSON获取数据
2016-10-25 本文已影响0人
少年vv
通过JSON获取接口数据,可以用jquery的get方法
$.getJSON("接口地址"),{
"key" : "value"
},function(data) {
//对返回值进行操作
}
示例

可以用postman测试借口


通过JSON获取接口数据,可以用jquery的get方法
$.getJSON("接口地址"),{
"key" : "value"
},function(data) {
//对返回值进行操作
}
可以用postman测试借口