angularjs-数据同步时机ng-model-options
生活随笔
收集整理的這篇文章主要介紹了
angularjs-数据同步时机ng-model-options
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
#ng-model-options數(shù)據(jù)同步時(shí)機(jī)
<!DOCTYPE?html>
<html><head><meta?charset="utf-8"?/><title></title><script?src="js/angular.min.js"></script></head><body><div?ng-app="app"?ng-controller="ctrl">#光標(biāo)移開或者延時(shí)3s后更新<input?type="text"?ng-model="status"?ng-model-options="{updateOn:'default?blur',debounce:{default:3000,blur:0}}"/>?`status`</div><script?type="text/javascript">?var?m=angular.module('app',[]);m.controller('ctrl',['$scope',function($scope){$scope.status=true$scope.odata=['xmzhang','cxiong','fjwu','cxiong']}]);?</script></body>
</html>
轉(zhuǎn)載于:https://blog.51cto.com/f1yinsky/1956255
總結(jié)
以上是生活随笔為你收集整理的angularjs-数据同步时机ng-model-options的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 记一次小型生产事故 | BeyondCo
- 下一篇: 如何在Linux下安装PyCharm