AngularJS ng-paste 指令
AngularJS 教程
· 2019-04-01 23:39:46
AngularJS 实例
文本被粘贴时执行表达式:
<input ng-paste="count = count + 1" ng-init="count=0" value="粘贴文本到这"
/>
定义和用法
ng-paste 指令用于告诉 AngularJS 文本在 HTML 元素上粘贴时需要执行的操作。
ng-paste 指令不会覆盖元素的原生 onpaste 事件, 事件触发时,ng-paste 表达式与原生的 onpaste 事件将都会执行。
语法
<element ng-paste="expression"></element>
<input>, <select>, <textarea> 及其他可编辑元素支持该指令。
参数值
| 值 | 描述 |
|---|---|
| expression | 文本粘贴到元素上执行的表达式。 |
点击查看所有 AngularJS 教程 文章: https://codercto.com/courses/l/36.html
Designing Web Navigation
James Kalbach / O'Reilly Media / 2007-8-15 / USD 49.99
Thoroughly rewritten for today's web environment, this bestselling book offers a fresh look at a fundamental topic of web site development: navigation design. Amid all the changes to the Web in the pa......一起来看看 《Designing Web Navigation》 这本书的介绍吧!