我从一个空白模板开始,我在其中获得了 default.htm 和 default.js。当应用程序从完整模式变为快照或填充模式等时,我想处理事件。我添加了 updateLayout 方法,但是当我在这里添加断点时,它永远不会被命中。ready 方法的断点被击中。我在这里做错了什么?
// For an introduction to the Page Control template, see the following documentation:
// http://go.microsoft.com/fwlink/?LinkId=232511
(function () {
"use strict";
WinJS.UI.Pages.define("default.html", {
// This function is called whenever a user navigates to this page. It
// populates the page elements with the app's data.
ready: function (element, options) {
},
unload: function () {
// TODO: Respond to navigations away from this page.
},
updateLayout: function (element, viewState, lastViewState) {
}
});
})();