function insertLinks(links) {
    var head = document.head || document.getElementsByTagName("head")[0];
    for(var j = 0; j < links.length; j++) {
        var linkElement = document.createElement("link");
        linkElement.type = "text/css";
        linkElement.rel = "stylesheet";
        linkElement.href = links[j];
        head.appendChild(linkElement);
    }
}
/**
 * add css dynamically
 *
 * @param links css file list
 */
add css dynamically
@param links css file list
add css dynamically @param links css file list
function insertLinks(links) {
    var head = document.head || document.getElementsByTagName("head")[0];
    for(var j = 0; j < links.length; j++) {
        var linkElement = document.createElement("link");
        linkElement.type = "text/css";
        linkElement.rel = "stylesheet";
        linkElement.href = links[j];
        head.appendChild(linkElement);
    }
}
function insertLinks ( links ) { var head = document . head || document . getElementsByTagName ( "head" ) [ 0 ] ; for ( var j = 0 ; j < links . length ; j ++ ) { var linkElement = document . createElement ( "link" ) ; linkElement . type = "text/css" ; linkElement . rel = "stylesheet" ; linkElement . href = links [ j ] ; head . appendChild ( linkElement ) ; } }
add css dynamically
 @param links css file list
add css dynamically @param links css file list