jquery 验证插件 valid() 方法报错 报错信息:Uncaught TypeError: Cannot read property ‘getAttribute’ of undefined 原因: input type 是checkbox的不能添加required // input type 是checkbox的不能添加required <input type="checkbox" id="isLink" class="tn required" v-model="isLink" />