📅  最后修改于: 2022-03-11 15:02:58.403000             🧑  作者: Mango
var scripts = document.getElementsByTagName("script");
for (var i = 0; i < scripts.length; i++) {
if (scripts[i].src) {
console.log(i, scripts[i].src);
} else {
console.log(i, scripts[i].innerHTML);
}
}