维护别人的angular 代码 用了require 不太明白这段代码的开头的部分,请大神指点指点 尤其是
define(['APP'],function(APP){
'use strict';
APP.controller('CuisineController',
['title','$http','$scope','$state','$stateParams',
function( title , $http , $scope , $state , $stateParams ) {
//获取url参数
$scope.UrlGet = $$.getUrlParams();
//声明
['title','$http','$scope','$state','$stateParams',
function( title , $http , $scope , $state , $stateParams ) {
$scope.UrlGet = $$.getUrlParams();
叮当猫咪
相关分类