JQuery 控制内容长度超出规定长度显示省略号

长度超出规定长度,显示省略号

设置class为displayPart,

设置自定义属,displayLength可显示长度(不包含...),双字节字符,长度 *2,
复制代码 代码如下:



复制代码 代码如下:




New Document








hello world




hello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello world!!!



hello


hello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhelloworldhello worldhello worldhello worldhello worldhello worldhello world



你可能感兴趣的:(JQuery 控制内容长度超出规定长度显示省略号)