// ???????????????? function loadContent(url, targetId) { const xhr = new XMLHttpRequest(); xhr.open("GET", url, true); xhr.onreadystatechange = function () { if (xhr.readyState === 4 && xhr.status === 200) { const content = xhr.responseText; const element = document.querySelector(targetId); if (element) { element.insertAdjacentHTML("afterbegin", content); } } }; xhr.send(); } // ?w?b?_?[?????????? loadContent("/kanri/pm/park_s/inc/header.html", "#header"); // ?t?b?^?[?????????? loadContent("/kanri/pm/park_s/inc/footer.html", "#footer"); // ?N???????????????????? loadContent("/kanri/pm/park_s/inc/inq.html", "#inq");