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

    • <bdo id='8hkDx'></bdo><ul id='8hkDx'></ul>

    <legend id='8hkDx'><style id='8hkDx'><dir id='8hkDx'><q id='8hkDx'></q></dir></style></legend>

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

        <tfoot id='8hkDx'></tfoot>

        <small id='8hkDx'></small><noframes id='8hkDx'>

      1. 使用 moment.js 檢測當前用戶時區的 ID

        Detect the ID of the current user timezone using moment.js(使用 moment.js 檢測當前用戶時區的 ID)
        • <bdo id='hVeqo'></bdo><ul id='hVeqo'></ul>
          <legend id='hVeqo'><style id='hVeqo'><dir id='hVeqo'><q id='hVeqo'></q></dir></style></legend>
          <i id='hVeqo'><tr id='hVeqo'><dt id='hVeqo'><q id='hVeqo'><span id='hVeqo'><b id='hVeqo'><form id='hVeqo'><ins id='hVeqo'></ins><ul id='hVeqo'></ul><sub id='hVeqo'></sub></form><legend id='hVeqo'></legend><bdo id='hVeqo'><pre id='hVeqo'><center id='hVeqo'></center></pre></bdo></b><th id='hVeqo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='hVeqo'><tfoot id='hVeqo'></tfoot><dl id='hVeqo'><fieldset id='hVeqo'></fieldset></dl></div>

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

              • <tfoot id='hVeqo'></tfoot>
                  <tbody id='hVeqo'></tbody>
                  本文介紹了使用 moment.js 檢測當前用戶時區的 ID的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在尋找一種檢測瀏覽器時區 ID 的方法(如 Olson 表中所定義)但我不關心確切的 ID,我只需要與用戶的 ID 相同的時區 ID(例如,如果用戶在巴黎,Europe/Rome"就可以了).

                  What I'm looking for is a way to detect the browser's timezone ID (as defined in the Olson tables) but I don't care for the exact ID, I just need the ID of a timezone that works the same as the user's one (for example "Europe/Rome" is fine if the user is in Paris).

                  我對當前的偏移量不感興趣,我真的需要時區,以便我可以將其發送到服務器以計算其他日期(服務器也有 Olson 表).

                  I'm not interested in the current offset, I really need the timezone so that I can send it to the server to do computations for other dates (the server has the Olson tables too).

                  理論上,因為我已經使用了 Moment.js 時區庫 并且已經包含了 Olson 表,所以我不需要其他任何東西,但我沒有找到任何 API 來進行檢測.我不知道它是否隱藏在某個地方,或者是否有人已經寫了它.問題之一是當前時區插件似乎將其數據保密.

                  Theoretically, as I already use Moment.js timezone library and have included the Olson tables, I don't need anything else, but I don't find any API to do the detection. I don't know if it's hidden somewhere or if somebody has it already written. One of the problems is that the current timezone plugin seems to keep its data private.

                  不'想要一個基于 Olson 表的另一個副本或提取的集成的解決方案(我必須維護),我知道有一些庫復制它們,我想使用我在 Moment.js 中已有的那些.

                  I dont' want a solution based on the integration of yet another copy or extract of the Olson tables (which I would have to maintain), I know there are a few libraries duplicating them, I want to use the ones I already have in Moment.js.

                  推薦答案

                  moment 現在有 guess() API 作為 描述在這里

                  moment now has the guess() API as described here

                  這篇關于使用 moment.js 檢測當前用戶時區的 ID的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='jSaiO'></bdo><ul id='jSaiO'></ul>
                    • <i id='jSaiO'><tr id='jSaiO'><dt id='jSaiO'><q id='jSaiO'><span id='jSaiO'><b id='jSaiO'><form id='jSaiO'><ins id='jSaiO'></ins><ul id='jSaiO'></ul><sub id='jSaiO'></sub></form><legend id='jSaiO'></legend><bdo id='jSaiO'><pre id='jSaiO'><center id='jSaiO'></center></pre></bdo></b><th id='jSaiO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='jSaiO'><tfoot id='jSaiO'></tfoot><dl id='jSaiO'><fieldset id='jSaiO'></fieldset></dl></div>

                              <tbody id='jSaiO'></tbody>
                            <tfoot id='jSaiO'></tfoot>

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

                            <legend id='jSaiO'><style id='jSaiO'><dir id='jSaiO'><q id='jSaiO'></q></dir></style></legend>
                            主站蜘蛛池模板: 欧美网站一区二区 | 精品成人69xx.xyz | 色综合天天网 | 国产高清视频一区 | 久久久久久久久99精品 | 久久男人 | 观看av| 女同久久另类99精品国产 | 欧美激情精品久久久久久 | 在线一区 | 一区二区三区视频在线 | 日韩在线中文字幕 | 一区二区免费在线 | 亚洲视频一区在线 | 欧美国产一区二区三区 | 久草院线| 99精品视频在线观看 | av在线成人 | 亚洲精品在线看 | 欧美成人aaa级毛片在线视频 | 91在线精品秘密一区二区 | 欧美一区二区三区国产精品 | 国产中文字幕网 | 颜色网站在线观看 | 日韩欧美福利视频 | 华丽的挑战在线观看 | 欧美一区二区免费电影 | 久久精品视频网站 | 久久国产亚洲 | 久久久国产一区二区三区四区小说 | 91亚洲视频在线 | 亚洲在线中文字幕 | 国产精品一区二区欧美黑人喷潮水 | 国产剧情一区 | 一区二区影院 | 久久99这里只有精品 | 女人牲交视频一级毛片 | 久久久xxx | 看羞羞视频免费 | 成人免费大片黄在线播放 | 一色桃子av一区二区 |