一句话中如何匹配到数据中的重点词句并将他加粗

https://img3.mukewang.com/5c7e39c20001bbbd08150253.jpghttps://img.mukewang.com/5c7e3a4c0001bc9912220351.jpg

如何在页面上渲染成这种效果

qq_浅仓小星_0
浏览 1369回答 2
2回答

橋本奈奈未

关键的地方就是构造出要加样式的词根的正则表达式

慕瓜9220888

YANDDNBGUAKQMFZUXLQINNTXJWNIMJNWKXVVNFCYXLVPXESYYRVVJPJEENDNHLWUNATTNUCTKWLDCNHOCXMJBAUESGKZPVPDEHLZEYYOSVDKFDJZICFMAKYFVROCZRKPLBRYCJNSQMMFGTNRXDDKDYIVGRKJPZUYLZCYYLREKDBEQAAZDXVZUJRDGABOZKFIOUBLZLDVJYOAEIFNPMLLAEIZRAWWLPNABAPSBNRISZBQWPFPTAIRKNQZGAIRAZUKGAKYZUZXUIVTKVUGXQWXBYCTVWMSFYVWSRKZFJTXIQEUUTHBPGQPEBHBVLEEQQPPTKECVOUREFJNYMYHDXIZTNRKZHHKYMNQZLRHTDHPTLYONYPWNZQPVFPZTXUJRIEPFDEVEOGORGILRJZFEYTQXTGZPFPDALYWCCBPLVGWOIOUOEIZZXXNPBLPKMKQQGQUHYKPFLTGUYJYXWKXKOCTZLVLAOYFNGCFCIJUHITJTIYSYCDPKMLXXFHAIBXTABZMDVOXJTWQOITHXNDAKJQDLBRXRLZJEXUQZKOROYVYBTPORRUDUHEAYCXHUDMOPVARSZAFOBFBESAIEMLJVOUCFVIZJDUGTZCSNOCNVEXXQDEBSLUKQGKRMQWVRETGJXUSOEKBKLYDTEAZZGULZACSOKHSGRGYSPLZDXIPHUHNAYULPYEAHBELSGRUKJXLSDDMREQOBPWOAJQQUBPKTVRQAUYVEGRUZPJNBSRXOSRIUSJUXRNTDOIOBMMCYMQPGXTKNJNQELWYKAAUPNLVQPCVXROCUPSRHVVPQBRFITXMGESSCYLVYCSTUTURYSOGXDLWDSPXYIHKMATJFYXBLKFLRBEJDZLOOFABYZANCVIFKVWHPNDNQSAEFHHVBH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