如何在JavaScript中按类获取元素?
function ReplaceContentInContainer(id,content) {
var container = document.getElementById(id);
container.innerHTML = content;}ReplaceContentInContainer('box','This is the replacement text');<div id='box'></div>
POPMUISE
米琪卡哇伊
随时随地看视频慕课网APP
相关分类