<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<button id='aa'onclick='btnclicked()'>按钮</button>
<p id='ptime'></p>
<script type="text/javascript">
var time=setInterval(function(){
gettime();
},1000);
function gettime(){
var d=new Date();
var t=d.toLocaleTimeString();
document.getElementById("ptime").innerHTML=t;
};
function btnclicked(){
clearInterval(time);
}
function out(){
var vv=setTimeout(function(){
alert('hello');
},3000);
}
</script>
<button id='out'onclick='out()'>3秒</button>
</body>
</html>
进度:100% #####轮播图 ``` <!DOCTYPE html>