📜  添加 jquery - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:34.952000             🧑  作者: Mango

代码示例4
$(".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