你可以这样做:
$('#destination').html($('#source').html());
Run Code Online (Sandbox Code Playgroud)
或者
$('#destination').append($('#source').html());
Run Code Online (Sandbox Code Playgroud)
$('something').html() 从元素中获取 html。
$('something').html('something') 用新的 html 替换元素中的当前 html。
$('something').append('something')将新 html 放在元素中旧 html 的末尾。(这不会取代)。