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-mouseenter="count = count + 1" ng-init="count=0">مرور الفأرة عبري!</div> <h1>{{count}}</h1> <p> في هذا المثال، عند مرور الفأرة عبر عنصر DIV، سيتم زيادة المتغير "count" تلقائيًا بـ 1.</p> </body> </html>اختبار لمعرفة <‹/›
ng-mouseenter تعليمات تُستخدم لتخبر AngularJS ما يجب تنفيذه عند مرور الفأرة عبر العنصر.
ng-mouseenter تعليمات لا تغطي الحدث الأصلي onmouseenter للعنصر، عندng-mouseenter سيتم تنفيذ العبارة والحدث الأصلي onmouseenter.
<element ng-mouseenter="expression"></element>
جميع عناصر HTML يدعم هذه التعليمات.
القيمة | وصف |
---|---|
عبارات | عبارات تنفيذ عند مرور الفأرة عبر العنصر. |