# 45-web-component-forms / app 表单关联自定义元素:rating 与 consent 参与 FormData、校验、重置与禁用。 ## 运行 ```bash cd tutorials/html python3 -m http.server 8080 # 打开 http://127.0.0.1:8080/examples/45-web-component-forms/app/ ``` ## 观察 - FormData 里有 rating 与 updates - 空评分/未勾选时表单无效 - 重置回到初始值 - 提交后输出全部字段