English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="https://cdn.staticfile.org/angular.js/1.4.6/angular.min.js"></script> </head> <body ng-app=""> <div ng-mouseover="count = count + 1" ng-init="count=0">تحريك الفأرة فوقي!</div> <h1>{{count}}</h1> <p>في هذا المثال، عند تحريك الفأرة فوق عنصر DIV، سيتم توفير المتغير "count" تلقائيًا بزيادة 1.</p> </body> </html>اختبار لمعرفة ‹/›
ng-mouseover تعليمات تستخدم لتخبر AngularJS ما يجب القيام به عند تحريك الفأرة فوق العنصر المحدد.
ng-mouseover تعليمات لا تغطي الحدث الاصلي onmouseover للعنصر, عند إطلاق الحدث،ng-mouseover سيتم تنفيذ التعبير والحدث الاصلي onmouseover كلاهما.
<element ng-mouseover="expression"></element>
جميع عناصر HTML يدعم هذه التعليمات.
القيمة | الوصف |
---|---|
التعبير | التعبير الذي يتم تنفيذه عند تحريك الفأرة فوق العنصر. |