摘要: 初始化WebSocket initWebSocket(){ //初始化weosocket const wsuri = 'ws://10.100.45.8:8888/websocket';//ws地址 this.websock = new WebSocket(wsuri); this.websock. 阅读全文
posted @ 2019-10-15 15:05 搜戴斯 阅读(2174) 评论(0) 推荐(0) 编辑
摘要: passer.vue中代码 首先在文件中引入组件 import canvasDraw from '@/components/CanvasDraw/canvasDraw' 局部注册组件:components: { canvasDraw }, HTML中使用组件 <canvas-Draw :imgSrc 阅读全文
posted @ 2019-10-15 15:04 搜戴斯 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 需要在区域内右击自定义菜单的DIV绑定contextmenu右击事件 <div style="width:100% ; z-index: inherit;position: relative;margin:0 auto ;" align="center" @contextmenu.prevent=" 阅读全文
posted @ 2019-10-15 15:04 搜戴斯 阅读(6545) 评论(0) 推荐(0) 编辑
摘要: HTML代码部分 <div class="center" > <img style="margin:0 auto ;" :src=item.imgThumb> </div> CSS代码部分 .center{ /*水平垂直居中*/ width:100%; height:280px; margin:0 阅读全文
posted @ 2019-10-15 15:04 搜戴斯 阅读(181) 评论(0) 推荐(0) 编辑