Checkpoint · code-edit

可重複執行且不重複節點的 render

只驗證本主題責任,不偷渡其他答案。

Checkpoint 要做什麼

只驗證本主題責任,不偷渡其他答案。

本主題檔案:files/main.js

定位:先找 render 是否只 append 而未清理/取代。

本階段驗收

頁面不會替你修改檔案;請在實作檔完成後重新整理確認。

目前要處理

空容器與固定三筆資料。

預期看到

firstCount=3、secondCount=3、duplicateIds=0。

container.replaceChildren(fragment) 取代舊清單。

檔案清單

只在本階段資料夾內操作,避免改到其他章節。

證據:firstCount=3、secondCount=3、duplicateIds=0

前往 Solution →