Segments 对象是文本字符串的片段的可迭代集合。它通过调用 Intl.Segmenter 对象的 segment() 方法返回。
实例方法
Segments.prototype.containing()- : 返回一个描述原始字符串中包含指定索引处的代码单元的片段的对象。
Segments.prototype[Symbol.iterator]()- : 返回一个用于迭代片段的迭代器。
Segments 对象是文本字符串的片段的可迭代集合。它通过调用 Intl.Segmenter 对象的 segment() 方法返回。
Segments.prototype.containing()
Segments.prototype[Symbol.iterator]()