06 2021 档案

摘要:let blob = new Blob([res], { type:'image/svg+xml', }) let fileURL = URL.createObjectURL(blob) console.log(fileURL) ps: type要为image/svg+xml, 而不是text/xm 阅读全文
posted @ 2021-06-29 11:13 yw3692582 阅读(1098) 评论(0) 推荐(0) 编辑
摘要:let wsurl = 'ws://82.157.123.54:9010/ajaxchattest' let ws = null let weboscket_callback = null //获取 websocket 推送的数据 let websocketonmessage = e => { re 阅读全文
posted @ 2021-06-23 11:29 yw3692582 阅读(4508) 评论(0) 推荐(0) 编辑
摘要:注意:在原有图标上更新数据时,需要用这种办法,不然会导致警告以及图表的点击事件重复触发。 或者也可以这样,能有效的防止重复触发点击事件。 let myChart = this.$echarts.getInstanceByDom(document.getElementById('map')) if ( 阅读全文
posted @ 2021-06-21 15:48 yw3692582 阅读(3093) 评论(0) 推荐(0) 编辑
摘要:1 <template> 2 <div> 3 <el-button style="float:left;margin-left:20px;" type="primary" @click="add_dialogVisible = true" 4 >新增用户</el-button 5 > 6 <el-t 阅读全文
posted @ 2021-06-09 10:23 yw3692582 阅读(643) 评论(0) 推荐(0) 编辑
摘要:// 根组件/父路由 <template> <div class="layout"> <el-container> <el-header> 头部代码 </el-header> <el-main> <router-view v-if="isRouterAlive" /> </el-main> </el 阅读全文
posted @ 2021-06-09 10:18 yw3692582 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-06-07 08:43 yw3692582 阅读(24) 评论(0) 推荐(0) 编辑
摘要:<template> <div id="bg_img"> <img src="/static/img/pexels-pixabay-209831.jpg" alt="叠加图片" height="100%" width="100%" /> </div> </template> <script> exp 阅读全文
posted @ 2021-06-04 09:24 yw3692582 阅读(48) 评论(0) 推荐(0) 编辑
摘要:<input id="input" type="text" /> input { caret-color: red; } 阅读全文
posted @ 2021-06-04 09:05 yw3692582 阅读(113) 评论(0) 推荐(0) 编辑
摘要:// 第一种:grid布局 <div id="bg_img"> <div> <input type="text" /> </div> </div> // css #bg_img{ display: grid; place-items: center; height:100vh; // 必须设置高度 阅读全文
posted @ 2021-06-04 09:02 yw3692582 阅读(27) 评论(0) 推荐(0) 编辑
摘要:// store.js import Vue from "vue"; import Vuex from "vuex"; Vue.use(Vuex); const moduleA = { namespaced: true, state: () => ({ name: "moduleA", }), mu 阅读全文
posted @ 2021-06-02 09:20 yw3692582 阅读(183) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示