window.addEventListener("load", run, false);
function run() {
var links = content.document.getElementsByTagName("a");
var x = "";
for (var i = 0; i < links.length; i++) {
x = x + "<p>" + links[i] + "</p>";
}
document.write(x);
}
我是 JavaScript 新手,我一辈子都搞不清楚。