維護別人的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();
如何理解angular的這段代碼?
MMTTMM
2018-11-23 19:15:39