【发布时间】:2018-03-15 16:26:45
【问题描述】:
当用户单击插件视图中的按钮时,我正在尝试打开 url。但是网络插件抛出错误。
我打开网址的代码:
let a = document.createElement("a");
a.setAttribute('target', '_blank');
a.setAttribute("style", "display: none");
document.body.appendChild(a);
a.href = finalUrl;
a.click();
document.body.removeChild(a);
错误信息:
由于此错误,应用被商店拒绝。我该如何克服这个错误?
我不想使用不会在浏览器中打开 url 的 Dialogue API。
【问题讨论】:
标签: office-js outlook-web-addins