哪位大佬幫忙看一下,為啥我的沒動(dòng)靜?
? ? if(var i==content.childNodes.length-1;i>=0;i++){
? ? ? content.removeChild(content.childNodes[i])
? ? }
? ? ? ??
? ? }
? ? if(var i==content.childNodes.length-1;i>=0;i++){
? ? ? content.removeChild(content.childNodes[i])
? ? }
? ? ? ??
? ? }
2022-05-15
舉報(bào)
2022-05-17
找到原因了:首先應(yīng)該是for,其次應(yīng)該是i--
附代碼:
2022-05-16