草庐IT

formnovalidate

全部标签

forms - HTML5 的 novalidate 和 formnovalidate 属性有什么区别?

从w3c学校我们有这些定义:novalidate:Whenpresent,itspecifiesthattheform-data(input)shouldnotbevalidatedwhensubmitted.formnovalidate:Whenpresent,itspecifiesthattheelementshouldnotbevalidatedwhensubmitted.在提交按钮中使用formnovalidate与在form中使用novalidate有什么不同吗?(我真的不明白) 最佳答案 novalidate应用于表单,