Trong Visual Studio 2015 Update 3, Tôi đã tạo dự án JavaScript -> Windows -> Windows 8 -> Windows Phone -> Blank App (Windows Phone)
. sau đó tôi đã thay đổi default.html
để bao gồm một yếu tố <select>
như thế này:Cordova/UWP Vi phạm Truy cập Windows Mobile 10 trên phần tử chọn HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>App1</title>
<!-- WinJS references -->
<!-- At runtime, ui-themed.css resolves to ui-themed.theme-light.css or ui-themed.theme-dark.css
based on the user’s theme setting. This is part of the MRT resource loading functionality. -->
<link href="/css/ui-themed.css" rel="stylesheet" />
<script src="//Microsoft.Phone.WinJS.2.1/js/base.js"></script>
<script src="//Microsoft.Phone.WinJS.2.1/js/ui.js"></script>
<!-- App1 references -->
<link href="/css/default.css" rel="stylesheet" />
<script src="/js/default.js"></script>
</head>
<body class="phone">
<select>
<option>Val</option>
<option>Val</option>
<option>Val</option>
<option>Val</option>
</select>
</body>
</html>
Khi khai thác trên các yếu tố lựa chọn, các ứng dụng bị treo trên Windows Mobile 10 với:
'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/2.0)'.
The program '[3976] WWAHost.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.
Điều này xảy ra trên các thiết bị và trình mô phỏng Windows Mobile 10. Windows Phone 8 dường như không có vấn đề này. Cho đến gần đây, tính năng này cũng hoạt động tốt trên Windows Mobile 10. Có lẽ bản cập nhật đã gây ra điều này? Điều thú vị là Cordova và UWP cũng bị ảnh hưởng. Có một giải pháp đã biết chưa?
Đây là 10.0.14393; cập nhật kỷ niệm. –