angular controller綁定方法的寫法

angular.module("myApp", []) .controller("myCtrl", ['$scope', function($scope){ $scope.mydata = "hello"; $scope.myclick = myclick; function myclick(){ alert($scope.mydata) } }])
相關文章
相關標籤/搜索