search

Home  >  Q&A  >  body text

angular.js - angular starts and clears timers

There is an element area <p></p>. How to use angular to implement the following functions:
1. Start timing as soon as the page is opened (that is, when initialized).
2. Then, when the mouse slides in ((mouseenter事件), clear the timer $interval
3. Then, when the mouse slides out (mouseleave事件), turn on the timer $interval
Thank you for your advice

迷茫迷茫2774 days ago598

reply all(1)I'll reply

  • 黄舟

    黄舟2017-05-15 17:00:57

    http://sentsin.com/web/486.html

    reply
    0
  • Cancelreply