springboot vue.js axios.js ajax请求纯HTML页面传值

xiaoxiao2021-02-28  52

么有用官方模板,vue.js + axios.js 纯HTML前端,纯属个人娱乐

传值方式:

//存 localStorage["uid"]=res.data.data.userId; window.location.href = "/index.html";

index.html界面取

console.log(localStorage["uid"]);

参考: https://segmentfault.com/q/1010000000308712

转载请注明原文地址: https://www.6miu.com/read-76565.html

最新回复(0)