如何进行div刷新,比如10秒后再执行run_query()函数而不点击按钮?
<script src="scripts/ajax.js" type="text/javascript"></script>
<div id="quote"><strong>Quote of the Day</strong></div>
<div><a style="cursor:pointer" onclick="run_query()">Next quote …</a></div>
答案 0 :(得分:11)
答案 1 :(得分:2)
setTimeout("run_query()",10000);