📌  相关文章
📜  vue js 将api数据存储和检索到localstorage - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:38.808000             🧑  作者: Mango

代码示例1
.then((res) => {
     localStorage.setItem("apiData", JSON.stringify(res.data));
});

//////// THEN YOU CAN GET DATA BY
var data = JSON.parse(localStorage.getItem("apiData"));