摘要: Jquery方法<head> <script src="jquery-1.4.1.js" type="text/javascript"></script> <script type="text/javascript"> $(function () {// 不需要on—— $(".table1 tr").mouseenter(function () { $(this).css("backgroundColor", "yellow" 阅读全文
posted @ 2011-11-18 13:57 易尔购 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 如何获取Repeater的当前行号,其实Repeater自身就带有这个获取当前行号的属性,而无需程序员绑定这个行号。到底要怎么实现呢?其实使用Repeater中的 Container.ItemIndex 就可以获取了,见下示例:<asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> 行号: <%#Container.ItemIndex %> </ItemTemplate></asp:Repeater>如果上面的示例中,Repeate 阅读全文
posted @ 2011-11-18 09:16 易尔购 阅读(200) 评论(0) 推荐(0) 编辑