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://www.codercto.com/courses/l/36.html

查看所有标签

Web Anatomy

Web Anatomy

Robert Hoekman Jr.、Jared Spool / New Riders / 2009-12-11 / USD 39.99

At the start of every web design project, the ongoing struggles reappear. We want to design highly usable and self-evident applications, but we also want to devise innovative, compelling, and exciting......一起来看看 《Web Anatomy》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

MD5 加密
MD5 加密

MD5 加密工具