Is there a way in JavaScript to remove the end of a string?(JavaScript中有没有一种方法可以删除字符串的结尾?)
I need to only keep the first 8 characters of a string and remove the rest.(我只需要保留字符串的前8个字符,然后删除其余的字符。)
ask by user978905 translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…