为什么不能在startCount()下面直接调用该函数呢?
为什么不能在startCount()下面直接调用该函数呢?
1 2 3 4 5 6 | function startCount() { document.getElementById( 'count' ).value=num; num=num+1; setTimeout( "startCount()" ,1000); } startCount(); |
为什么不能在startCount()下面直接调用该函数呢?
1 2 3 4 5 6 | function startCount() { document.getElementById( 'count' ).value=num; num=num+1; setTimeout( "startCount()" ,1000); } startCount(); |
2015-07-23
举报