会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
欢欢11
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
25
下一页
2022年12月15日
在使用vite报global的错
摘要: 解决:
阅读全文
posted @ 2022-12-15 14:29 欢欢11
阅读(144)
评论(0)
推荐(0)
2022年12月6日
vue中使用xlsx 导出表格
摘要: <t-table v-show="false" id="exportTab" row-key="index" :data="allData" :columns="allColumns"> <template #createTime="{ row }"> {{ getDateDiff(row.crea
阅读全文
posted @ 2022-12-06 11:19 欢欢11
阅读(438)
评论(0)
推荐(0)
2022年11月21日
vue3.0中ref动态绑定
摘要: // 自己使用 <div v-for="item in ['lisi','wanger']" :key="item"> <test :ref="(el) => setGraphRef(el, item)" /> </div> const setGraphRef = (el, type) => { i
阅读全文
posted @ 2022-11-21 15:59 欢欢11
阅读(1890)
评论(0)
推荐(0)
2022年11月9日
关于前端:如何实现并发请求数量控制?
摘要: 原文地址: https://juejin.cn/post/7163522138698153997 // 并发请求函数 const concurrencyRequest = (urls, maxNum) => { return new Promise((resolve) => { if (urls.l
阅读全文
posted @ 2022-11-09 16:50 欢欢11
阅读(265)
评论(0)
推荐(0)
2022年10月25日
vue中引入静态图片
摘要: vue+webpack中,可以使用require imageList: [ { url: require('../image/pig.png') } ] vue+vite没有require方法 // 静态图片一般放在src/assets下面 1. 单个文件 import pig from '@/as
阅读全文
posted @ 2022-10-25 17:44 欢欢11
阅读(311)
评论(0)
推荐(0)
2022年10月21日
vue中h函数的使用
摘要: 1. h() 函数是一个用于创建 vnode,其实在vue中是createVNode 函数的简写 h()函数接受三个参数 参数1. 标签名或组件 参数2. 标签的属性或事件 参数3. 内容使用: // 单个import {h} from 'vue' export default { render()
阅读全文
posted @ 2022-10-21 17:51 欢欢11
阅读(6325)
评论(0)
推荐(0)
2022年10月19日
js手动触发页面元素点击事件,自定义点击事件模拟点击
摘要: // initEvent事件已经弃用1. 创建MouseEvents事件const clickEvent = document.createEvent('MouseEvents')2. 初始化点击事件clickEvent.initEvent('click', false, false);3. 事件派
阅读全文
posted @ 2022-10-19 15:37 欢欢11
阅读(3021)
评论(0)
推荐(0)
2022年9月28日
vue3中inject无法获取provide传递的最新的值
摘要: // 爷组件 import { defineComponent, reactive, toRefs, onMounted, provide ,computed} from 'vue'; const state = reactive({ tableData: [], }); // 因为数据是异步的所以
阅读全文
posted @ 2022-09-28 15:32 欢欢11
阅读(1400)
评论(0)
推荐(0)
2022年9月26日
git 日常基本使用
摘要: // 将远程仓库下的所有分支拉取到本地git fetch origin // 将dev分支合并到当前所在的分支git merge dev // 查看远程仓库 git remote -v // 基于当前分支克隆出新的本地分支git checkout -b alan001// 把新建分支push到远程仓
阅读全文
posted @ 2022-09-26 10:54 欢欢11
阅读(132)
评论(0)
推荐(0)
2022年9月21日
typeScript中特殊类型定义
摘要: // Js八种内置类型, string, number, boolean, undefined, null, object, bigint symbol // ECMAScript内置对象 Array, Date Error // DOM和BOM HTMLElement, MoserEvent //
阅读全文
posted @ 2022-09-21 16:45 欢欢11
阅读(83)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
25
下一页
公告