在timer = setInterval(function(){...}) 這裡, 如果不加var, 則timer 是一個成員變數, 只在當前的匿名函式中有效。 解決方法是更改為var timer ...
確定! 回上一頁