开发者

jquery append to window

开发者 https://www.devze.com 2022-12-08 07:10 出处:网络
how can i append a div directly to the window object? <html> <head> </head> <body>

how can i append a div directly to the window object?

<html>
<head>
</head>
      <body>
 开发者_JS百科          <div><div>
           <ul>..</ul>
      </body>
</html>

and i want to append an element after the ul, but not something like $('ul').after(element), i just want to append it directly to body. thanks


$("body").append(element); or $(element).appendTo("body");

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号