html:
1 <span id="content">‘我是span标签的内容’</span>
javascript获取:
1 var content = document.getElementById("content").innerText;
2 var content = document.getElementById("content").innerHTML;
jquery获取:
1 var cont=$("#content").text();
2 var cont=$("#content").html();
注意:$("#content").val(); 输出 (无值);