技术 · · 567 阅读

js获取/修改span的值

var a = document.getElementById("span").innerHTML;

document.getElementById("span").innerHTML = '123';