原文
<div moo="{ init: 'st.cups ??= 1' }"> <output moo="el.textContent = st.cups">1</output> <button moo="{ click: 'st.cups = Math.max(0, st.cups - 1)' }">−</button> <button moo="{ click: 'st.cups++' }">+</button> <button moo="{ click: 'ox.post(\"/ox/demo/order\", { body: { cups: st.cups } })' }"> Print ticket </button></div>