对于超出目标元素范围的文本进行截断。
目标元素
单行文本
多行文本
clamp.js
自定义clamp.js
Clamps an HTML element by adding ellipsis to it if the content inside is too long