摘要: 验证API 两个方法: checkValidity():如果input元素中的数据是合法的返回true,否则返回false; setCustomValidity():设置input元素的validationMessage属性,用于自定义错误提示信息的方法 使用setCustomValidity设置自 阅读全文
posted @ 2023-01-16 21:17 H年轻的心 阅读(49) 评论(0) 推荐(0)