<iframe ref="iframe"></iframe>
替换src的时候不能直接替换,得覆盖之前src
set(src) {
this.$refs.iframe.contentWindow.location.replace(src)
}
<iframe ref="iframe"></iframe>
替换src的时候不能直接替换,得覆盖之前src
set(src) {
this.$refs.iframe.contentWindow.location.replace(src)
}