Blogger Information
Blog 1
fans 0
comment 0
visits 338
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
js将秒数改变为经历的时间
wyl的博客
Original
340 people have browsed it

var str  = '';
    if(timeff >= 86400)
    {
      var  d = parseInt(timeff/86400)
      timeff = (timeff%86400);
        str +=d+':';
    }
    if(timeff >= 3600){
      var h= parseInt(timeff/3600)
      timeff = (timeff%3600);
      str +=h+':';
    }
    if(timeff >= 60){
      var m=parseInt(timeff/60);

      timeff = (timeff%60);
      str +=m+':';
    }
    var s = timeff;
    str +=s;

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post