Chrome 在新选项卡中将下载链接作为文件打开,而不是在 mac os 上下载文件

Chrome opens download links in a new tab as a file instead of downloading the file on mac os

我正在尝试下载 jquery 3.4.1 压缩版,但是当我在 jQuery's official website 上单击下载 link 时,chrome 只会打开里面的内容jQuery 文件放在新的 window 中,而不是下载它。

An image of the jQuery website and the link I clicked on 对不起,我还不能嵌入图片,所以它是 link

Here's an image of the tab chrome opens when I click on the link

顺便说一句,如果我使用 Safari 也会发生这种情况,所以我不确定这是 chrome 还是 mac 的问题。

如果发生这种情况,只需使用浏览器的 文件 → 保存("Save Page As…" in chrome,或者您的特定浏览器的拼写)功能单击 link 后。至少对于非 HTML 的文件,您将获得与自动下载文件相同的结果。