摘要: <script>var flag = 0;var t;function openFlag () { t = setTimeout(function(){flag = 1; dosomething();}, 1000);}function closeFlag() { clearTimeout(t); 阅读全文