Node-Webkit文件下载进度

Node-Webkit file download progress

我的 Node-Webkit 应用程序中有以下 link

<a id="updateAppVersion" href="http://<some_path>/newVersion.zip">New version available</a>

这个 link 工作正常,它显示 'save as' 对话框,用户可以正常保存文件。

我的问题是,是否有一种简单的方法可以像浏览器一样在应用程序内显示下载进度,或者我需要创建自己的? (如果是的话如何?)。

目前用户选择下载位置时不显示任何内容。

我不认为 nwjs 包含此功能。如果您选择编写自己的机制,请尝试 request-progress:

Tracks the download progress of a request made with mikeal/request, giving insight of various metrics including progress percent, download speed and time remaining

检查 this answer 以获得更多选项。