如何在输入和输出中限制字数并在5个字后添加省略号/js

问题描述 投票:0回答:0

这是我的代码我不知道要添加什么来限制输入和输出中的单词并在5个单词/ js的末尾添加省略号

[在这里输入图像enter image description heree描述](https://i.stack.imgur.com/l264l.png)

javascript input word ellipsis
© www.soinside.com 2019 - 2024. All rights reserved.