javascript - 更改 Embed 或 iframe 的标题
问题描述
我正在尝试编辑 iframe 的标题
<iframe :src="urlTerm" width="100%" height="600px" id="iframe-comercial">
</iframe>
当窗口加载时,我调用该函数
getTerm () {
this.spinner = true
this.service.getTerm()
.then(blob => {
this.urlTerm = window.URL.createObjectURL(blob)
})
.catch(error => {
console.log(error)
})
.finally(() => {
this.spinner = false
})
}
观察:我正在使用 VueJs
使用 blob 的下载默认值,结果是一个 guid url,然后是一个 guid 标题:
解决方案
推荐阅读
- php - 2-3% 的时间出现错误的字符编码
- matlab - 如何在 Matlab 中绘制均匀随机变量的 pdf
- python - 如何导入经过训练的深度 CNN 模型?
- javascript - 使用 Javascript/AJAX 显示 CSV 中的一行或一个值
- bash - curl命令中的$'{}'是什么意思
- python - 如何将字符串存储为“Unicode 代码点序列”?
- javascript - 尝试从 JSON 文件中选择一个值以输出到 HTML
- amazon-web-services - 是否有明确的清单列出哪些 AWS 数据可以安全/不安全地存储在源代码控制中?
- javascript - JavaScript:如何将 UTC 日期/时间转换为山区时间?
- python - 在while循环中求和