随笔分类 -  前端

摘要:代码如下 wx.login({ success(res) { console.log('login', res) // 获取openid需要先拿到code wx.request({ url: `https://api.weixin.qq.com/sns/jscode2session?appid=${ 阅读全文
posted @ 2023-01-31 10:25 hwinter_c 阅读(38) 评论(0) 推荐(0) 编辑
摘要:1、安装 2、自定义配置 ctrl+, 打开vscode设置,打开json文件 按需配置 "todo-tree.general.tags": [ "BUG", "FIX", "TODO", ], "todo-tree.highlights.customHighlight": { "BUG": { " 阅读全文
posted @ 2022-11-01 11:06 hwinter_c 阅读(662) 评论(0) 推荐(0) 编辑
摘要:import axios from 'axios'; const service = axios.create({ baseURL: 'http:// test.com/api/', headers: { 'X-Requested-With': 'XMLHttpRequest' }, withCre 阅读全文
posted @ 2022-10-26 11:19 hwinter_c 阅读(307) 评论(0) 推荐(0) 编辑
摘要:总结:前端常用的四种存储方式有cookie、localStorage、sessionStorage、indexedDB 容量 生命周期 通信 cookie 4kb 可以设置 每次发送请求都会携带在header中 localStorage 5M 永久(需要手动清除) 不参与 sessionStorag 阅读全文
posted @ 2022-10-24 15:21 hwinter_c 阅读(1545) 评论(0) 推荐(0) 编辑

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