input 里面增加这样的语句: required oninvalid="setCustomValidity('这里可以加上动态的文本 必须填写!');" οninput="setCustomValidity('');"