<input type="text" id="times">
<input type="button" value="倒計時開始" onclick="count()">
<script type="text/javascript">
function counts(ti){
ti--;
}
function count(){
var tim=document.getElementById("times").value;
setInterval("counts(tim)",1000);
}
</script>
js怎么實現一個倒計時,這個方法沒有實現,該怎么在這個代碼上修改
翻翻過去那場雪
2018-07-24 15:27:42