📜  javascript代码示例中的链接样式表

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

代码示例3
var cssFile = document.createElement('link');
    cssLink1.rel = 'stylesheet';
    cssLink1.href = "styles.css";  // or path for file {themes('/styles/mobile.css')}
    document.head.appendChild(cssFile); // append css to head element