[英]AJAX/JS: Echoing value of a div without page refresh or button click
[英]div refresh without click of the button
如何進行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>
setTimeout("run_query()",10000);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.