-
## 前端异常监控
如果说前端的异常监控有个救星的话,我想那就是 `window.onerror` 这个全局错误监听事件了。它给了我们统一处理前端全局错误的机会,使得错误上报有了一线生机。
```js
window.onerror = function(messageOrEvent, source, lineno, colno, error) { ... }
```
* me…
wayou updated
6 years ago
-
## 1. 什么是跨域?
> 跨域一词从字面意思看,就是跨域名嘛,但实际上跨域的范围绝对不止那么狭隘。具体概念如下:只要协议、域名、端口有任何一个不同,都被当作是不同的域。之所以会产生跨域这个问题呢,其实也很容易想明白,要是随便引用外部文件,不同标签下的页面引用类似的彼此的文件,浏览器很容易懵逼的,安全也得不到保障了就。什么事,都是安全第一嘛。但在安全限制的同时也给注入iframe或是aja…
-
> 文章首发于我的博客 https://github.com/mcuking/blog/issues/86
## 背景
这几个月在公司内做一个跨前端项目之间共享组件/区块的工程,主要思路就是在 [Bit](https://github.com/teambit/bit) 的基础上进行开发。Bit 主要目的是实现不同项目 **共享** 与 **同步** 组件/区块,大致思路如下:
在…
-
As proposed [here](https://github.com/w3ctag/design-principles/pull/89#issuecomment-379133414) which is continuing on from https://github.com/w3ctag/design-principles/pull/75:
It should be possible…
-
## Background
I'm currently using Netlify CMS to build a website for a client. It's a completely static site, but it uses React as a template engine. I also use the React bundle to render a previ…
-
### What is the current behavior?
I wish i could insert iframes with template language.
### What is the expected behavior?
I would like to insert like this :
```
{% urlembed %}
https://web…
-
## 报错
1. `no such file or directory`报[bug](https://stackoverflow.com/questions/36050531/no-such-file-or-directory-xcode-7),在Build Phases下面有个copy www directory,勾上run scriptonly installing,不要勾上show env…
cisen updated
6 years ago
-
## What to do?
Trying to open [the CoLink app](https://optimism.blockscout.com/apps/colink) on OP: the app opens in iFrame, but could not load any pages (infinity loader) because of some reasons. Pro…
-
First of all - great project, with a nice user interface, and perfect documentation.
**Is your feature request related to a problem? Please describe.**
Homeassistant allows the creation of custom …
-
扩展和页面的通信,影响了页面和iframe的通信。很多翻译扩展都会有这个问题。
https://github.com/crimx/ext-saladict/issues/2093
https://github.com/orgs/community/discussions/64876
[测试页面](https://github.com/Layout-Parser/layout-parser…