iframe嵌套弹框的,导致无法加载弹框?

淋着
  • 293

在主平台中使用iframe签入子平台
子平台的弹框是confirm
但是iframe中调用弹框,会报错

A different origin subframe tried to create a JavaScript dialog. This is no longer allowed and was blocked. See https://www.chromestatus.com/feature/5148698084376576 for more details.

image.png
看了下那个网址说明,好像是跨域导致的,chrome不支持alert和confirm纯js的弹框

回复
阅读 2.2k
宣传栏