ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的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; } ```