2

我使用 WinJS.Navigation.navigate 加载新页面。我使用这个代码行,它从 Metro 库中抛出了一个奇怪的异常。当我将其注释掉时,它运行良好。为什么?

代码:

WinJS.Navigation.navigate("/pages/about/about.html");

例外:

'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/1.0)'. 
Exception was thrown at line 5200, column 4 in ms-appx://tiponspackage/js/jquery.js
0x800a139e - JavaScript runtime error: SyntaxError
Exception was thrown but not handled in user code at line 84, column 29 in ms-appx://tiponspackage/js/navigator.js
0x800a139e - JavaScript runtime error: NotFoundError
The program '[5864] WWAHost.exe' has exited with code -1 (0xffffffff).
4

0 回答 0