赞
踩
你可以使用$ q的'all'功能:
var a = $http.get(DataElementUrl).then(function (response) { if (!response.data == "") dataElementJson = response.data; }); var b = $http.get(categoryComboUrl).then(function (response) { if (!response.data == "") categoryComboJson = response.data; }); var c = $http.get(categoryUrl).then(function (response) { if (!response.data == "") categoryJson = response.data; }); $q.all([a, b,c]).then(function(result) { check++; $scope.getJson(); });
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。