Home  >  Article  >  Web Front-end  >  Jquery binding time implementation code_jquery

Jquery binding time implementation code_jquery

WBOY
WBOYOriginal
2016-05-16 18:07:001079browse

Quoting the jquery library:
    

Copy code The code is as follows:

$(function() {
$('#demo').jclock();
$('#local').click(function() { $('#demo').jclock() });
$('#with').click(function() { $('#demo').jclock({ withDate: true, withWeek: true }) });
$('#utc').click( function() { $('#demo').jclock({ withDate: true, utc: true }) });
});

Front-end code:
Copy code The code is as follows:





Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn