| 123456789101112131415161718192021222324252627282930313233 | <!DOCTYPE html><html lang="zh-cmn-Hans">  <head>    <meta charset="utf-8">    <meta http-equiv="X-UA-Compatible" content="IE=edge">    <meta name="viewport" content="width=device-width,initial-scale=1.0">    <title>当前位置</title>  </head>  <style>    body {      width: 100%;      height: 100vh;    }  </style>  <body>    <iframe    frameborder="0"    id="locationIframe"    width="100%"    height="100%"    src="http://openapi.18gps.net/RouterPass.ashx?method=Playback&macid=17018458028&mapType=QQ&mds=320ed22d30df445283e10bcf40221f38&url=http://www.18gps.net/" ></iframe>  </body>  <script>    // function load() {    //   const iframe = document.createElement("locationIframe");    //   iframe.contentWindow.postMessage("当前位置", "http://localhost");    //   window.onmessage = e => {    //     console.log(e.data);    //   };    // }  </script></html>
 |