摘要:
.controller( 'actionsheetCtl',['$scope',function($scope){ $scope.onHold=function(){ console.log(event.target); } }]) <button on-hold="onHold()" id="bt 阅读全文
摘要:
angular.module("myApp",[]) .controller("firstCtrl",["$scope",function(zhaowanhua){ //固定模式:使用该模式,可以自定义参数名字,该例,zhaowanhua = $scope //建议使用此模式 }]) .contro 阅读全文
摘要:
刚开始 做一个项目,总是报错“XX is not a function” 最后发现 原因 , 原来是 服务的 注入位置 有问题。 angular.module("myController",[]) .controller("myCtrl",["$scope","$http","$state",fun 阅读全文