Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户输入无效的详细信息或将必填字段留空时,是否有办法显示错误消息。
它required=""把它放在<input>标签里面
required=""
<input>