上一页 1 2 3 4 5 6 ··· 16 下一页
摘要: 1. 装包 npm i unplugin-auto-import --save-dev 2. 在项目的 vue.config.js 中引入并使用 import { defineConfig } from 'vite' import uni from '@dcloudio/vite-plugin-un 阅读全文
posted @ 2023-08-09 09:50 深海里的星星i 阅读(787) 评论(0) 推荐(0) 编辑
摘要: 包来源 自动引入 vue/vue-router/vuex 等api (ref, toRefs....) npm i unplugin-auto-import --save-dev vant按需导入的插件 npm i unplugin-vue-components -D 使用vw布局替换px单位插件 阅读全文
posted @ 2023-04-25 15:31 深海里的星星i 阅读(127) 评论(0) 推荐(0) 编辑
摘要: import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import path from 'path' import AutoImport from 'unplugin-auto-import/vite' im 阅读全文
posted @ 2023-03-31 09:36 深海里的星星i 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 结果如图 源码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" con 阅读全文
posted @ 2023-03-16 15:56 深海里的星星i 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1. 安装 npm install cropperjs 2. 引入 import 'cropperjs/dist/cropper.css'; import Cropper from 'cropperjs'; 3. 裁剪 4. 完整组件 App.vue <template> <div> <img re 阅读全文
posted @ 2023-03-16 15:11 深海里的星星i 阅读(281) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2023-03-03 14:21 深海里的星星i 阅读(10) 评论(0) 推荐(0) 编辑
摘要: mysql> select * from user; + + + + | id | name | sex | + + + + | 1 | 张三 | 1 | | 2 | 李四 | 1 | | 3 | 张珊 | 0 | + + + + 3 rows in set (0.00 sec) 使用 when 和 阅读全文
posted @ 2023-03-01 11:23 深海里的星星i 阅读(249) 评论(0) 推荐(0) 编辑
摘要: html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" conten 阅读全文
posted @ 2022-12-11 20:46 深海里的星星i 阅读(145) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-12-05 09:43 深海里的星星i 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 1. 用到的文件(库) demo.js // GB2312编码常用中文unicode对照表 const zhToUnicode = { a: "\u554a\u963f\u9515", ai: "\u57c3\u6328\u54ce\u5509\u54c0\u7691\u764c\u853c\u77 阅读全文
posted @ 2022-12-03 11:51 深海里的星星i 阅读(1315) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 16 下一页