I am getting x-wmapp2:/app/www/index.html
as output when I try to console.log(windows.location.href);
in my Windows Phone PhoneGap app when I try to run in emulator. When I try to run actual device, it gives x-wmapp1:/app/www/index.html
. What is x-wmapp2 and x-wmapp1? What is the difference between them? I also find there exists x-wmapp0 also. Could someone explain this?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
It appears to be the Scheme
of the WebBrowser
element whenever one is opening locally-stored web pages.
Actually, it starts from x-wmapp0
and is incremented for every new instance of WebBrowser
. Whenever the app is started anew or tombstoned and restarted, the count goes back to zero.
Of course, these is my personal experience. Only a chap from the IE team at MS could say for certain.