📜  jquery add - Javascript 代码示例

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

代码示例5
$(".demo").prepend("Yo!");          // adds content at the beginning in the selected elements
$(".demo").append("Hey!"); // adds content at the end in the selected elements
$(".demo").before("Cheers");        // adds content before the selected elements
$(".demo").after("Peace"); // adds content after the selected elements