原生DOM操作

注入jQuery

var node=document.createElement("script");
node.setAttribute('src','http://common.cnblogs.com/script/jquery.js');
node.setAttribute('type','text/javascript');
document.getElementsByTagName('head')[0].appendChild(node);
原文地址:https://www.cnblogs.com/wancy86/p/DOM.html