Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/bj_chengrong/article/details/83345188
/* 添加头尾标签 */
$("<header></header>").insertBefore("body div:first");
/* 添加样式表 style_ext */
$("head").append("<link>");
css = $("head").children(":last");
css.attr({
rel: "stylesheet",
type: "text/css",
href: "/css/style_ext.css"
});