0
我正在創建一個應用程序,其中我的着陸頁需要應用程序欄,但其他頁面不需要它。 當我進入頁面時,我可以禁用應用程序欄,但是當我回到主頁面時無法啓用它。應用程序欄位於default.html中並應用於整個應用程序。 我使用下面的代碼以禁用應用程序欄:如何使用winjs + html在windows phone 8.1應用程序的頁面中導航應用程序欄
WinJS.UI.processAll(element)
.then(function() {
appbar = document.getElementById("appBar");
if (appbar !== undefined || appbar !== null) {
appbar.winControl.disabled = "true";
}
});
請建議我如何當我瀏覽回到登陸頁面(主頁)允許應用程序欄。
由於提前 Swetha