我想创建chrome扩展,以便从site获取一些elemts div并在我的popup.html中显示当前值。当前的所有淡谷都将保存在存储中。
我尝试使用jquery ajax get方法来执行此操作,但是当我在后台页面中编写此代码时,我会看到完整的html dom代码。但我只需要$('currency_id')div,那里就有每个礼炮。
$.get("https://www.nbg.gov.ge/index.php?m=582&lng=geo",)
.done(function(response) {
let test = $("#currency_id").innerHTML = response;
console.log(test)
});
感谢帮助