[当我查看控制台时,我看到“ Uncaught ReferenceError:未定义解析”,所以我相信这可能是原因的一部分。
谁能看到哪里出了问题吗?
<script>
console.log("script started");
var PROJECTID = document.getElementById("PROJECT").value;
var newsrc = "PLANNER.I00120s?slnk=1&PROJID="+PROJECTID;
console.log(newsrc);
const script = document.createElement("script");
script.type = "text/javascript";
script.src = newsrc;
script.async = true;
script.dataset.cfasync = false;
document.body.appendChild(script);
script.addEventListener("load", () => {
console.log("Script added successfully");
resolve();
});
</script>
问题是其他地方的错字。
感谢那些试图帮助您的人