Checkpoint 要做什麼
只驗證本主題責任,不偷渡其他答案。
本主題檔案:files/main.js
定位:列出每一段程式是在 return 值還是修改外部狀態。
Checkpoint · code-edit
只驗證本主題責任,不偷渡其他答案。
只驗證本主題責任,不偷渡其他答案。
本主題檔案:files/main.js
定位:列出每一段程式是在 return 值還是修改外部狀態。
頁面不會替你修改檔案;請在實作檔完成後重新整理確認。
message 空字串、watch log=0。
computedValue=4/10、watchCount=1、externalWrites=1、computedWrites=0。
remaining=computed(()=>message.value.length+'/10'); watch(message,()=>logs++)。只在本階段資料夾內操作,避免改到其他章節。
index.htmlstyle.cssmain.js證據:computedValue=4/10、watchCount=1、externalWrites=1、computedWrites=0
前往 Solution →