<!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>
时间: 2024-11-13 01:06:08