3 回答

bigzone
TA贡献1条经验 获得超0个赞
jq的写法
$( 'a' ) . eq( 0 ) . attr( 'href' , $( 'a' ). eq( 1 ). attr( 'href' ))
$( 'a' ) . eq( 0 )找到第一个a
$( 'a' ). eq( 1 ). attr( 'href' )第二个a的href值
添加回答
举报
0/150
提交
取消