我从http://uvumitools.com/odometer.html下载了里程表样本, 但只有 Datalist 中的第一个元素获得了里程表,其他元素没有显示里程表。这是代码
<script type="text/javascript" src="js/UvumiOdometer-compressed.js"> </script>
<link rel="stylesheet" type="text/css" media="screen" href="css/uvumi-odometer.css"
<script type="text/javascript">
var odo2 = new UvumiOdometer('odometer2', { digits: 3 });
</script>`
<asp:DataList ID="dlEquipment" runat="server" DataKeyField="Device_Id"
RepeatDirection="Horizontal" RepeatColumns="5" Width="100 >
<ItemTemplate>
<div id="odometer2<%# Eval("count")%>
</div></ItemTemplate>