|
|
Ok!
|
|
|
Ok!
|
|---|---|---|---|---|
| 218 | function loadScript(url, callback) {
const element = document.createElement("script");
element.type = "text/javascript";
element.src = url;
element.onload = callback;
document.body.appendChild(element);
}
loadScript("js/common.js", () => {
loadScript("<https://cdn.jsdelivr.net/npm/luxon@1.25.0/build/global/luxon.min.js>",
() => {
console.log("timer.js ")
})
}) | loadscript, js | 1200 | Скрипт чтоб загрузить другой скрипт |