2023年2月18日

VsCode——修改左侧目录缩进

摘要: https://code84.com/741691.html https://blog.csdn.net/qq812457115/article/details/124445657 阅读全文

posted @ 2023-02-18 22:18 In-6026 阅读(69) 评论(0) 推荐(0) 编辑

2022年12月29日

MySql密码忘记怎么办?

摘要: 第一步服务 net stop mysql 第二步,执行指令 mysqld --console --skip-grant-tables --user=mysql --shared-memory 第三步,再打开一个DOS窗口执行指令,第二步的窗口不要关,不要关,不要关 mysql -u root -p 阅读全文

posted @ 2022-12-29 11:49 In-6026 阅读(59) 评论(0) 推荐(0) 编辑

2022年12月27日

nestjs中swagger的基本使用

摘要: ##nestjs中swagger的基本使用 ###安装 $ npm install --save @nestjs/swagger swagger-ui-express //如果使用fastify,则必须安装fastify-swagger而不是swagger-ui-express: $ npm ins 阅读全文

posted @ 2022-12-27 10:43 In-6026 阅读(1064) 评论(0) 推荐(0) 编辑

2022年10月14日

路由

摘要: ##安装 npm install react-router-dom ##API 1. BrowserRouter 用于包裹根组件,表示路由 import { BrowserRouter } from 'react-router-dom' ReactDOM.render( <BrowserRouter 阅读全文

posted @ 2022-10-14 17:33 In-6026 阅读(18) 评论(0) 推荐(0) 编辑

Redux Toolkit——基操

摘要: redux-toolkit是redux的升级版 ###安装 npm install @reduxjs/toolkit // 在react中还需要搭配react-redux使用 npm install react-redux ###模块的写法 // counterReducer.ts import { 阅读全文

posted @ 2022-10-14 15:04 In-6026 阅读(94) 评论(0) 推荐(0) 编辑

2022年10月12日

websocket状态码

摘要: |状态码|描述| | | | |0–999| 保留段, 未使用| |1000 |正常关闭; 无论为何目的而创建, 该链接都已成功完成任务.| |1001 |终端离开, 可能因为服务端错误, 也可能因为浏览器正从打开连接的页面跳转离开.| |1002|由于协议错误而中断连接.| |1003|由于接收到 阅读全文

posted @ 2022-10-12 15:42 In-6026 阅读(406) 评论(0) 推荐(0) 编辑

js媒体查询

摘要: const mq = window.matchMedia('(max-width:400px)') mq.addListener(mediaEvt) funtion mediaEvt(mediaQuery) { //当屏幕=400时会执行这里的函数 console.log(mediaQuery.ma 阅读全文

posted @ 2022-10-12 10:18 In-6026 阅读(39) 评论(0) 推荐(0) 编辑

2022年10月8日

hooks

摘要: ##useState const [count, setCount] = useState<number>(10) // 必须用setCount更新count,但是setCount是一个异步函数,在频繁地操作时会有一些问题 <button onClick={ () => { for (let i=1 阅读全文

posted @ 2022-10-08 00:35 In-6026 阅读(36) 评论(0) 推荐(0) 编辑

2022年10月6日

插槽

摘要: function App() { const name = 'Comp Name' return ( <Comp name={name}> <div slot="s1">solt1</div> <div slot="s2">solt2</div> </Comp> ) } import { React 阅读全文

posted @ 2022-10-06 23:32 In-6026 阅读(17) 评论(0) 推荐(0) 编辑

通信

摘要: ##props ###函数(标签上传递,参数接收) interface IProps { name: string } interface IState {} function Comp(props: IProps) { const [state, setState] = useState<ISta 阅读全文

posted @ 2022-10-06 23:27 In-6026 阅读(21) 评论(0) 推荐(0) 编辑

导航