jQuery截取指定长度字符串代码

2020-05-19 07:32:53易采站长站整理

9.objString = $(this).text(objString.substring(0,num) + “…”),截取指定长度字符串,超出的用省略号代替。