分享答案,歡迎交流。
for (var i=0; i<content.childNodes.length; i++){
while(content.childNodes.length!=0){
?? content.removeChild(content.childNodes[i]);
??? }
for (var i=0; i<content.childNodes.length; i++){
while(content.childNodes.length!=0){
?? content.removeChild(content.childNodes[i]);
??? }
2019-03-31
舉報
2019-03-31
for (var i=0; i<content.childNodes.length; i++){
while(content.childNodes.length!=0){
?? content.removeChild(content.childNodes[i]);
??? }
}
上一個代碼最后少了個“}”