![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
TCancel
记性不好,所以经常查经常记
展开
-
vue3 语法糖setup 动态加载组件
setup 动态加载组件 defineAsyncComponent使用原创 2022-10-09 10:09:22 · 1735 阅读 · 0 评论 -
js生成随机数据
vue3+vite原创 2022-09-26 11:16:50 · 445 阅读 · 0 评论 -
vue实现无缝向上轮播列表
<template><divclass="left-box"><el-row:gutter="24"class="right-headerright-row"><el-col:span="8">批次</el-col><el-col:span="6">时间</el-col><el-col:span="5">标段</el-col&...原创 2021-03-02 10:50:08 · 947 阅读 · 0 评论 -
js设置默认时间为当前时间前一个月或某一天
this.otherSearch.end = new Date();_this.otherSearch.start=newDate(_this.otherSearch.end.getTime()-3600*1000*24*30);3600*1000*24*30 30则为一个月 3则为前3天原创 2020-12-28 09:56:14 · 3606 阅读 · 0 评论 -
echarts时间轴同时控制两张图
先看效果:option = { tooltip: { trigger: 'axis', axisPointer: { type: 'cross', crossStyle: { color: '#999' } } }, color: ['#66e4a4', '#53ece5', '#53acec', '#7b84ef', '#d...原创 2020-12-10 15:00:18 · 1244 阅读 · 0 评论 -
vue中input校验只能输入正数、小数点保留两位或者多位
<el-inputv-model="form.theoProportions[item].theoProportion"@keyup.native="proving(form.theoProportions[item].theoProportion,item)" placeholder="请输入用量"></el-input>proving(params,item){this.form.theoProportions[item].theoProp...原创 2020-11-23 15:32:28 · 3623 阅读 · 0 评论 -
vue中elementUI 限制结束时间大于 开始时间
静态<el-form-item prop="starttime"> <el-date-picker v-model="temp.starttime" type="date" :picker-options="starttime" value-format="yyyy-MM-dd" placeholder="开始时间" /> <.转载 2020-08-03 15:27:27 · 2440 阅读 · 0 评论 -
vue(js)点击当前div以外部分 隐藏当前div
在当前div外部点击事件created(){document.addEventListener("click",e=>{letlist=document.getElementById("menu_arr");if(list.contains(e.target)){console.log("在内");}else{this.showMenus=false;}...原创 2020-07-28 10:57:25 · 1726 阅读 · 0 评论 -
vue computed 中操作DOM和给对象添加属性遇到的问题
这两天使用vue做东西遇到一些问题,今天总结记录一下:1. 在computed中没法操作dom元素,比如```computed: {w() {return this.$refs.box.offsetWidth}}```运行中报undefined错误,后来改成在mounted中获取this.$refs.box.offsetWidth,后来发现,在computed中,DOM元素未加载下来,保险起见,还是在mounted操作DOM2. 给普通对象添加新的属性,需要用到v..转载 2020-06-10 14:24:35 · 1665 阅读 · 0 评论 -
git、sourceTree大文件上传
git 突破大文件上传限制1.安装 lfs: git lfs install2.跟踪大文件:git lfs track “file.suffix”3.添加配置文件:git add .gitattributes之后正常提交,不过可能会遇到这个问题:Remote “origin” does not support the LFS locking API. Consider disabling it with:…4.再执行此命令:$ git lfs push origin master --all转载 2020-05-14 16:01:59 · 2341 阅读 · 0 评论 -
iframe框架中全屏requestFullscreen()事件失效
requestFullscreen()事件全屏不好使怎么解决标明:我在360和火狐中全屏requestFullscreen()事件不好使;解释:我后来发现我的页面是在iframe框架中使用的并且没有设置allowfullscreen="true"属性;解决方案:设置allowfullscreen="true"属性,就解决了。<iframe src="video.html" f...翻译 2019-08-01 16:23:57 · 5146 阅读 · 1 评论 -
记录网站地址
KOA文档参考地址:https://www.liaoxuefeng.com/wiki/1022910821149312/1099752344192192echarts-Gallery:https://gallery.echartsjs.com/explore.html#sort=rank~timeframe=all~author=all我帮您源码站:http://www.html580....原创 2019-07-19 17:05:50 · 151 阅读 · 0 评论 -
li点击增加active效果
<!DOCTYPE html><html><head><title>选项卡实现原理</title><script type="text/javascript" src="js/jquery.1.4.2-min.js"></script><style type="text/css"> ....转载 2019-07-19 10:09:08 · 8863 阅读 · 1 评论 -
回归统计在 echarts 中的实现---在散点图中加趋势线
回归统计在 echarts 中的实现贵在随心关注0.52019.03.13 13:55字数 432阅读 483评论 0喜欢 3在做数据的统计的时候,难免会涉及到线性拟合问题,也就是回归统计问题。接下来我们看看回归算法如何把数据分析与echarts 图表结合的.这里我们需要借助 echarts 的一个扩展库: echarts-stat.jsecStat 是EChart...转载 2019-06-28 11:13:27 · 17198 阅读 · 2 评论 -
vue elementUI el-table 表格双击可编辑
<template>//表格也可以写成原生的table<el-table :data="addPlanRoute" border style="width:100%" @cell-dblclick="tableDbEdit"> <el-table-column property="order1" label="顺序"></el-tabl...转载 2019-04-10 16:34:37 · 20730 阅读 · 6 评论 -
vue中 使用SVG实现鼠标点击绘图 提示鼠标移动位置 显示绘制坐标位置
<div class="div1"><svg id="svg1" xmlns="http://www.w3.org/2000/svg" width="100%" height="500px"></svg></div>methods:{svgLoad(){var ming = 'http://www.w3.org/2000...原创 2019-03-21 22:38:06 · 3375 阅读 · 1 评论