JS引入CSS文件

//引入CSS文件
$("head").append("<link>");
  css = $("head").children(":last");
  css.attr({
    rel: "stylesheet",
    type: "text/css",
    href: "/front/demo.css"
  });
原文地址:https://www.cnblogs.com/time-on/p/8109575.html