從剛剛的範例中,是透過html的按鈕,去觸發ng-click事件。 Html: <input type="button" value="Click" ng-click="action()">. Js: $scope.action = function ...
確定! 回上一頁