截取字符,超出的用省略号代替js实现 substring

可用到截取文字过多的问题,取0到6之间的字符,不包含6
title.substring(0,6)+'...';

原文地址:https://www.cnblogs.com/liubingyjui/p/12326679.html