问题描述
场景 - 我想根据AppBar上实施的搜索条件刷新split.html上显示的项目。所以我在事件处理函数中声明地执行此操作
Scenario - I wants to refresh the items displayed on split.html based on the search criteria implemented on AppBar. So i am doing this declarativly in event handler function
我在AppBar菜单命令的"点击"时附加了函数作为事件处理程序。
I have attached function as event handler while 'click' of AppBar menu command.
在函数中;
{
listView.itemDataSource = filteredItems.dataSource;
listView.itemDataSource = filteredItems.dataSource;
}
执行此函数后,获取以下异常:
after this function got executed , getting exceptions of these :
WinJS.Utilities.markSupportedForProcessing
WinJS.Utilities.requireSupportedForProcessing;
WinJS.Utilities.markSupportedForProcessing
WinJS.Utilities.requireSupportedForProcessing;
我将此异常绑定,并获得信息 - 需要使用以上两个属性注册事件处理程序。但我仍然得到同样的例外。请在这里帮助我。
I binged this exception and , got info - needs to register the event handler with above two properties. But still i am getting the same exception. Please help me here.
推荐答案
例如(代码来自其中一个项目模板):
For example (code is from one of the project templates):
var util = WinJS.Utilities;
var util = WinJS.Utilities;
section3ItemNavigate:util.markSupportedForProcessing(function(args){
//做东西
section3ItemNavigate: util.markSupportedForProcessing(function (args) {
// do stuff
nav.navigate(" /pages/item/item.html",{item:item});
}) ,
nav.navigate("/pages/item/item.html", { item: item });
}),
这篇关于得到错误'WinJS.Utilities.requireSupportedForProcessing'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!