状态

展开 / 收起

aria-expanded 表达状态,aria-controls 指向被控制区域。

开关

开关用 aria-pressed,按下后变为 true。

当前项

当前页用 aria-current="page"。

实时状态

草稿已保存

异步状态用 role="status",不要用 alert 播报普通提示。