Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果要移动lis,请使用
li
$('#div1 > li').appendTo('#list1');
如果你想复制它们,
$('#div1 > li').clone().appendTo('#list1');
您可以使用以下代码:
jsFiddle
var $item = new $("#div1").find("li>a").parent(); $("#list1").append($item);