随笔 - 119  文章 - 0  评论 - 5  阅读 - 49180
  2025年2月10日
摘要: 1. 请求路径 模块化 使用特征代表 /user、 /article 、 /cate 、 /role 2. 请求方式 GET 用于获取数据 POST 用于添加数据 PUT 用于修改数据(修改数据整个覆盖) PATCH 用于修改数据(修改数据个别参数) DELETE 用于删除数据 eg: https: 阅读全文
posted @ 2025-02-10 23:36 贲风 阅读(3) 评论(0) 推荐(0) 编辑
  2025年2月4日
摘要: 在vite.config.js/ts 中 export default defineConfig({ plugins: [ vue() ], resolve: { alias: { // 配置路径别名 使用@ 代替 ./src '@': fileURLToPath(new URL('./src', 阅读全文
posted @ 2025-02-04 22:18 贲风 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 在vite.conig.js/ts 中 1. fileURLToPath import { fileURLToPath } from 'url' export default defineConfig({ plugins: [ vue() ], resolve: { alias: { // 配置路径 阅读全文
posted @ 2025-02-04 22:15 贲风 阅读(24) 评论(0) 推荐(0) 编辑
  2025年1月24日
摘要: 1. 初始化项目 npm init -y 1.1 或者使用脚手架 npm install -g koa-generator 全局安装 【使用框架就无需执行其他命令 1/2/3.... 】 生成项目 koa2 <projectname> projectname即为项目名 这里可能需要再 package 阅读全文
posted @ 2025-01-24 01:02 贲风 阅读(28) 评论(0) 推荐(0) 编辑
  2025年1月2日
摘要: 当需要为 当前激活的 router-link 添加样式时 我通常会使用 router-link-active 本次复习重新学习了一下 router-link-active & router-link-exact-active router-link-active 当你多重嵌套路由时 嵌套的多个页面都 阅读全文
posted @ 2025-01-02 01:08 贲风 阅读(9) 评论(0) 推荐(0) 编辑
  2024年12月28日
摘要: animation 属性是 【animation-name】【animation-duration】【animation-timing-function】【animation-delay】【animation-iteration-count】【animation-direction】【animati 阅读全文
posted @ 2024-12-28 16:23 贲风 阅读(18) 评论(0) 推荐(0) 编辑
  2024年12月6日
摘要: 1. 滚动捕获 在元素中滚动不会在中间停止 一定会停在元素前方后或后方 - 需要在父元素中设置 scroll-snap-type: none | [ x | y | block | inline | both ] [ mandatory | proximity ] eg: scroll-snap-t 阅读全文
posted @ 2024-12-06 22:45 贲风 阅读(5) 评论(0) 推荐(0) 编辑
  2024年11月26日
摘要: 1. URL 格式 与 http 和 https 类似 websocket 分为 ws 和 wss 两种 具体实例如下 1/ ws://example.com/socketserver 2/ wss://example.com/socketserver 2. 实例化 let ws = new Web 阅读全文
posted @ 2024-11-26 00:02 贲风 阅读(6) 评论(0) 推荐(0) 编辑
  2024年11月11日
摘要: const encodedData = window.btoa("Hello, world"); // 编码字符串 const decodedData = window.atob(encodedData); // 解码字符串 阅读全文
posted @ 2024-11-11 16:08 贲风 阅读(209) 评论(0) 推荐(0) 编辑
  2024年10月18日
摘要: 1. multipart/form-data 1/ 拿到 file 文件 2/ const formData = new FormData() 3/ formData.append('file', file) 参数名 ‘file’ 与后端一致即可 4/ 正常请求 设置请求头 headers: { ' 阅读全文
posted @ 2024-10-18 01:02 贲风 阅读(60) 评论(0) 推荐(0) 编辑
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示