检查javascript中的string内容

1. 将string分成各个字符: str.split('')

2. 查看string中各个字符的值:str.charCodeAt(0)

你可能感兴趣的:(检查javascript中的string内容)