Example of jssetInterval () Usage

Source: Internet
Author: User
The setInterval () method can call functions or computation expressions according to the specified period (in milliseconds. The setInterval () method does not stop calling the function until clearInterval () is called or the window is closed. The ID value returned by setInterval () can be used as the clearInterva syntax.
SetInterval (code, millisec [, "lang"])
Parameter description
Code required. The function to be called or the code string to be executed.
Millisec is required. The interval between periodical execution or call codes, in milliseconds.
Return a value that can be passed to Window. clearInterval () to cancel the periodical execution of the code.

Instance

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.