JavaScript替换文本框中的空格

replace(/\s+/g, "")
原文地址:https://www.cnblogs.com/fighter/p/1527457.html