douyao3895 2018-04-21 11:44
浏览 25

如何创建一个柜台

I would like to create a counter in which I can set a starting number and that every second increases by one. I need the counter to be integrated into a page of my website. I have no idea how to create it. Thank you everyone

  • 写回答

1条回答 默认 最新

  • dongzhouhao4316 2018-04-21 12:06
    关注

    This is a javascript question.

    var i=0;
    setInterval(function(){
        i++;
        //add_code to update html text to i
    ,1000);
    
    评论

报告相同问题?