解析angular.js中的JSONP $ http.jsonp()响应
我正在使用angular的$http.jsonp()请求,该请求成功返回包含在函数中的json:
var url = "http://public-api.wordpress.com/rest/v1/sites/wtmpeachtest.wordpress.com/posts?callback=jsonp_callback";$http.jsonp(url).
success(function(data, status, headers, config) {
//what do I do here?
}).
error(function(data, status, headers, config) {
$scope.error = true;
});如何访问/解析返回的函数包装JSON?
温温酱
慕莱坞森
随时随地看视频慕课网APP
相关分类