摘要:
网络请求设置超时,只能对Promise设置超时WinJS.Promise.timeout(1500,WinJS.xhr({ url: "http://www.microsoft.com" })).then();对于返回的Promise一定要即时处理WinJS.xhr({ url: url }).then(function () { console.log("hello"); }, function () { console.log("error"); }).then(function () { console.log("wo 阅读全文
posted @ 2013-01-09 00:43 曙光城邦 阅读(422) 评论(0) 推荐(0)