PCãã©ã¦ã¶ã§ãããã¯ã¼ã¯æ¥ç¶ã®æç¡ãæ¤ç¥ããã«ã¯?
PCãã©ã¦ã¶ã§ãããã¯ã¼ã¯æ¥ç¶ã®æç¡ãæ¤ç¥ããã«ã¯ã©ããããããã ãã? ä¸å¿「navigator.onLine」ã¨ããAPIã¯ãã。 window.navigator.onLine - Web API ã¤ã³ã¿ã¼ãã§ã¤ã¹ | MDN ãã©ã¦ã¶ã®ãµãã¼ãå
·åã調ã¹ã¦ã¿ãã¨、å
¨ã¦ã®ãã©ã¦ã¶ã¨ããããã«ã¯ãããªãã、ã¾ãã¾ããµãã¼ãããã¦ãããã¨ãããã。 Can I use... Support tables for HTML5, CSS3, etc ããã、ãã®APIã«ã¯è²ã
ã¨åé¡ããããã¨ãããã«åãã£ã。 javascript - How to detect online/offline event cross-browser? - Stack Overflow … Chrome and Safari will detect when you go "offline" automatically - meaning that "online" events and properties will fire automatically when you unplug your network cable. Firefox (Mozilla), Opera, and IE take a different approach, and consider you "online" unless you explicitly pick "Offline Mode" in the browser - even if you don't have a working network connection. … è¦ããã«、ChromeãSafariãªããããã¯ã¼ã¯æ¥ç¶ãåããæç¹ã§èªåçã«ãªãã©ã¤ã³ã¤ãã³ããæ¥ãã、FirefoxãOpera、IEã¯ãã©ã¦ã¶å´ã«「ãªãã©ã¤ã³ã¢ã¼ã」ã¨ããæ©è½ãããã®ã§、navigator.onLineã®å¤ã¯å®éã®ãããã¯ã¼ã¯æ¥ç¶ã«æç¡ã§ã¯ãªã「ãªãã©ã¤ã³ã¢ã¼ããã©ãã」ã®å¤ã«ãªã£ã¦ãã¾ã、ã¨ãã話。 ã¤ã¾ã、å
¨ããã£ã¦å½¹ã«ç«ããªã! ã§ã¯ã©ãããã? StackOverflowã§ãè°è«ããã¦ããã、è¦ããã«「...