<html>
<title>无标题文档</title>
<style type="text/css">
</style>
<script src="jquery-3.3.1.min.js">
</script>
<script type="text/javascript">
$(function(){
var sam =100000;
setTimeout(function(){
var now = new Date();
var mine = now.getMinutes();
var sec = now.getSeconds();
$("span").html(mine+":"+sec);
alert(sam);
},sam);
$("input").click(function(){
alert("开始");
sam = 1000;
});
});
</script>
</head>
<body>
<span>00:00</span>
<input type="button" value="开始" />
</body>
</html>