📜  jquery set text of h1 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:49.991000             🧑  作者: Mango

代码示例2
$(yourElement).html("New text");
//sets yourElement innerHTML to "New text"
var text = $(yourElement).html();
//html() returns the text inside yourElement if you pass no parameters