Dojo common knowledge points

  1. dijit/form/ValidationTextBox

Common attributes:

required: true //cannot be empty

trim:true //The spaces before and after are automatically deleted. If there is no content added, an exception will occur when using this attribute

pattern: //Verify the regular expression, but the attribute is a string; But by default, it will be replaced with “\”. So similar: ^[1-9]\d{0,7}(\.\d{1,6})?$|^0(\.\d{1,6})?$, such an expression , If you want it to be able to verify normally, you need to adjust to: “^[1-9]\\d{0,7}(\\.\\d{1,6})?$|^0(\\ .\\d{1,6})?$”

Common methods:

isValid() //Is it compliant Check rules

isEmpty() //Is it empty

2. The difference between dijit/form/SimpleTextarea and dijit/form/Textarea

Answer: SimpleTextarea The height of the textarea will not automatically increase with the growth of the content, but the height of the Textarea can automatically increase with the growth of the content

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5784 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.