jQuery-timestamp conversion countdown code
代码片段:
$("#btn1").click(function () {
$("#input1-1").val(DateToUnix($("#input1").val()));
});
$("#btn2").click(function () {
$("#input2-1").val(UnixToDate(Number($("#input2").val()),2));
});
$("#btn3").click(function () {
setInterval(function () {
$("#input3-1").val(DownTime($("#input3").val()));
},1000);
});
$("#btn4").click(function () {
$("#input4-1").val(NumBerToHanZi($("#input4").val()));
});
All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn
Related Article
05 Feb 2018
jQuery can implement the countdown function. This article mainly introduces the small application of jquery to implement the countdown in detail. It has certain reference value. Interested friends can refer to it. I hope it can help everyone.
16 May 2016
I need to count down the recent projects I have done. I looked through the information, wrote it down, and shared it with everyone. You are welcome to make suggestions. Remember to quote the jquery library yourself.
16 May 2016
This article introduces an example of Jquery countdown button setTimeout. Friends in need can refer to it.
29 Jul 2016
unix timestamp: unix timestamp PHP time conversion Unix timestamp code: copy the code as follows: <?php date_default_timezone_set('Asia/Chongqing'); $time1 = "2006-04-16 08:40:54"; $time2 = strtotime($time1); echo $time2; echo date('Y-m-d h:i:s',$time2); ?>
16 May 2016
This article mainly introduces jQuery to implement countdown button function code sharing, which is generally used in the context of sending countdown buttons in text messages. This article gives several examples. Friends in need can refer to them.
16 May 2016
A jQuery object is an object generated by wrapping a DOM object with jQuery. The jQuery object is unique to jQuery. It can use methods in jQuery, but cannot use DOM methods; for example, $("#img").attr("src","test.jpg"); here $(" #img") is the jQuery object;
16 May 2016
This article mainly introduces the countdown code for jquery to implement mobile phone verification code. Friends who need it can refer to it.
07 Mar 2018
This article mainly shares with you the code of the conversion method between js timestamp and ordinary time. We will share it with you in the form of code, hoping to help you.
Hot Tools
jQuery2019 Valentine's Day Confession Fireworks Animation Special Effects
A very popular jQuery Valentine's Day confession fireworks animation special effect on Douyin, suitable for programmers and technical geeks to express their love to the girl they love. No matter you choose to be willing or not, you have to agree in the end.
layui responsive animated login interface template
layui responsive animated login interface template
520 Valentine's Day confession web animation special effects
jQuery Valentine's Day Confession Animation, 520 Confession Background Animation
Cool system login page
Cool system login page
HTML5 tape music player-CASSETTE PLAYER
HTML5 tape music player-CASSETTE PLAYER