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