标签:this property scope color delete span ext hang onkeyup
onkeyup无法监听到复制黏贴导致的内容变化,可以使用oninput事件
注:IE下 用 onpropertychange
<textarea ng-keydown = "addReason(event)" oninput = "angular.element(this).scope().addReason(event)" onproperty = "angular.element(this).scope().addReason(event)"> </textarea>
ng-keydown 要排除backspace键和delete键
标签:this property scope color delete span ext hang onkeyup
原文地址:http://www.cnblogs.com/zyjzz/p/7074610.html