Checkpoint 要做什麼
只驗證本主題責任,不偷渡其他答案。
本主題檔案:files/main.js
定位:記錄每次 watch run id、cleanup id 與完成 id。
Checkpoint · code-edit
只驗證本主題責任,不偷渡其他答案。
只驗證本主題責任,不偷渡其他答案。
本主題檔案:files/main.js
定位:記錄每次 watch run id、cleanup id 與完成 id。
頁面不會替你修改檔案;請在實作檔完成後重新整理確認。
term 空白,DOM ref 尚未 mounted。
activeId=watch-name-input、cleanupCount=1、staleRuns=0、finalTerm=ab。
watch(term,(value,_,onCleanup)=>{const id=setTimeout(...);onCleanup(()=>clearTimeout(id))}); onMounted(()=>input.value.focus())。只在本階段資料夾內操作,避免改到其他章節。
index.htmlstyle.cssmain.js證據:activeId=watch-name-input、cleanupCount=1、staleRuns=0、finalTerm=ab
前往 Solution →