日期:2014-05-16  浏览次数:20327 次

EXTJS 循环一个列表
如何用ext获取trlist列表中选中的链接(href)的值。
C# code

<table width="700;" cellpadding="0" cellspacing="0" id="list">
                        <asp:Repeater ID="Repeater_Type" runat="server">
                        <HeaderTemplate>
                        <tr>
                        <td class="th1">类别名称</td>
                        <td class="th2">显示顺序</td>
                        <td class="th2">影片数量</td>
                        <td class="th3">&nbsp;</td>
                        <td class="th3 b_th3">&nbsp;</td>
                        </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr class="trlist">
                            <td class="th1 b_th"><%#Eval("CAPTION") %></td>
                            <td class="th2 b_th"><%#Eval("ORDER") %></td>
                            <td class="th2 b_th"><%#Eval("ISVIP") %></td>
                            <td class="th3 b_th"><a href="Type.aspx?TypeId=<%#Eval("ID") %>" class="edit">Edit</a></td>
                            <td class="th3 b_th3 b_th"><a href="Type.aspx?TypeId=<%#Eval("ID") %>" class="del">Delete</a></td>
                            </tr>
                        </ItemTemplate>
                        </asp:Repeater>
                    </table>



------解决方案--------------------
神马意思 没明白 ?
LZ的这段html都没有涉及Ext的东西 关Ext什么事
------解决方案--------------------
HTML code

$(function(){
            $('.trlist a').each(function () {
                alert($(this).attr('href'));
            });
        });

------解决方案--------------------
什么意思啊?
------解决方案--------------------
探讨
HTML code


$(function(){
$('.trlist a').each(function () {
alert($(this).attr('href'));
});
});