编辑下面的代码:【加编码】
<html manifest="demo_html.appcache"> <head><meta charset="UTF-8"> </head><body> <script src="/demo/demo_time.js"> </script> <p id="timePara"><button onclick="getDateTime()">获取日期和时间</button></p> <p><img src="/demo/logo.png" width="336" height="69"></p> <p>尝试打开 <a href="#" target="_blank">这个页面</a>, 在离线的状态下重新载入这个页面,页面也可以访问。</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂