【发布时间】:2020-02-06 00:45:38
【问题描述】:
我正在寻找一种使文本中的单词可点击的解决方案,我考虑将文本拆分为一个单词数组并为每个单词创建一个 btn...但是这个解决方案的性能很差...有人有任何主意?正文是:
const paragraph = 'Emma Woodhouse, handsome, clever, and rich, with a comfortable home and happy disposition, seemed to unite some of the best blessings of existence; and had lived nearly twenty-one years in the world with very little to distress or vex her.'
谢谢!!
【问题讨论】:
标签: javascript reactjs performance text word