Home > front end >  How to determine blanks in the text box cross word getSelection content
How to determine blanks in the text box cross word getSelection content

Time:02-21

In the text box cross word, text displays getSelection is true, if cross word all Spaces,
how to judge?
Found online judge string for Spaces, are unable to achieve

 
Var te=window. GetSelection (). The toString ();
If (te) match (/^ [] * $/)) {
The console. The log (" OK ")
}

  • Related