可用到截取文字过多的问题,取0到6之间的字符,不包含6
title.substring(0,6)+'...';
截取字符,超出的用省略号代替js实现 substring
猜你喜欢
转载自www.cnblogs.com/liubingyjui/p/12326679.html
今日推荐
周排行