老师 jquery里面的数据citiesList 怎么在controller里面获得?
var selectApp = angular.module("orderApp", [])
.controller("orderCtrl", ["$scope", "$http", function($scope, $http) {
$scope.citiesList???
}])
function getArea(parentid){
$.getJSON({
dataType: "jsonp",
jsonp: "jsoncallback",
data: {
"parentId": parentid
},
url: "http://weixin.test.jatm.cn/weixin/v1/areas/getCitiesList.json", //服务器地址
success: function(data) { //请求成功后的回调函数
var citiesList=data.data.message.citiesList;
console.log(citiesList);
}
})
}