10 2022 档案
摘要:import axios from 'axios'; const service = axios.create({ baseURL: 'http:// test.com/api/', headers: { 'X-Requested-With': 'XMLHttpRequest' }, withCre
阅读全文
摘要:总结:前端常用的四种存储方式有cookie、localStorage、sessionStorage、indexedDB 容量 生命周期 通信 cookie 4kb 可以设置 每次发送请求都会携带在header中 localStorage 5M 永久(需要手动清除) 不参与 sessionStorag
阅读全文