JQuery关于span标签的取值赋值时间:2023-03-09 01:21:48 span取值赋值方法有别于一般的页面元素。JQ://赋值$("#spanid").html("hello world") //取值$("#spanid").text("hello world") JS: document.getElementById("spanid").innerText = "hello world"; document.getElementById("spanid").innerHTML = "hello world";