setTimeouthttps://stackoverflow.com/a/18381353/433570有一个答案它没有提供我们是否可以像在javascript中那样取消计时器的信息。android有没有可以取消的定时器? 最佳答案 根据thedocumentation处理程序publicfinalvoidremoveCallbacks(Runnabler)AddedinAPIlevel1RemoveanypendingpostsofRunnablerthatareinthemessagequeue.示例代码:Runnableru