const iframe = ... // 获取iframe dom元素
iframe.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms')
iframe.setAttribute('src', '')
Cesium处理iframe的allow-scripts权限问题
最新推荐文章于 2025-06-17 14:15:13 发布
const iframe = ... // 获取iframe dom元素
iframe.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms')
iframe.setAttribute('src', '')