AngularJS ng-mouseover 指令

AngularJS 教程 · 2019-04-01 22:17:55

AngularJS 实例

在鼠标指针移动到元素上时执行表达式:

<div ng-mouseover="count = count + 1" ng-init="count=0">鼠标移动到我这!</div>

<h1>{{count}}</h1>

定义和用法

ng-mouseover 指令用于告诉 AngularJS 鼠标移动到指定的 HTML 元素上时要执行的操作。

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

语法

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

所有的 HTML 元素支持该指令。

参数值

描述
expression 鼠标移动到元素上时执行的表达式。

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

查看所有标签

Probability and Computing: Randomization and Probabilistic Techn

Probability and Computing: Randomization and Probabilistic Techn

Michael Mitzenmacher、Eli Upfal / Cambridge University Press / 2017-7-3 / USD 62.23

Greatly expanded, this new edition requires only an elementary background in discrete mathematics and offers a comprehensive introduction to the role of randomization and probabilistic techniques in m......一起来看看 《Probability and Computing: Randomization and Probabilistic Techn》 这本书的介绍吧!

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

在线压缩/解压 CSS 代码

URL 编码/解码
URL 编码/解码

URL 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换