<script>
var timeLeft = 90 * 60 * 1000;
function countTime()
{
if(timeLeft == 0)
{
alert("时间到!");
return;
}
var startMinutes = parseInt(timeLeft / (60 * 1000), 10);
var startSec = parseInt((timeLeft - startMinutes * 60 * 1000)/1000)
document.body.innerText = "剩余时间:" + startMinutes + "分钟" + startSec + "秒";
timeLeft = timeLeft - 1000;
setTimeout('countTime()',1000);
}
</script>
<body onload="countTime()">
</body>
var timeLeft = 90 * 60 * 1000;
function countTime()
{
if(timeLeft == 0)
{
alert("时间到!");
return;
}
var startMinutes = parseInt(timeLeft / (60 * 1000), 10);
var startSec = parseInt((timeLeft - startMinutes * 60 * 1000)/1000)
document.body.innerText = "剩余时间:" + startMinutes + "分钟" + startSec + "秒";
timeLeft = timeLeft - 1000;
setTimeout('countTime()',1000);
}
</script>
<body onload="countTime()">
</body>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货