Changes between Initial Version and Version 1 of jazz/11-02-17


Ignore:
Timestamp:
Feb 18, 2011, 9:32:38 AM (13 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/11-02-17

    v1 v1  
     1= 2011-02-17 =
     2
     3== jQuery ==
     4
     5 * Q: jQuery 如何做 reload 機制呢?
     6 * [參考] [http://forum.jquery.com/topic/javascript-sleep-wait-and-use-of-settimeout javascript sleep(), wait(), and use of setTimeout()]
     7 * 用 setTimeout('函數',毫秒數) 來設定單次觸發。
     8{{{
     9$(document).ready(function() {
     10  setTimeout('addDot()',1000);
     11});
     12function addDot() {
     13  $('#dots').append('.');
     14  setTimeout('addDot()',1000);
     15}
     16}}}