我想删除点击按钮时选择的数据,该数据具有
hasCheck=true在钛加速器里。
发布于 2017-08-01 00:20:39
file.xml (视图):
<ListView id="list" onItemclick="onListViewItemclick" >
<Templates>
</Templates>
<ListSection id="section"/>
</ListView>file.js (控制器):
function onListViewItemclick(e) {
var item = $.section.getItemAt(e.itemIndex);
if (item.hasCheck) {
$.section.deleteItemsAt(e.itemIndex, $.section.items.length);
}
}https://stackoverflow.com/questions/45420551
复制相似问题