code: function createCSSlink(id, src, cb) {
    if (document.getElementById(id)) return true;
  
    var doc = document
    var headElement = doc.getElementsByTagName("head")[0];
  
    var tmpLink = doc.createElement('link');
    tmpLink.onload = tmpLink.onreadystatechange = function () {
      if (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete') {
        ImmitSax.data[id] = 'finish'
        setTimeout(function(){
          ImmitSax.roll(id)
          ImmitSax.off(id)
        }, 200);
      }
    }
  
    if (src.lastIndexOf('.css') == -1) src += '.css'
    tmpLink.setAttribute("rel", 'stylesheet');
    tmpLink.setAttribute("href", src);
    tmpLink.setAttribute("id", id);
    headElement.appendChild(tmpLink);
  }
docs: 注入引用样式