看板 Ajax 關於我們 聯絡資訊
※ 引述《WarnOcean (重回NCTU)》之銘言: : <script> : function next(){ : location.reload() : } : function xxx(){ : xxx... : } : </script> : <body onLoad="setTimeout('next()',10000)"> <body onLoad="xxx();setTimeout('next()',10000);"> : 我有兩個function : 其中next()是每10秒會重新讀網頁一次 : 請問我希望每次重讀網頁後可以先自動執行xxx()一次該怎麼寫呢? try it ~ --  ▄▅▆▇███▇▆▅▄▃        ╰┼╯─╮ ╮         ◥███████████◣       ╰┼╯=│=│         ◥██████───────    *. ╯  ╯ ╯ の 物 語 .*  ◥███████──────◣ ~ ◢◣             ◢◣  ◥██████───────◤   ◥◤  空白的世界.翼 ◥◤  ◥██▁▂▃▄▅▆▇███▆▅▄▃▂▂telnet://tony1223.no-ip.info -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.132.59.247
WarnOcean:大感謝 原來這麼簡單 居然沒想到 我果然還要多多磨鍊 10/22 21:44