If input has spaces only
This question already has an answer here:
功能trim
str.trim() === ''
链接地址: http://www.djcxy.com/p/27524.html
下一篇: 如果输入只有空格
This question already has an answer here:
功能trim
str.trim() === ''
链接地址: http://www.djcxy.com/p/27524.html
下一篇: 如果输入只有空格