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.
当我单击图像时,我可以删除所有兄弟姐妹并稍后使用
p =$(this).siblings().detach();
并用它把他们带回来
p.appendTo(".grid li");
但我无法通过单击摆脱父母和兄弟姐妹并将他们带回来。
JSFIDDLE
演示
$('#hidden').click(function () { p.prependTo("body"); });