📅  最后修改于: 2022-03-11 15:01:18.447000             🧑  作者: Mango
paras=document.querySelectorAll('p');//gets ALL the elements with tags
paras.forEach(para=>{
para.innerText +=' this text was appended afterwards';
console.log(para.innerText)
})