Javascript develops @ someone's function

Hello, everyone. At the front end, I need to do a function of @ someone in the comments. I want to listen to @ and then the first word after @ triggers the interface to get a list of users and then select the users in the list. The space continues when it is finished. Is there any ready-made plan? I always feel that there is no relative

.
Mar.02,2022

html5 supports datalist definition option list W3C DataList .


I have done similar functions. My understanding is to judge that @ appears in the input box and then call the user list API (the interface is Baidu search box type, display all first, and then accurately find it), and the user list needs to be located by the cursor.


http://ichord.github.io/At.js/
searches a lot.

Menu