随笔分类 -  web

摘要:安装 w2 install whistle.vase 使用 启动whistle,进入127.0.0.1:8899/#plugins 点击vase,进入vase页面 创建对应模版引擎的文件 不同的模版引擎用法参考:https://github.com/whistle-plugins/whistle.v 阅读全文
posted @ 2024-03-27 17:26 阅读(105) 评论(0) 推荐(0) 编辑
摘要:useContext和useReducer的联合用法(实现多组件多状态管理) useReducer useReducer(reducer, initialArg, init?) 参数 reducer:(state:S, action:A)=>newState:S;用于更新 state 的纯函数。参数 阅读全文
posted @ 2024-03-15 17:35 阅读(58) 评论(0) 推荐(0) 编辑

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