Page timing jumps
2016-08-23
1 0 0
no vote
Other
Earn points
function forwardToNext(){
setInterval("a()",1000); //Every 1s once a function is called
}
function a(){
var time = document.getElementById("num").innerText;
if(time>0){
time = time-1;
document.getElementById("num").innerText = time;
}
if(time==0){
setInterval("a()",1000); //Every 1s once a function is called
}
function a(){
var time = document.getElementById("num").innerText;
if(time>0){
time = time-1;
document.getElementById("num").innerText = time;
}
if(time==0){
Click the file on the left to start the preview,please
!The preview only provides 20% of the code snippets, the complete code needs to be downloaded
Report
javascript
页面
定时
Related Source Codes
WeChat mini program development
0
0
no vote
Image cropping and compression processing on mobil
0
0
no vote
Classic Interview Questions for Digital City Front
0
0
no vote
Clock timer
0
0
no vote
3D building large screen display
0
0
no vote
No comment