摘要:
<template> <div id="box"> <div class="main" id='main'> <canvas ref="saveCanvas" width="500" height="400" @mousedown="ctxDown($event)" @mousemove="ctxM 阅读全文
摘要:
let name = this.name //this.name为输入框中的输入内容 var regStr = /[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0 阅读全文
摘要:
需要在小程序的域名配置中添加这个地址的域名,进行合法域名配置 阅读全文
摘要:
let myCharts = this.$echarts.init(document.getElementById(id)); myChart.resize() echart图形的尺寸重置 myChart.setOption(option, true); echart图形数据重新渲染 阅读全文
摘要:
使用websocket页面引入 import SockJS from 'sockjs-client' import Stomp from 'stompjs' 订阅方法 webSocket(topic1,topic2,url) { //topic为websocket的topic,url为接口地址 le 阅读全文
摘要:
在 router/index.js 中 添加如下代码 Vue.use(Router); const originalPush = Router.prototype.push Router.prototype.push = function push(location) { return origin 阅读全文
摘要:
vue 安装 vue-echarts 之后报错: This dependency was not found: * @vue/composition-api/dist/vue-composition-api.mjs in ./node_modules/vue-demi/lib/index.mjs T 阅读全文
摘要:
let params = { a:'aaaaa', b:'bbbbbb', c:'cccccc', d:[ { k:'kkkk', m:'mmmm', n:'nnnn' }, { k:'k1k1k1k1', m:'m1m1m1m1', n:'n1n1n1n1' }, { k:'k2k2k2k2', 阅读全文
摘要:
<button @click='beforeUpload' >上传文件</button> beforeUpload() { const that = this const count = 1 uni.chooseImage({ count:count, success:(res)=> { const 阅读全文
摘要:
数据请求时添加: config.responseType = "blob" 获取流后显示前处理://response为获取到的流 var binaryData = []; binaryData.push(response); let imsg = window.URL.createObjectURL 阅读全文