|
实在不知道怎么描述,做了个gif图片,大致就是点了按钮过后,执行一次,然后在其他地方快速点击,又会监听到这个点击事件,但是如果相隔2秒以上就不会出现。
<ion-view view-title="意见反馈">
<ion-content ng-controller="feedBack" overflow-scroll="true">
<div class="feedBack">
<div class="idea">
<textarea name="" ng-model="feed" placeholder="你的要求是我们努力的方向,期待听到你的声音"></textarea>
<div class="wordNumber">可以输入200字</div>
</div>
<div class="submitBtn">
<button class="button button-assertive" ng-click="submitOrder()">提交</button>
</div>
</div>
</ion-content>
</ion-view>
//js代码.controller("feedBack",["$scope","$ionicSideMenuDelegate","$ionicLoading","$cordovaDialogs","data",function($scope,$ionicSideMenuDelegate,$ionicLoading,$cordovaDialogs,data){
$ionicSideMenuDelegate.toggleLeft(false);
$scope.submitOrder = function(){
alert($scope.feed);
}
}])
|
|