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.
ウィンドウオブジェクトにdivを直接追加するにはどうすればよいですか?
<html> <head> </head> <body> <div><div> <ul>..</ul> </body> </html>
ulの後に要素を追加したいのですが、$('ul')。after(element)のようなものではなく、bodyに直接追加したいだけです。ありがとう
$("body").append(element);また$(element).appendTo("body");
$("body").append(element);
$(element).appendTo("body");