如题。。
dict.js:
'use strict';
angular.module('app').value('dict', {}).run(['$http', function($http){
$http.get('data/city.json', {})
.then(function(resp){
dict.city = resp.data;
}).catch()
$http.get('data/salary.json', {})
.then(function(resp){
dict.salary = resp.data;
}).catch()
$http.get('data/scale.json', {})
.then(function(resp){
dict.scale = resp.data;
}).catch()
}])