我正在使用以下代码获取 ListView,假设我想点击任何需要进入详细页面的特定项目,我该怎么做?
<div id="basicListView" data-win-control="WinJS.UI.ListView"
data-win-options="{itemDataSource : RenttheRooRental.itemList.dataSource,
itemTemplate: mediumListIconTextTemplate, layout: {type: WinJS.UI.GridLayout}, oniteminvoked : handler}">
</div>
<div id="mediumListIconTextTemplate" data-win-control="WinJS.Binding.Template" class="">
<div id="menu" style="width: 150px; height: 100px;">
<!-- Displays the "picture" field. -->
<a href="URL:url">
<img src="#"
data-win-bind="alt: title; src: picture" />
</a>
<div>
<!-- Displays the "title" field. -->
<h2 data-win-bind="innerText: title"></h2>
</div>
</div>
</div>
任何人都可以指导我吗?如果你知道这个问题请评论我会再次解释谢谢