我是AngularJS的新手.使用数组参数声明的控制器之间的区别是什么,将依赖关系列为字符串和JavaScript名称,
app.controller("firstController", ['$scope', '$modal', '$log', 'HttpService', 'FisrtSharedService', 'SecondSharedService', function($scope, $modal, $log, HttpService, FisrtSharedService, SecondSharedService) {
}]);
Run Code Online (Sandbox Code Playgroud)
...和这个表单,只列出JavaScript名称?
app.controller("firstController", function($scope, $modal, $log, HttpService, FisrtSharedService, SecondSharedService){
});
Run Code Online (Sandbox Code Playgroud)
为什么第一个版本中的奇怪语法?
有没有办法从"gcm通知"获取数据.这是我用gcm发送的json字符串的一部分:"data":{"state":"deliver"}}.这里我使用php curl请求发送数据.提前致谢.