摘要: Hello World 阅读全文
posted @ 2024-05-10 21:16 箫笛 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Hello World 阅读全文
posted @ 2024-05-10 21:01 箫笛 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 1. Mysql 管理 连接数据库 -- 连接本地数据库 mysql -u root -p -- 连接远程数据库 mysql -h 192.168.0.105 -u root -p -- 连接远程指定数据库并设置字符集 mysql -h 192.168.0.105 -u root -p --defa 阅读全文
posted @ 2024-05-09 17:03 箫笛 阅读(8) 评论(0) 推荐(0) 编辑
摘要: git 命令行相关问题汇总记录如下: 在本地创建git仓库并关联远程仓库后,无法正常拉取远程更新 报错信息: fatal: refusing to merge unrelated histories 解决方案: git pull origin master --allow-unrelated-his 阅读全文
posted @ 2024-04-29 18:52 箫笛 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 请求配置 host="http://localhost:3000" baseUrl="/api/v1/test" filePath="./data/data.json" 1. 发送get请求 默认发送get请求 url="${host}${baseUrl}" curl $url 显式声明get请求 阅读全文
posted @ 2024-04-26 21:49 箫笛 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 安装express-generator pnpm add -g express-generator 查看express-generator 查看版本 express --version 查看帮助 express -h 创建express应用 express -v ejs -c less --git 阅读全文
posted @ 2024-04-26 21:14 箫笛 阅读(14) 评论(0) 推荐(0) 编辑
摘要: fetch 采用模块化设计,api分散在多个对象上(Response对象,Request对象,Header对象), fetch通过数据流(stream对象)处理数据可以分块读取,有利于提高网站性能。 发送GET请求 fetch 函数只传递一个url,默认以get方法发送请求。 promise fet 阅读全文
posted @ 2024-04-26 16:54 箫笛 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 通过XMLHttpRequest发送GET请求 // 创建XMLHttpRequest实例对象 const xhr = new XMLHttpRequest(); // 监听通信状态 xhr.onreadystatechange = function(){ // 请求结束,处理服务器返回的数据 if 阅读全文
posted @ 2024-04-25 17:46 箫笛 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 路由模式 Hash模式 对SEO不友好,#之后的url, 不会发送到服务器端,所以服务端无需做任何处理就可以使用。 import { createRouter, createWebHashHistory } from 'vue-router' const router = createRouter( 阅读全文
posted @ 2024-04-19 16:31 箫笛 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1. Transition (创建动画) 原生css过渡 <template> <Transition name="slide-fade"> <p v-if="show">hello</p> </Transition> </template> <script setup> import {ref} 阅读全文
posted @ 2024-04-18 16:49 箫笛 阅读(19) 评论(0) 推荐(0) 编辑