1. It is used to judge whether the textarea is all empty (cannot be all spaces and newlines, and the front and back of the characters are allowed to be empty)
/^[\s\S]*.*[^\s][\s\S]*$/
[\s\S]* can be preceded by any character
.*[^\s] any non-space and non-newline character