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在表单上使用该属性,但我不知道旧版浏览器将如何处理(对他们而言)未知的这个属性。
required
旧浏览器会很好地忽略(从而允许优雅地降级)html5required属性吗?
是的,浏览器只会忽略未知属性。