通过id获span里面的值
var x1 = document.getElementById("testid").innerText; alert("x1="+x1);
var x2 = document.getElementById("testid").innerHTML; alert("x2="+x2)