[ Web Proxy ]
URL:
Viewing: https://fr.javascript.info/task/live-timer [Back]  [Original]

Live timer element
FR

Nous souhaitons rendre ce projet open source disponible pour les gens du monde entier.

Aidez-nous traduire le contenu de ce tutoriel dans votre langue!

    Rechercher sur Javascript.info:
    Rechercher dans le tutoriel:
    Light themeDark theme
    DanskEnglishEspaolFranaisIndonesiaItalianoTrkeOzbek
    retour au cours
    Ce contenu n'est disponible que dans les langues suivantes :English, Espaol, Indonesia, Italiano, , , , Ozbek, . Merci de
    solution

    Please note:

    1. We clear setInterval timer when the element is removed from the document. Thats important, otherwise it continues ticking even if not needed any more. And the browser cant clear the memory from this element and referenced by it.
    2. We can access current date as elem.date property. All class methods and properties are naturally element methods and properties.

    Ouvrez la solution dans une sandbox.


    Web Proxy Viewer  |  New URL  |  Original Page