为什么这样定义就不能取消定时器
<script type="text/javascript">
var num=0,i;
function timedCount(){
document.getElementById('txt').value=num;
num=num+1;
setTimeout(timedCount,1000);
}
i=setTimeout(timedCount,1000);
function stopCount(){
clearTimeout(i);
}
</script>