Files
marqdo/examples/web-client-site/static/client.mq.md
T
cflmyandCursor a9d30cdf4a feat(wasm): route D zero-author-JS frontend + plan route E
Auto-mount via bridge mount/data-mq and client_embed; expand DOM/form
effects; drop hello loader JS; add web-client-site. Document that C+D
cover mid-size interactivity but not most JS apps—route E covers
routing, storage, lists, WebSocket, and richer DOM/timers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 08:46:05 +08:00

37 lines
1.0 KiB
Markdown

---
title: client counter (route D)
description: wired by client_embed auto-mount
import json:lib/json.mq.md
---
# main
*`count` = 0*
`wire` =
| @ | 选择器 | 事件 | 调用 |
|---|--------|------|------|
| 1 | "#bump" | click | bump |
| 2 | "#reset" | click | reset |
*`ready` = > json.set map=None key="#log" value="client.mq.md ready"*
*`enable_bump` = > json.set map=None key="disabled" value=False*
*`enable_reset` = > json.set map=None key="disabled" value=False*
*`attrs` = > json.set map=None key="#bump" value=enable_bump*
*`attrs` = > json.set map=attrs key="#reset" value=enable_reset*
*`boot` = > json.set map=None key="wire" value=wire*
*`boot` = > json.set map=boot key="set_text" value=ready*
**> json.set map=boot key="set_attr" value=attrs**
## bump
*`count` = count + 1*
*`label` = > str count*
*`patch` = > json.set map=None key="#count" value=label*
**> json.set map=None key="set_text" value=patch**
## reset
*`count` = 0*
*`patch` = > json.set map=None key="#count" value="0"*
**> json.set map=None key="set_text" value=patch**