企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
index.html: ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <div id="header"></div> <div id="footer"></div> <script src="./header.js"></script> <script src="./footer.js"></script> </body> </html> ``` header.js: ``` document.getElementById("header").innerHTML = header(); function header() { var header = ''; header += 'header'; return header; } ``` footer.js: ``` document.getElementById("footer").innerHTML = footer(); function footer() { var footer = ''; footer += 'footer'; return footer; } ```