String Split With Unicode

后端 未结 2 995
面向向阳花
面向向阳花 2020-12-16 07:10

First off I been searching the web for this solution.

How to:

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

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

Simply express of

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-16 08:00

    for ... of could loop through string contains unicode characters,

    let string = "

提交回复
热议问题