刚刚发错书了,说声抱歉,不收费!由于作者不是在写一本书,刚刚看错作者后台,发错地方了,抱歉抱歉看无下划线版请下载飞卢
var tent = dot.getElementById('htmltent');
var imgtent =teElementsByame('imagetent');
var len = imgteh;
sole.log(len);
if(len > 0){
var divimg =teElementsByame('divimage');
var divimg_len = divimg.length;
if(divimg_len > 0){
var child = divimg[0];
}else{
var child = imgtent[0];
}
sole.log(child);
var parent = child.parentNode;
var index = Array.prototype.indexOf.call(parent.childNodes,child);
sole.log(index);
for(var i=0;i