get word click in paragraphs

后端 未结 4 1375
执念已碎
执念已碎 2020-12-06 01:05

I have an HTML document with about 30,000 words in it.

I\'d like to be able to do something when a user clicks any word. For simplicity/concept right now, I\'d just

4条回答
  •  有刺的猬
    2020-12-06 01:43

    I did not go through the code to post how exactly it is done, but it is fact that this is done in here, without inserting any extra spans or other elements into the sentence.

    http://www.wordreference.com/enit/something

提交回复
热议问题