会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
笔记
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
11
12
13
14
15
16
17
18
下一页
2022年12月19日
Vue3注册全局组件
摘要: 1. Vue3全局组件注册 components文件夹下新建index.js文件,统一引入需要注册的组件 import CustomCheck from "./CustomCheck.vue"; import CustomDialog from "./CustomDialog.vue"; const
阅读全文
posted @ 2022-12-19 14:55 Li_pk
阅读(410)
评论(0)
推荐(0)
2022年12月8日
Console对象的实例方法
摘要: 1、console.table 将数据以表格的形式显示。 这个方法需要一个必须参数 data,data 必须是一个数组或者是一个对象;还可以使用一个可选参数 columns。 // Output an array of objects as a table const users = [ { id:
阅读全文
posted @ 2022-12-08 14:48 Li_pk
阅读(37)
评论(0)
推荐(0)
2022年12月5日
Vue 二维码生成插件
摘要: 1. 安装 qrcode.vue 仓库地址 // vue2 安装1.x版本、vue3 安装3.x版本 npm install --save qrcode.vue // 或 yarn add qrcode.vue 2. 使用 // 使用 import { createApp } from 'vue'
阅读全文
posted @ 2022-12-05 16:59 Li_pk
阅读(1644)
评论(0)
推荐(0)
2022年12月2日
Vue 防抖节流获取this问题
摘要: 1. 防抖 debounce(func, delay = 500) { let _this = this; let args = arguments; return (function () { if (_this.timeout) { clearTimeout(_this.timeout); }
阅读全文
posted @ 2022-12-02 17:28 Li_pk
阅读(259)
评论(0)
推荐(0)
Vue RSA加密
摘要: 1. 安装jsencrypt npm install jsencrypt 2. 引入jsencrypt // 全局引入 import JSEncrypt from "jsencrypt"; Vue.prototype.$jsEncrypt = JSEncrypt; // 局部引入 import JS
阅读全文
posted @ 2022-12-02 10:46 Li_pk
阅读(452)
评论(0)
推荐(0)
2022年12月1日
vue3使用记录
摘要: ### 1. 路由跳转 ``` ``` ### 2. 注册全局property ``` // main.js import utils from "./utils/utils.js"; app.config.globalProperties.$utils = utils; ``` ### 3. 通过
阅读全文
posted @ 2022-12-01 17:46 Li_pk
阅读(47)
评论(0)
推荐(0)
vite使用记录
摘要: 1. 搭建项目 使用 NPM: npm create vite@latest 使用 Yarn: yarn create vite 使用 PNPM: pnpm create vite 构建一个 Vite + Vue 项目 # npm 6.x npm create vite@latest my-vue-
阅读全文
posted @ 2022-12-01 16:28 Li_pk
阅读(115)
评论(0)
推荐(0)
2022年11月18日
常用插件记录汇总
摘要: 1. clipboard.js 官网地址 插件描述:clipboard.js 实现了纯 JavaScript (无 Flash)的浏览器内容复制到系统剪贴板的功能。可以在浏览器和 Node 环境中使用。支持 Chrome 42+、Firefox 41+、IE 9+、Opera 29+
阅读全文
posted @ 2022-11-18 09:55 Li_pk
阅读(28)
评论(0)
推荐(0)
2022年11月15日
Array.of 和 Array.from
摘要: Array.of() Array.of() 方法通过可变数量的参数创建一个新的 Array 实例,而不考虑参数的数量或类型。这个方法用于替代在 ES6之前常用的 Array.prototype.slice.call(arguments), Array.of() 和 Array() 构造函数之间的区别
阅读全文
posted @ 2022-11-15 11:08 Li_pk
阅读(110)
评论(0)
推荐(0)
2022年11月11日
css 实现数据指标增减趋势箭头后缀
摘要: 1. 实现数据的变化趋势箭头后缀 2. css样式代码 .arrowUp, .arrowDown { position: relative; display: inline-block; } /* 字体颜色 */ .arrowUp { color: #00ae2b; } .arrowDown { c
阅读全文
posted @ 2022-11-11 09:58 Li_pk
阅读(150)
评论(0)
推荐(0)
上一页
1
···
11
12
13
14
15
16
17
18
下一页
公告