Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Nativescript Listview正在运行示例-setLocal错误_Nativescript_Angular2 Nativescript - Fatal编程技术网

Nativescript Listview正在运行示例-setLocal错误

Nativescript Listview正在运行示例-setLocal错误,nativescript,angular2-nativescript,Nativescript,Angular2 Nativescript,我正在试着在 我在上得到一个编译时错误 onSetupItemView(参数:SetupItemViewArgs){ args.view.setLocal('third',(args.index%3==0)); } 获取错误:类型“EmbeddedViewRef”上不存在属性“setLocal”看起来像是EmbeddedViewRef。setLocal()已弃用 现在是args.view.context.third=new_值看起来EmbeddedViewRef.setLocal()已被弃用 现

我正在试着在

我在上得到一个编译时错误

onSetupItemView(参数:SetupItemViewArgs){
args.view.setLocal('third',(args.index%3==0));
}


获取错误:类型“EmbeddedViewRef”上不存在属性“setLocal”

看起来像是
EmbeddedViewRef。setLocal()
已弃用


现在是
args.view.context.third=new_值

看起来
EmbeddedViewRef.setLocal()
已被弃用

现在是
args.view.context.third=new_值