excel - 从 excel 触发的 Chrome 中的下载不起作用
问题描述
大家好,我刚刚发现 chrome 已经贬值了从 iframe 或沙箱触发的下载。因此,我触发的任何下载都无法在 excel 插件中按预期工作(仅在 chrome 中)。我认为 excel 开发团队应该在他们的 iframe 中添加属性“允许下载”,请参考图片以查看扩展 iframe 中添加的属性。请让我知道是否有任何替代品。
Chrome 折旧参考链接 - https://developers.google.com/web/updates/2020/04/chrome-83-deps-rems
我在excel中使用的代码添加
window.open('*url to your file*', 'Download');
更新 - 我在 office js repo 中提出了一个问题,https://github.com/OfficeDev/office-js/issues/1241
解决方案
编写如下批处理命令并将其保存为 filename.bat。然后执行它。它应该下载文件
start "Enter the full path of downloading file"
推荐阅读
- amazon-web-services - 当我尝试运行 Docker 文件时抛出错误“AH00111:未定义配置变量 ${APACHE_RUN_DIR}”
- mysql - 在不刷新页面的情况下显示验证错误
- google-apps-script - Google App Script - 英国日期格式和英国夏令时间
- javascript - 将数组 ["banana", "apple", "orange", .....etc ] 拆分为基于其他数组的组,即。[2,7,3]
- discord.py - 如何为指定角色发出锁定命令?
- android - Android:进入信息亭模式时禁用弹出窗口
- swift - 如何检测谷歌地图 Geojson 功能点击?
- command - '如果不是 str(ctx.command) 中的“赠品装备”:AttributeError:'CheckFailure' 对象没有属性'command'`你能告诉我如何解决这个问题吗?
- ibm-cloud - 如何使用 Softlayer rest api 从快照创建重复的块存储
- node.js - 如何找出集合中的项目总数?猫鼬