tianyunperfect 2 anni fa
parent
commit
f48740de91
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      simple-demo/location.html

+ 3 - 1
simple-demo/location.html

@@ -6,6 +6,7 @@
     <script src="js/axios.min.js"></script>
 </head>
 <body>
+<h1 id="msg"></h1>
 <script>
     Date.prototype.format = function (fmt) {
         var o = {
@@ -40,6 +41,7 @@
         }).then(res => {
             if (res.data.code === 1) {
                 window.close();
+                document.querySelector("#msg").innerHTML = "OK";
             }
         });
     }, function (error) {
@@ -49,4 +51,4 @@
     });
 </script>
 </body>
-</html>
+</html>