|
@@ -3,15 +3,34 @@
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<title>location</title>
|
|
|
- <script src="https://git.tianyunperfect.cn/tianyunperfect/web-base/raw/master/monkey/util.js"></script>
|
|
|
<script src="js/axios.min.js"></script>
|
|
|
</head>
|
|
|
<body>
|
|
|
<textarea id="msg" style="width: 100%;" rows="10"></textarea>
|
|
|
<h1 id="tip">2秒内发送</h1>
|
|
|
<script>
|
|
|
-
|
|
|
-
|
|
|
+ Date.prototype.format = function (fmt) {
|
|
|
+ var o = {
|
|
|
+ "M+": this.getMonth() + 1, //月份
|
|
|
+ "d+": this.getDate(), //日
|
|
|
+ "h+": this.getHours(), //小时
|
|
|
+ "m+": this.getMinutes(), //分
|
|
|
+ "s+": this.getSeconds(), //秒
|
|
|
+ "q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
|
+ "S": this.getMilliseconds() //毫秒
|
|
|
+ };
|
|
|
+ if (/(y+)/.test(fmt)) {
|
|
|
+ fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
|
+ }
|
|
|
+ for (var k in o) {
|
|
|
+ if (new RegExp("(" + k + ")").test(fmt)) {
|
|
|
+ fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return fmt;
|
|
|
+ }
|
|
|
+</script>
|
|
|
+<script>
|
|
|
let longitude;
|
|
|
let latitude;
|
|
|
let status = false;
|
|
@@ -56,7 +75,7 @@
|
|
|
if (longitude === undefined) {
|
|
|
setTip("发送成功,但是没有经纬度");
|
|
|
} else {
|
|
|
- setTip("发送成功");
|
|
|
+ setTip("发送成功!!!!!!");
|
|
|
}
|
|
|
}
|
|
|
});
|