What do square brackets in class names mean?

前端 未结 6 819
清酒与你
清酒与你 2020-12-02 06:41

I saw here square brackets that are used in class names:



        
6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 07:16

    That is most likely used by some sort of validator or validation library. The class here means that validate this field denoted by validate keyword and then:

    required it is required field
    custom validation type; allow only letters
    length should be between 0 to 100 chars

    Well, this information is used by the jQuery validation library you posted the link to :)

提交回复
热议问题