开发者

jquery append to window

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜