背景:
阅读新闻

jquery总结

  作者: 今日评论: [字体: ]

How to move an element into another element?


You may want to use the appendTo function (which adds to the end of the element):

$("#source").appendTo("#destination");

Alternatively you could use the prependTo function (which adds to the beginning of the element):

$("#source").prependTo("#destination");

来源:
录入日期:[2020/07/05 12:45:00]
收藏 推荐 打印 | 录入:mikebai | 阅读:
文章评论      
正在加载评论列表...
评论关闭