當我運行應用程式時,控制臺中會輸出一組 URL,其中包含我訪問過的一些(不是全部)網站 URL。
控制臺:
[HMR] 等待來自 WDS 的更新信號...
陣列(2)
0:“https://erpbasic.blogspot.com/2012/01/inheritance-advantages-and.html”
1:“https://dev.to/johnstonlogan/react-hooks-barney-style-1hk7”
長度:2
[[原型]]:陣列(0)
輸出來自名為content.js第 11 行的檔案
輸出到控制臺的功能是:
chrome.storage.sync.get(null, (res) => {
if(res.urls){
console.log(res.urls)
if(res.urls.includes(window.location.href)){
addStyleSheet()
}
else {
res.urls.forEach(element => {
if(element.includes(window.location.href)){
addStyleSheet()
}
});
}
}
});
它不是專案內部的檔案我認為這是一個反應檔案為什么會發生這種情況以及如何洗掉它。
謝謝!
uj5u.com熱心網友回復:
您可以嘗試在不同的瀏覽器中運行它。它將解決問題:)。這可能是您的一個瀏覽器上的擴展情況,該瀏覽器正在添加您在控制臺中查看的自己的 css 檔案
干杯。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/405715.html
標籤:
下一篇:反應:無法訪問div元素的值
