📜  隐藏元素 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:13.129000             🧑  作者: Mango

代码示例3
function replaceContentInContainer(target, source) {
  document.getElementById(target).innerHTML = document.getElementById(source).innerHTML;
}

function replaceContentInOtherContainer(replace_target, source) {
  document.getElementById(replace_target).innerHTML = document.getElementById(source).innerHTML;
}