AngularJS ng-cut 指令

AngularJS 教程 · 2019-04-01 15:58:14

AngularJS 实例

输入框的文本被剪切时执行表达式:

<input ng-cut="count = count + 1" ng-init="count=0" value="剪切这个文本" />

定义和用法

ng-cut 指令用于告诉 AngularJS 在剪切 HTML 元素的文本时需要执行的操作。

ng-cut 指令指令不会覆盖元素的原始 oncut 事件, 事件触发时,ng-cut 表达式与原始的 oncut 事件将都会执行。

语法

<element ng-cut="expression"></element>

<a>, <input>, <select>, <textarea>, 及窗口对象都支持该指令。

参数值

描述
expression 元素文本被剪切时执行的表达式。

点击查看所有 AngularJS 教程 文章: https://codercto.com/courses/l/36.html

查看所有标签

APIs

APIs

Daniel Jacobson、Greg Brail、Dan Woods / O'Reilly Media / 2011-12-24 / USD 24.99

Many of the highest traffic sites get more than half of their traffic not through the browser but through the APIs they have created. Salesforce.com (more than 50%) and Twitter (more than 75% fall int......一起来看看 《APIs》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具