![](/img/trans.png)
[英]I'm trying to manipulate a simple props in React but it gives me an error
[英]I'm trying to add the following scripts to the head of a website but it gives me 404 error
下面的代碼是我如何將 jquery-3.5.1.min.js 與 EmbeddedCPC.js 添加到網站的頭部
var scriptOne = document.createElement("script");
var scriptTwo = document.createElement("script");
scriptOne.setAttribute('src', '/scripts/api/vendor/jquery-3.5.1.min.js')
scriptTwo.setAttribute('src', '/scripts/embeddedCPC.js')
document.head.appendChild(scriptOne);
document.head.appendChild(scriptTwo);
顯然您在服務器上的這些地址下沒有文件
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.