久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='MCjfq'></bdo><ul id='MCjfq'></ul>
    <legend id='MCjfq'><style id='MCjfq'><dir id='MCjfq'><q id='MCjfq'></q></dir></style></legend>

      1. <small id='MCjfq'></small><noframes id='MCjfq'>

        <tfoot id='MCjfq'></tfoot>

      2. <i id='MCjfq'><tr id='MCjfq'><dt id='MCjfq'><q id='MCjfq'><span id='MCjfq'><b id='MCjfq'><form id='MCjfq'><ins id='MCjfq'></ins><ul id='MCjfq'></ul><sub id='MCjfq'></sub></form><legend id='MCjfq'></legend><bdo id='MCjfq'><pre id='MCjfq'><center id='MCjfq'></center></pre></bdo></b><th id='MCjfq'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='MCjfq'><tfoot id='MCjfq'></tfoot><dl id='MCjfq'><fieldset id='MCjfq'></fieldset></dl></div>

        PC從睡眠模式喚醒時開始調用js函數

        Start calling js function when PC wakeup from sleep mode(PC從睡眠模式喚醒時開始調用js函數)

          • <bdo id='OcnvT'></bdo><ul id='OcnvT'></ul>
            <i id='OcnvT'><tr id='OcnvT'><dt id='OcnvT'><q id='OcnvT'><span id='OcnvT'><b id='OcnvT'><form id='OcnvT'><ins id='OcnvT'></ins><ul id='OcnvT'></ul><sub id='OcnvT'></sub></form><legend id='OcnvT'></legend><bdo id='OcnvT'><pre id='OcnvT'><center id='OcnvT'></center></pre></bdo></b><th id='OcnvT'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='OcnvT'><tfoot id='OcnvT'></tfoot><dl id='OcnvT'><fieldset id='OcnvT'></fieldset></dl></div>

          • <tfoot id='OcnvT'></tfoot>

                    <tbody id='OcnvT'></tbody>

                  <small id='OcnvT'></small><noframes id='OcnvT'>

                1. <legend id='OcnvT'><style id='OcnvT'><dir id='OcnvT'><q id='OcnvT'></q></dir></style></legend>
                  本文介紹了PC從睡眠模式喚醒時開始調用js函數的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  在我的 aspx 頁面中,我使用 xmlhttp.response 來更新此頁面的一部分.使用 js 函數,此更新每 3 秒發生一次.但是當我的電腦進入睡眠模式時,這個更新不會發生.還行吧.但是當電腦從睡眠模式喚醒時,我需要自動開始更新而不重新加載這個頁面.如何做到這一點?

                  In my aspx page, I use xmlhttp.response to update a part of this page. This update occurs in every 3 seconds using js function. But when my PC goes to sleep mode, this update doesn't happen. This is OK. But when PC wake up from sleep mode, I need to start update automatically without reload this page. How to do this?

                  推薦答案

                  您可以檢測 JS 時間線中的中斷(例如筆記本電腦睡眠、阻止 JS 執行的警報窗口、打開調試器的 debugger 語句) 通過比較墻上時間的變化與預期的計時器延遲.例如:

                  You can detect disruptions in the JS timeline (e.g. laptop sleep, alert windows that block JS excecution, debugger statements that open the debugger) by comparing change in wall time to expected timer delay. For example:

                  var SAMPLE_RATE = 3000; // 3 seconds
                  var lastSample = Date.now();
                  function sample() {
                    if (Date.now() - lastSample >= SAMPLE_RATE * 2) {
                      // Code here will only run if the timer is delayed by more 2X the sample rate
                      // (e.g. if the laptop sleeps for more than 3-6 seconds)
                    }
                    lastSample = Date.now();
                    setTimeout(sample, SAMPLE_RATE);
                  }
                  
                  sample();
                  

                  這篇關于PC從睡眠模式喚醒時開始調用js函數的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  <i id='g4djL'><tr id='g4djL'><dt id='g4djL'><q id='g4djL'><span id='g4djL'><b id='g4djL'><form id='g4djL'><ins id='g4djL'></ins><ul id='g4djL'></ul><sub id='g4djL'></sub></form><legend id='g4djL'></legend><bdo id='g4djL'><pre id='g4djL'><center id='g4djL'></center></pre></bdo></b><th id='g4djL'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='g4djL'><tfoot id='g4djL'></tfoot><dl id='g4djL'><fieldset id='g4djL'></fieldset></dl></div>
                    <bdo id='g4djL'></bdo><ul id='g4djL'></ul>

                        <tbody id='g4djL'></tbody>

                    1. <legend id='g4djL'><style id='g4djL'><dir id='g4djL'><q id='g4djL'></q></dir></style></legend>
                      <tfoot id='g4djL'></tfoot>

                            <small id='g4djL'></small><noframes id='g4djL'>

                          • 主站蜘蛛池模板: 97色在线视频 | 成人精品一区 | 国产精品久久久久久久久久久久久久 | 国产精品亚洲成在人线 | 中文字幕一区在线观看视频 | 中文字幕中文字幕 | 最近日韩中文字幕 | 欧美精品91爱爱 | 91久久久久久久久 | 精品视频免费在线 | 免费的网站www | 成人免费福利 | 国产在线一区观看 | 日本不卡一区 | av中文在线 | 国产在线一级片 | 欧美日韩中文在线观看 | 午夜精品久久久久久 | 中文字幕视频在线看 | 三极网站| av在线播放网站 | 免费看a| 亚洲国产欧美一区二区三区久久 | 黄色在线播放视频 | 日韩一区在线播放 | 国精久久 | h视频免费在线观看 | 色接久久| 91社区在线观看高清 | 久久伊人亚洲 | 国产日产久久高清欧美一区 | 久久久久久毛片免费观看 | 久久久久久国产精品免费免费男同 | 一级在线观看 | 亚洲免费在线 | 欧美一区二区网站 | 久久大陆 | 亚洲成年在线 | 欧美日韩综合视频 | 亚洲国产欧美91 | 中文字幕精品视频在线观看 |