Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个文本框,我想使用javascript使字段中的两个或多个连续空格无效。
此正则表达式查找 3 个或更多空白字符。
/\s{3,}/
现场演示