会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wjs0509
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2022年5月17日
基于vue + element 封装一个基本的steps组件
摘要: 1、新建m-step文件夹和index.js文件 import Step from '../m-steps/src/m-step'; /* istanbul ignore next */ Step.install = function(Vue) { Vue.component(Step.name,
阅读全文
posted @ 2022-05-17 09:28 wjs0509
阅读(534)
评论(0)
推荐(0)
2022年4月7日
使用setTimeout模拟定时器setInterval
摘要: intervalfn(fn, delay) { function interval() { setTimeout(() => { fn(); interval(); }, delay); } interval(); }
阅读全文
posted @ 2022-04-07 18:14 wjs0509
阅读(125)
评论(0)
推荐(0)
2021年10月27日
封装类似bootstrap的panel组件
摘要: <template> <div> <div class="panel" :class="[className,isbig?'isbig':'']"> <div class="panel-heading" @click="bodyHandle"> <div class="panel-title"> <
阅读全文
posted @ 2021-10-27 17:46 wjs0509
阅读(73)
评论(0)
推荐(0)
2021年9月23日
解决vue复制插件clipboard.js点击两次才能复制成功的问题
摘要: 封装clipboard.js: import Clipboard from "clipboard" import Vue from "vue" function clipboardSuccess() { Vue.prototype.$message.success("复制成功") } functio
阅读全文
posted @ 2021-09-23 18:49 wjs0509
阅读(1419)
评论(0)
推荐(1)
2021年9月6日
Redis在windows下安装过程
摘要: 一、下载windows版本的Redis 去官网找了很久,发现原来在官网上可以下载的windows版本的,现在官网以及没有下载地址,只能在github上下载,官网只提供linux版本的下载 官网下载地址:http://redis.io/download github下载地址:https://githu
阅读全文
posted @ 2021-09-06 11:52 wjs0509
阅读(129)
评论(0)
推荐(0)
2021年8月17日
vue3 + vite + ts 学习笔记
摘要: 1、使用element-plus时默认的语言是英文,如何将其设置为中文,使用 el-config-provider 来进行配置 // app.vue <template> <el-config-provider :locale="locale"> <router-view></router-view
阅读全文
posted @ 2021-08-17 15:36 wjs0509
阅读(783)
评论(0)
推荐(0)
2021年6月15日
js 对数据进行分组
摘要: 被分组数据类型:包含n多个对象的数据 代码示例: let data = [ { key: 'xxx', name: 'yiyi', age: 12, money: 10 }, { key: 'sss', name: 'iii', age: 13, money: 100 }, { key: 'ddd'
阅读全文
posted @ 2021-06-15 11:09 wjs0509
阅读(2457)
评论(0)
推荐(0)
2021年5月26日
解决前端form表单回车禁止刷新页面
摘要: 在表单后面加上一个onsubmit事件,返回false.阻止form提交. onsubmit="return false;" <form action="" method="post" onsubmit="return false"> <button type="submit" class="btn
阅读全文
posted @ 2021-05-26 10:40 wjs0509
阅读(158)
评论(0)
推荐(0)
2021年5月13日
elementui table合计不显示的问题
摘要: 有时候需要在table的底部有合计,这时候官方给的是在table里设置,show-summary就可以了 但是给table加了一个固定高度话,就没有了,打开控制台可以看到这个合计是存在的 于是乎,在vue的生命周期updated updated() { this.$nextTick(() => {
阅读全文
posted @ 2021-05-13 15:12 wjs0509
阅读(250)
评论(0)
推荐(0)
2021年4月8日
如何利用new Map()对数组进行去重
摘要: var list = [{ id: 10, dd: 100 }, { id: 10, dd: 100 }, { id: 20, dd: 100 }] function uni(arr) { var map = new Map(); return arr.filter(a => { if (!map.
阅读全文
posted @ 2021-04-08 18:11 wjs0509
阅读(866)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告