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

    • <bdo id='oBAGs'></bdo><ul id='oBAGs'></ul>

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

      <legend id='oBAGs'><style id='oBAGs'><dir id='oBAGs'><q id='oBAGs'></q></dir></style></legend>
      <tfoot id='oBAGs'></tfoot>

        在 JS 中獲取客戶端時區(不是 GMT 偏移量)

        Get client timezone (not GMT offset amount) in JS(在 JS 中獲取客戶端時區(不是 GMT 偏移量))
      1. <legend id='VIOZ0'><style id='VIOZ0'><dir id='VIOZ0'><q id='VIOZ0'></q></dir></style></legend>
      2. <tfoot id='VIOZ0'></tfoot>
        • <bdo id='VIOZ0'></bdo><ul id='VIOZ0'></ul>

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

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

                  本文介紹了在 JS 中獲取客戶端時區(不是 GMT 偏移量)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我需要在 JS 中確定客戶端時區(例如 CET、GMT、EST).獲取偏移量很簡單,但沒有確定 TZ 所需的所有信息,至少不容易.我有一種感覺可能可以使用偏移量的組合,DST 是否正在使用和有效等,但我希望其他人已經完成了這項工作,特別是考慮到奇怪的處理時間時的例外情況.

                  I need to determine the client timezone (e.g. CET, GMT, EST) in JS. Getting the offset is straightforward, but doesn't have all the info necessary to determine the TZ, at least not easily. I have a feeling it might be possible to use a combination of offset, whether DST is in use and in effect, etc. but I'm hoping someone else has done the work already, especially considering the weird exceptions when dealing with time.

                  這個問題類似,但問題和答案都基于(不正確的)假設每個瀏覽器的 DateString 格式都包含時區的名稱 - 它沒有.這是一個實現細節.

                  This question is similar but both the question and the answer are based on the (incorrect) assumption every browser's DateString format includes the name of the timezone - which it does not. That is an implementation detail.

                  所以,我目前陷入困境.

                  So, with that I am currently stuck.

                  推薦答案

                  參見 這個問題.在一般情況下這是不可行的,但要從可能情況的候選名單中選擇默認時區,您可以做出一個不錯的猜測.

                  See this question. It's not doable in the general case, but for picking a default timezone from a shortlist of likely cases, you can make a decent guess.

                  允許用戶在您猜錯時覆蓋它.

                  Allow the user to override it for when you guess wrong.

                  這篇關于在 JS 中獲取客戶端時區(不是 GMT 偏移量)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)

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

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

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

                            <i id='MJt0U'><tr id='MJt0U'><dt id='MJt0U'><q id='MJt0U'><span id='MJt0U'><b id='MJt0U'><form id='MJt0U'><ins id='MJt0U'></ins><ul id='MJt0U'></ul><sub id='MJt0U'></sub></form><legend id='MJt0U'></legend><bdo id='MJt0U'><pre id='MJt0U'><center id='MJt0U'></center></pre></bdo></b><th id='MJt0U'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='MJt0U'><tfoot id='MJt0U'></tfoot><dl id='MJt0U'><fieldset id='MJt0U'></fieldset></dl></div>
                              <tbody id='MJt0U'></tbody>
                          • 主站蜘蛛池模板: 男女免费在线观看视频 | 美女一级毛片 | 视频一区中文字幕 | 国产视频一区二区三区四区五区 | 成人在线视频观看 | 欧美区日韩区 | 久久偷人| 亚洲色综合 | 中文字幕第5页 | 免费一看一级毛片 | 美女天天操 | 国产精品久久久久久婷婷天堂 | 国产一区二区日韩 | 日韩欧美一级片 | 免费观看av | 亚洲午夜精品一区二区三区他趣 | 91精品国产自产在线老师啪 | 91精品国产综合久久久久久首页 | 日本午夜免费福利视频 | 91精品国产乱码久久久久久久久 | 亚洲国产精品精华素 | 成人在线看片 | 国产精品福利在线 | 不卡一二三区 | 黄色大片免费看 | 久久夜视频| 亚洲国产成人精品在线 | 亚洲国产精品久久久久秋霞不卡 | 午夜羞羞 | 色综合久久久 | 精品久久久久久久久久 | 欧美日韩精品一区二区三区视频 | 91精品国产综合久久久久蜜臀 | 免费观看黄色一级片 | 国产一区二区三区在线看 | 成人免费一区二区 | 电影在线| 日本在线播放 | 91久久久久久久久久久 | 亚洲日韩视频 | 中文字幕亚洲欧美日韩在线不卡 |