el = document.querySelector("#wrapper");
ol=document.querySelectorAll("#wrapper ul li");
el.appendChild(ol);
假设el是个p, el包含ol(已存在)。我是否可以添加一个click事件,让el循环再添加ol。
如果可以请示例一下,麻烦了,谢谢!。
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号