我正在使用Javascript编写Windows 8应用程序。我在使用Windows 8模拟器测试我的应用时出现此问题。这似乎是ui.js的错误。
Exception was thrown but not handled in user code at line 22600, column 25 in ms-appx://microsoft.winjs.1.0.rc/js/ui.js
0x800a138f - JavaScript runtime error: Unable to get property 'style' of undefined or null reference
If there is a handler for this exception, the program may be safely cont
它指向这一行。
that._viewport.style.opacity = 1.0;
控制台日志
SCRIPT5007: Exception was thrown but not handled in user code at line 22600, column 25 in ms-appx://microsoft.winjs.1.0.rc/js/ui.js
0x800a138f - JavaScript runtime error: Unable to get property 'style' of undefined or null reference
File: ui.js, line: 22600 column: 25
更新 今天2012/08/09。当我运行我的应用程序时,它会在jquery.js和ui.js中生成一个更奇怪的错误。他们有什么不对?
'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/1.0)'.
Exception was thrown at line 5200, column 4 in ms-appx://7034140f-baab-4c76-b27c-2a4c76641550/js/jquery.js
0x800a139e - JavaScript runtime error: SyntaxError
Exception was thrown at line 28908, column 30 in ms-appx://microsoft.winjs.1.0.rc/js/ui.js
0x80004005 - JavaScript runtime error: Incorrect function.
答案 0 :(得分:1)
可悲的是,这是Windows 8 RC构建中WinJS中的一个已知错误。好消息是该错误已在RTM版本中得到修复。