AngularJS ng-mousemove 指令
AngularJS 教程
· 2019-04-01 21:57:03
AngularJS 实例
在鼠标指针在元素上移动时执行表达式:
<div ng-mousemove="count = count + 1" ng-init="count=0">在我这移动鼠标!</div>
<h1>{{count}}</h1>
<h1>{{count}}</h1>
定义和用法
ng-mousemove 指令用于告诉 AngularJS 鼠标在 HTML 元素上移动时要执行的操作。
ng-mousemove 指令不会覆盖元素的原生 onmousemove 事件, 事件触发时,ng-mousemove 表达式与原生的 onmousemove 事件将都会执行。
语法
<element ng-mousemove="expression"></element>
所有的 HTML 元素支持该指令。
参数值
值 | 描述 |
---|---|
expression | 鼠标在元素上移动时执行的表达式。 |
点击查看所有 AngularJS 教程 文章: https://www.codercto.com/courses/l/36.html
Types and Programming Languages
Benjamin C. Pierce / The MIT Press / 2002-2-1 / USD 95.00
A type system is a syntactic method for automatically checking the absence of certain erroneous behaviors by classifying program phrases according to the kinds of values they compute. The study of typ......一起来看看 《Types and Programming Languages》 这本书的介绍吧!