javascript - Tableau JS 扩展:window.open()
问题描述
在传统的javascript中,我们可以使用打开一个新窗口
window.open("..","..","..")
例如(test.html)
function openWindow(){
window.open("about:blank","hello","width=420;height=300");
}
如果我在我的 localhost 上启动我的 test.html,脚本工作正常。
在 tableau Desktop 中使用 Js 扩展,添加 .trex 文件后,我无法使用 window.open() 触发弹出窗口。我想知道这在画面中是否可能,如果不可能,是否有其他替代方法或方法?
解决方案
推荐阅读
- angular - (更改)选择不调用函数角度5
- javascript - 函数未在 javascript 中定义
- javascript - 如何正确导入 javascript 函数并将其用于 node.js 脚本?
- dns - 为什么 Google 和 CloudFlare DNS-over-HTTPS 不支持为 DNSSEC 返回 DS RRSIG?
- twitter-bootstrap - Bootstrap垂直对齐问题
- python - anaconda3中如何卸载特定版本的pip
- python - 如何加载图像并将其转换为 PyTorch 的适当张量?
- java - 什么 Java 库可以在内存中缓冲传入的数据,然后再写入目标?
- php - Eloquent 如果我在一个模型上有 2 个“一对多”模型,我该如何存储数据?
- php - PHP MySQL 将多列转换为多行