Just like the question
Can anyone help?
It’s okay not to use regular expressions, just use var directly imgs = document.getElementsByTagName("img"); Then delete them one by one.
var reg = /
var str = "
var images=document.images;
var x=images.length;
for(var i=0;i
p.removeChild(images[0]);
}