const iframe = ... // 获取iframe dom元素
iframe.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms')
iframe.setAttribute('src', '')
const iframe = ... // 获取iframe dom元素
iframe.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms')
iframe.setAttribute('src', '')