摘要:
var $ = document; // shortcutvar cssId = 'myCss'; // you could encode the css path itself to generate id..if (!$.getElementById(cssId)){ var head = $.getElementsByTagName('head')[0]; var link = $.createElement('link'); link.id = cssId; link.rel = 'stylesheet'; link.ty 阅读全文