两个页面之间传值:localStorage缓存设置值

在日常的开发工做中,可能常常须要进行两个页面之间的传值,能够用session、url、localStorage等。今天,写下经过localStorage设置值,进行两个页面之间传值。session 1:设置key、value:学习 window.localStorage.setItem("flag","test");url 2:取值:开发 String  flag  =  window.local
相关文章
相关标签/搜索