簡體   English   中英

我正在嘗試將以下腳本添加到網站的頭部,但它給了我 404 錯誤

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM