mirror of
https://github.com/apachecn/eloquent-js-3e-zh.git
synced 2025-05-28 23:42:22 +00:00
commit
4351148f9b
1
14.md
1
14.md
@ -178,7 +178,6 @@ console.log(link.href);
|
||||
let images = document.body.getElementsByTagName("img");
|
||||
for (let i = images.length - 1; i >= 0; i--) {
|
||||
let image = images[i];
|
||||
var image = images[i];
|
||||
if (image.alt) {
|
||||
let text = document.createTextNode(image.alt);
|
||||
image.parentNode.replaceChild(text, image);
|
||||
|
Loading…
x
Reference in New Issue
Block a user