上一页 1 ··· 24 25 26 27 28

2020年3月31日

window用法 跳转

摘要: // _blank _self window.open("https://casserver.com:8443/cas/logout?service=http://10.10.111.22:8080",'_self').location; window.location.href="#taskin? 阅读全文

posted @ 2020-03-31 09:36 左侧岚 阅读(205) 评论(0) 推荐(0) 编辑

通过js设置样式

摘要: if(document.getElementById("B").style.display == 'none'){ document.getElementById("B").style.display = "flex" document.getElementById("B").style['alig 阅读全文

posted @ 2020-03-31 09:35 左侧岚 阅读(244) 评论(0) 推荐(0) 编辑

localStorage sessionStorage JSON.parse JSON.stringify 1个用户好几个权限 用户如果存在某个权限 显示不同页面 存在的问题 当前页面保存到storage里了 复制路径打开新的页面 storage里的数据不同步复制过来 只能保存JSON字符串 不能保存字符串数组

摘要: 存 var storage = window.sessionStorage; storage.setItem('user',JSON.stringify(result['data']['permissions'])); 取 var storage = window.sessionStorage; l 阅读全文

posted @ 2020-03-31 09:33 左侧岚 阅读(178) 评论(0) 推荐(0) 编辑

上一页 1 ··· 24 25 26 27 28

导航