$('#user-order-list').find('li').each(function () { if($(this).data('id')==shushe_id){
if($(this).find('img').length<=1){
$(this).find('a').append("<img src='../img/books_list.jpg' class='books_list_icon'>");
$(this).eq(0);
}
}else { }
});在插如图片后,下一步移动位置不知道该怎么操作了
1 回答
慕姐4208626
TA贡献1852条经验 获得超7个赞
这是你要的功能?
$('#user-order-list').find('li').each(function () { if($(this).data('id')==shushe_id){
if($(this).find('img').length<=1){
$(this).find('a').append("<img src='../img/books_list.jpg' class='books_list_icon'>");
}
$('#user-order-list').prepend($(this));
}else {
}
});添加回答
举报
0/150
提交
取消
