最后更新于4年前
这有帮助吗?
var isPalindrome = function(s) { let reg = /[a-z]|[0-9]/; s = s.split('').map(x => x.toLowerCase()).filter((x) => reg