Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个 winJS 应用程序。我的应用程序从下载图像开始。我如何将 Dedicated Worker 集成到我的应用程序中......?
很高兴熟悉 WinJS.Promise,它用于基于 javascript 的 Windows 商店应用程序中的异步任务。检查WinJS.xhr()api。如果可以通过 url 访问图像,则可以简单地将 img 标签的 src 属性绑定到 url。
WinJS.xhr()
<img data-win-bind="src: imageUrl" />