🌈 搜索
📅  最后修改于: 2022-03-11 15:03:52.034000             🧑  作者: Mango
function validateUserName(username){ var usernameRegex = /^[a-zA-Z0-9]+$/; return usernameRegex.test(username); }