const iframe = ... // 获取iframe dom元素
iframe.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms')
iframe.setAttribute('src', '')
Cesium处理iframe的allow-scripts权限问题
最新推荐文章于 2023-08-11 11:12:52 发布
const iframe = ... // 获取iframe dom元素
iframe.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms')
iframe.setAttribute('src', '')