- 博客(3)
- 收藏
- 关注
原创 iframe 报错Mixed Content: The page at ‘xxx‘. This request has been blocked; the content must be served
iframe 报错Mixed Content: The page at ‘xxx’. This request has been blocked; the content must be served over HTTPS.问题原因当前页面通过iframe嵌套其他页面时,因为主页面为https协议,加载页面协议也是https,但是iframe嵌套的页面内部的资源请求使用了http导致资源无法正常加载;解决办法在主页面的html模板中加入 自动将http请求升级https请求后可结局该问题;
2021-07-02 19:37:08 1084
原创 TextEncoder && TextDecode的用法
1、TextEncoder();[TextEncoder()方法从 Firefox 48 and Chrome 53 开始不再需要参数;](https://developer.mozilla.org/zh-CN/docs/Web/API/TextEncoder/TextEncoder)TextEncode对象内置了encoding属性和encode()方法;TextEncoder.enco...
2018-11-13 14:19:11 9236
原创 React单元测试(mocha+chai+enzyme)
1、安装mochanpm install --save-dev mocha2、安装断言库chainpm install chai3、安装enzyme (这里要对应当前应用中react版本去选择对应的包下载);npm i --save-dev enzyme enzyme-adapter-react-154、配置package.json的scrpts:仅仅运行test目录下的子级js...
2018-11-06 21:07:53 679
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人