哪位大佬幫忙看一下,為啥我的沒動靜?
? ? 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
舉報
2022-05-17
找到原因了:首先應該是for,其次應該是i--
附代碼:
2022-05-16