摘要: <template> <div class="box"> <div ref="emap" id="map"></div> <div id="popup" class="ol-popup"> <a href="#" id="popup-closer" class="ol-popup-closer">< 阅读全文
posted @ 2020-11-23 17:45 yw3692582 阅读(1901) 评论(2) 推荐(0) 编辑
摘要: 1 <template> 2 <div> 3 <div ref="emap" id="map"></div> 4 <div id="popup" class="ol-popup"> 5 <a href="#" id="popup-closer" class="ol-popup-closer"></a 阅读全文
posted @ 2020-11-22 20:49 yw3692582 阅读(3378) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <div ref="emap" id="map"></div> <div id="popup" class="ol-popup"> <a href="#" id="popup-closer" class="ol-popup-closer"></a> <div id= 阅读全文
posted @ 2020-11-20 17:16 yw3692582 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 1 <template> 2 <div> 3 <div id="map"></div> 4 </div> 5 </template> 6 7 <script> 8 import 'ol/ol.css' 9 import Map from 'ol/Map' 10 import Stamen from 阅读全文
posted @ 2020-11-19 16:23 yw3692582 阅读(1168) 评论(0) 推荐(0) 编辑
摘要: initWebSocket() { //初始化websocket let wsuri = 'ws地址' this.ws = new WebSocket(wsuri) this.ws.onmessage = this.websocketonmessage this.ws.onopen = this.w 阅读全文
posted @ 2020-11-19 09:10 yw3692582 阅读(2037) 评论(0) 推荐(0) 编辑
摘要: 1 // 先获取lib文件夹,在博客园里的文件里:https://i.cnblogs.com/files 2 3 // 然后在main.js中引入 4 5 import SlideVerify from './lib/index' 6 7 //Vue.config.productionTip = f 阅读全文
posted @ 2020-11-17 16:26 yw3692582 阅读(1391) 评论(0) 推荐(0) 编辑
摘要: 1 verificationCode() { 2 let captcha1 = new CaptchaMini() 3 captcha1.draw(document.querySelector('#captcha1'), r => { 4 this.Verification = r 5 }) 6 } 阅读全文
posted @ 2020-11-09 10:07 yw3692582 阅读(1398) 评论(0) 推荐(0) 编辑
摘要: 1 getTokenTest() { //传统js方式获取url参数 2 let url = window.location.search 3 let token; 4 let loca_token = localStorage.getItem('token') 5 if (url) { 6 if 阅读全文
posted @ 2020-10-16 22:03 yw3692582 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 1 getTokenVue(){//使用vue的this.$route来获取 2 let url = this.$route.query 3 let token; 4 let loca_token = localStorage.getItem('token') 5 let url_string = 阅读全文
posted @ 2020-10-16 22:01 yw3692582 阅读(13706) 评论(0) 推荐(0) 编辑
摘要: 1 let obj1 = { 2 a:1, 3 b:2, 4 c:3 5 } 6 let obj2 = { 7 a:0, 8 b:0, 9 c:0 10 } 11 // 两个对象的字段完全相同时采用下面两种方式 12 obj2 = Object.assign(obj1) 13 obj2 = obj1 阅读全文
posted @ 2020-10-14 17:02 yw3692582 阅读(5018) 评论(0) 推荐(0) 编辑