文本 splitText() 自 4.1.0 起 TextSplitter 设置 配置目标 HTML 元素内的文本如何拆分。 splitText(target, { ┌────────────────────────┐ │ lines: true, ├─ Settings │ words: { │ │ wrap: 'clip', │ │ class: 'split-word', │ │ clone: true │ │ }, │ │ includeSpaces: true, │ │ debug: true, │ └────────────────────────┘ }); 本节内容 行 单词 字符 调试 包含空格 无障碍 上一页 下一页 splitText() 行