我正在尝试检测textarea上我的代码所遵循的空格
textarea.value.replace(/\s/g, ' ');
但它检测到所有空格,我想只检测空格......
有什么办法吗?
javascript
javascript ×1