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中有一个变量可以保留所有字母
var letters=/^[a-z]+$/;
如何使这个变量也保留 CapLock 字母......谢谢你帮助我
尝试:
var letters=/^[a-zA-Z]+$/;