ionic省市县三级联动-改进

原创
2016/05/27 10:20
阅读数 170

http://blog.csdn.net/leiflyy/article/details/50039011

 

$scope.cities;
$scope.areas;
$scope.proToCity = function() {
    $scope.cities = []; $scope.areas = [];
    console.log($scope.pro);
    $scope.cities=$scope.pro.cityList;
}
$scope.cityToArea=function(){
    $scope.areas = [];
    console.log($scope.city)
    $scope.areas=$scope.city?$scope.city.areaList:[];
}
 
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部