SOURCE

console 命令行工具 X clear

                    
>
console
        function refresh(){
                $('#num').html('1');
                /* clearInterval(interval); */
        }

       
        function adjust(){
                var content = $('#num').html();
                if(content!='100'){
                        content ++;
                        $('#num').html(content);
                        }
                else{
                        $('#num').html('1');
                        }
        }

        function start(){
                var time = $('#TimeLimit').val();
                /* setInterval(function adjust(){}, time); */
                window.setInterval(function(){
                        var content = $('#num').html();
                        if(content!='100'){
                                content ++;
                                $('#num').html(content);
                                }
                        else{
                                $('#num').html('1');
                                }
                        }, time);
        }

       
        function paush(){
                var content = $('#num').html();
                $('#content').html(content);
        }
<div id='num'>1</div>
<div id='content'></div>
<input id='TimeLimit' value="300" />
<span>/毫秒</span>
<button id='refresh' onclick="refresh()">刷新</button>
<button id='start' onclick="start()">开始</button>
<button id='paush' onclick="paush()">截取</button>
.main{
	width: 50vw;
    height: 50vh;
    margin: auto;
    line-height: 50vh;
    text-align: center;
}
#data{
/* 	font-size: 30px; */
}

div.p_bit,div.s_bit{
	display: inline-block;
	overflow: hidden;
	vertical-align: middle;
	height: 20px;/*组件需配置 默认20px*/
	width: 9px;/*组件需配置 默认9px*/
	position: relative;
}
div.p_bit ul {
	position: absolute;
	list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    transition:all 0.5s ease;
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease; 
	-ms-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
}
div.p_bit ul li{
	margin: 0;
    padding: 0;
	height: 20px;/*组件需配置 默认20px*/
	line-height: 20px;/*组件需配置 默认20px*/
	width: 100%;
	text-align: center;
}

本项目引用的自定义外部资源