- 引入
- document.addEventListener(‘click’, () => {
window.frames[‘xxx’].postMessage(‘小花222’,’*’)
},false) - 3001 window.frames[‘xxx’].postMessage(token, ‘*’)
- 3000
window.addEventListener(“message”, evt => {
console.log(evt.data, ‘xxx’)
}, false)
实现单点登陆
最新推荐文章于 2024-06-21 15:43:09 发布