开发者

How to get character array from a string?

开发者 https://www.devze.com 2023-02-01 05:57 出处:网络
How do you convert a string to a character array in JavaScript? I\'m thinking getting a string like \"Hello world!\" to the开发者_开发问答 array

How do you convert a string to a character array in JavaScript?

I'm thinking getting a string like "Hello world!" to the开发者_开发问答 array

['H','e','l','l','o',' ','w','o','r','l','d','!']


Note: This is not unicode compliant. "I

0

精彩评论

暂无评论...
验证码 换一张
取 消