我想在WinJS Listview中调用项目时更改项目的背景颜色。这是一个Windows Phone 8.1应用程序。我已经尝试了这里记录的内容......
https://msdn.microsoft.com/en-us/library/windows/apps/hh850406.aspx
我的ListView没什么不寻常的,非常香草......
<div id="itemTemplate" data-win-control="WinJS.Binding.Template">
<div class="itemContainer">
<div>
<div data-win-bind="innerText: name"></div>
<div data-win-bind="innerText: timestamp"></div>
</div>
</div>
</div>
<div id="listView"
data-win-control="WinJS.UI.ListView"
data-win-options="{ itemTemplate: select('#itemTemplate'),
layout: {type: WinJS.UI.ListLayout},
selectionMode: 'single',
tapBehavior: 'invokeOnly' }">
</div>