Li * Ping
Murong * Cream
Li * Ping
Murong * Cream
the better way is to write a regular replacement, and what low forces is to judge the length and deal with it
.var name = ''
nameArr = name.split('')
if (nameArr.length > 2)
{
nameArr[nameArr.length - 2] = '*'
}
return nameArr.join('')
"".replace(/^(.+).(.)$/, "$1*$2");
"".replace(/^(.+).(.)$/, "$1*$2");
Previous: Apache, how do I set up an agent?
Next: Can I get a picture with the help of a chrome browser? is it from that js request?
the following is the function used by the backend to generate jwt-token (written by golang), which returns jwt-token to the front end, including username: Sign signs the context with the specified secret. func Sign(ctx *gin.Context, c Context, secre...
write Mini Game for the first time. ask: frame synchronization: the server broadcasts to the user at a frequency of 60 seconds. Or broadcast to other users as soon as you receive a user message? does bullet launch broadcast information about eac...