当浏览器开始在 HTML 中脱机工作时执行脚本?
当Web浏览器开始离线工作时,onoffline 属性会触发。您可以尝试运行以下代码来实现onoffline 属性-
示例
Got o the web browser menu bar and click the File menu. Select "Work Offline" and toggle between online and offline.
当Web浏览器开始离线工作时,onoffline 属性会触发。您可以尝试运行以下代码来实现onoffline 属性-
Got o the web browser menu bar and click the File menu. Select "Work Offline" and toggle between online and offline.