Put the string in the specified range, the exceriving part is automatically changed to "..." perfectly solves Shilong

zhaozj2021-02-16  98

The latest diary and the latest comment in the YLOG.NET homepage, the contents of the diary and the contents of the journal are often overspeed, and they can only describe the two words, which makes me headache ... first I think that I intercept one So this function is written in this operational JS, and the client can alleviate the server burden, and the JS has speed advantage when the string is operated.