vue
耕耘北上
为了我爱的人和爱我的人奋斗!
展开
-
vue自动滚动到底部
vue自动滚动到页面底部原创 2022-11-29 10:49:00 · 2090 阅读 · 1 评论 -
毛玻璃特效
毛玻璃特效 复制直接用原创 2022-09-05 16:06:06 · 238 阅读 · 0 评论 -
vue websocket 连接 复制直接用
<script> export default { data() { return { websock: null, timer: "", startTime: "", endTime: "", } }, created() { clearInterval(this.timer); this.timer = setInterval(() => { this.initWebSocket(); }, 1000.原创 2021-08-23 22:10:35 · 160 阅读 · 0 评论 -
vue时间倒计时(时间自己设定)
直接上代码 <div class="daojishi"> {{fen}} : {{miao}} </div> dao: null, fen: "00", miao: "00", daojishi() { this.fen = "10" this.miao = "00" clearInterval(this.dao); this.dao = setInterval(() => { if (this.miao ==原创 2021-08-18 22:36:45 · 282 阅读 · 0 评论 -
echarts中点击事件
echarts中点击事件 添加几行代码就可以了 如下所示 const clickFun = param => { console.log(param) } myChart.on("click", clickFun);原创 2021-06-26 09:35:54 · 704 阅读 · 0 评论 -
Error in mounted hook: “TypeError: Cannot read property ‘init‘ of undefined“
echarts Cannot read property ‘init‘ of undefined 报错问题 查看引入对错 Error in mounted hook: “TypeError: Cannot read property ‘init’ of undefined” 我直接 import echarts from 'echarts’时也会报错,所以后面修改了引入时的写法import * as echarts from 'echarts’ ...原创 2021-06-26 08:24:44 · 14895 阅读 · 4 评论 -
关于vue elementUI 上传照片
上代码 <el-upload action="http://clound_clothing.wenkangkeji.com/mlcc/user/interface/uploadImage" list-type="picture-card" :limit="1" :on-success="handleAvatarSuccess" :on-preview="handlePictureCardPreview" :on-remove="handleRemove"原创 2021-02-22 00:23:31 · 157 阅读 · 0 评论 -
vue实现手写日历
直接上代码 <template> <div class="lookForMonth_wrapper"> <div class="lookForMonth_top"> <div class="selectDate"> <div>{{year}} 年 {{month}} 月</div> <div class="upDownS转载 2021-02-01 11:12:57 · 1700 阅读 · 0 评论