<!doctype html>
<html>
<head></head>
<body>
<script>
function createScript(str,callFunc,callArgument){
var myScript = document.createElement("script");
myScript.src = str;
document.body.appendChild(myScript);
if(typeof callArgument === "string" && typeof callFunc === "function"){callFunc(callArgument)}
}
createScript(‘a.js‘,createScript,‘c.js‘);
//createScript(‘c.js‘);
</script>
</body>
</html>
原文:http://www.cnblogs.com/qianduanlover/p/3999770.html