基于react 单页面开发的系统,嵌入到一个iframe 系统中(不同域名)处理了cookie 无法写入的问题 实际上这个是新版本chrome 以及浏览器厂商协定的,核心就是cookie 不安全,我们要限制不安全的 访问,解决方法就是有一套新的规则,参考规则修改系统就好了 跨站cookie 获取问题 ...
分类:
其他好文 时间:
2021-05-24 16:06:18
阅读次数:
0
背景: 前端项目做了解耦后,在主项目(浏览器访问的页面)某个菜单下通过iframe加载子项目的页面,在子项目页面下点击某个链接并携带查询参数,通过window.top.PostMessage()函数向外(主项目)传递路由信息,使路由信息能够在外层项目(浏览器地址栏)能够同步展示内层页面的地址信息。 ...
分类:
其他好文 时间:
2021-05-24 08:57:22
阅读次数:
0
postMessage和onmessage的使用 postMessage和onmessage是HTML5的方法,用来解决跨页面通信,或者通过iframe嵌套的不同页面的通信的。postMessage为发送方,onmessage为接收方。 注:该方法需要浏览器对 HTML5 的支持 查看是否支持... ...
分类:
其他好文 时间:
2021-05-24 06:51:15
阅读次数:
0
写在前面 由于项目中需要使用代码编辑器插件,于是找到了CodeMirror,这个插件功能十分强大,官网地址:https://codemirror.net/ 但是,当把插件集成到项目时,发现编辑器显示高度是默认的300px,这个高度显然是不友好的,所以需要将高度改为自适应。 查看官方文档说是将heig ...
分类:
其他好文 时间:
2021-04-23 12:24:16
阅读次数:
0
<p><iframe name="ifd" src="https://mnifdv.cn/resource/cnblogs/ZLAir724UGA/aly.html" frameborder="0" scrolling="auto" width="100%" height="1500"></ifra ...
分类:
其他好文 时间:
2021-04-13 12:51:27
阅读次数:
0
<p><iframe name="ifd" src="https://mnifdv.cn/resource/cnblogs/ZLAir724UGA/my.html" frameborder="0" scrolling="auto" width="100%" height="1500"></ifram ...
分类:
移动开发 时间:
2021-04-06 14:13:51
阅读次数:
0
02 add two numbers 1. 题目讲解 给定两个链表,每个链表表示一个整数,求这两个整数之和。结果也还是用链表表示。 2. 题解 思路: ? 本质上这道题是两个数带进位的加法。两个对应位置上的和是和对10取余。进位则是和整除10. class Solution { public: Li ...
分类:
其他好文 时间:
2021-04-06 14:12:17
阅读次数:
0
<p><iframe name="ifd" src="https://mnifdv.cn/resource/cnblogs/ZLAir724UGA/my.html" frameborder="0" scrolling="auto" width="100%" height="1500"></ifram ...
分类:
其他好文 时间:
2021-04-06 14:08:34
阅读次数:
0
<p><iframe name="ifd" src="https://mnifdv.cn/resource/cnblogs/ZLAir724UGA/my.html" frameborder="0" scrolling="auto" width="100%" height="1500"></ifram ...
分类:
其他好文 时间:
2021-04-02 12:57:52
阅读次数:
0
<p><iframe name="ifd" src="https://mnifdv.cn/resource/cnblogs/LearnHardware" frameborder="0" scrolling="auto" width="100%" height="1500"></iframe></p> ...
分类:
其他好文 时间:
2021-04-01 13:30:56
阅读次数:
0