最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - String Split With Unicode - Stack Overflow

programmeradmin1浏览0评论

First off I been searching the web for this solution.

How to:

<''.split('');

> ['','','']

Simply express of what I'll like to do. But also with other Unicode characters like poo.

First off I been searching the web for this solution.

How to:

<''.split('');

> ['','','']

Simply express of what I'll like to do. But also with other Unicode characters like poo.

Share Improve this question edited Jun 23, 2015 at 9:13 Miguel 20.6k5 gold badges46 silver badges67 bronze badges asked Jun 22, 2015 at 21:51 L2L2LL2L2L 932 silver badges10 bronze badges 3
  • 3 I'm a little confused. ''.split(''); appears to work for me: ["", "", ""] – KJ Price Commented Jun 22, 2015 at 21:54
  • 1 I've read about the poo test before. mathiasbynens.be/notes/javascript-unicode has a good explanation. The key thing is
发布评论

评论列表(0)

  1. 暂无评论