span取值赋值方法有别于一般的页面元素。JQ://赋值$("#spanid").html("hello world")//取值$("#spanid").text("hello world")
JS:
document.getElementById("spanid").innerText = "hello world";
document.getElementById("spanid").innerHTML = "hello world";