js正则——匹配行首或行末的空白符

匹配行首的空格

^\s+

匹配行末的空格

\s+$

猜你喜欢

转载自blog.csdn.net/qq_43201350/article/details/121888706
今日推荐