• 博客园logo
  • 会员
  • 周边
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
魏无羡的小古板
博客园    首页    新随笔    联系   管理    订阅  订阅
2025年6月18日
vue内容展示隐藏
摘要: <style> .open-item{ transition: .5s; height: calc-size(auto, size); overflow: hidden; } .close-item{ transition: .5s; height:0; overflow: hidden; } </ 阅读全文
posted @ 2025-06-18 12:08 魏无羡的小古板 阅读(0) 评论(0) 推荐(0)
2022年10月28日
vue canvas 线上签名
摘要: <template> <div id="box"> <div class="main" id='main'> <canvas ref="saveCanvas" width="500" height="400" @mousedown="ctxDown($event)" @mousemove="ctxM 阅读全文
posted @ 2022-10-28 11:25 魏无羡的小古板 阅读(57) 评论(0) 推荐(0)
2022年10月13日
js 输入框中过滤表情,颜文字(正则)
摘要: let name = this.name //this.name为输入框中的输入内容 var regStr = /[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0 阅读全文
posted @ 2022-10-13 16:50 魏无羡的小古板 阅读(513) 评论(0) 推荐(0)
2022年8月29日
小程序 webview 编辑器可以打开某页面,真机不能打开
摘要: 需要在小程序的域名配置中添加这个地址的域名,进行合法域名配置 阅读全文
posted @ 2022-08-29 10:40 魏无羡的小古板 阅读(216) 评论(0) 推荐(0)
2022年5月20日
echart 尺寸重置和重新渲染
摘要: let myCharts = this.$echarts.init(document.getElementById(id)); myChart.resize() echart图形的尺寸重置 myChart.setOption(option, true); echart图形数据重新渲染 阅读全文
posted @ 2022-05-20 11:09 魏无羡的小古板 阅读(1584) 评论(0) 推荐(0)
2022年5月12日
vue websocket + Stomp数据连接
摘要: 使用websocket页面引入 import SockJS from 'sockjs-client' import Stomp from 'stompjs' 订阅方法 webSocket(topic1,topic2,url) { //topic为websocket的topic,url为接口地址 le 阅读全文
posted @ 2022-05-12 11:24 魏无羡的小古板 阅读(980) 评论(0) 推荐(0)
2022年5月10日
vue 跳转同一页面报错 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation
摘要: 在 router/index.js 中 添加如下代码 Vue.use(Router); const originalPush = Router.prototype.push Router.prototype.push = function push(location) { return origin 阅读全文
posted @ 2022-05-10 17:53 魏无羡的小古板 阅读(102) 评论(0) 推荐(0)
2022年4月27日
vue 报 @vue/composition-api/dist/vue-composition-api.mjs
摘要: 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 阅读全文
posted @ 2022-04-27 16:44 魏无羡的小古板 阅读(5641) 评论(0) 推荐(0)
2022年4月26日
vue 传递formDate()格式的参数
摘要: let params = { a:'aaaaa', b:'bbbbbb', c:'cccccc', d:[ { k:'kkkk', m:'mmmm', n:'nnnn' }, { k:'k1k1k1k1', m:'m1m1m1m1', n:'n1n1n1n1' }, { k:'k2k2k2k2', 阅读全文
posted @ 2022-04-26 11:36 魏无羡的小古板 阅读(387) 评论(0) 推荐(0)
2022年2月23日
uniapp 中 uni.uploadFile 文件上传踩坑
摘要: <button @click='beforeUpload' >上传文件</button> beforeUpload() { const that = this const count = 1 uni.chooseImage({ count:count, success:(res)=> { const 阅读全文
posted @ 2022-02-23 11:21 魏无羡的小古板 阅读(6785) 评论(1) 推荐(1)
下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3