代碼:node
Document watcher()); }, }); } } defineReactive(state); const wacther = (fn) => { active = fn; fn(); // 調用函數 active = null; }; wacther(() => { app.innerHTML = state.count; // 取值 }); wacther(() => { console.log(state.count); });" _ue_custom_node_="true">
.app