一个应用几乎不可能不访问服务器资源,WinJS 访问网络有多种方法,请参见:https://msdn.microsoft.com/zh-cn/library/windows/apps/hh868283.aspx
本文以 WinJS.xhr 为例作一个示例介绍: