摘要: 原创 阅读全文
posted @ 2020-10-23 10:05 时空梦醒 阅读(153) 评论(0) 推荐(0)
摘要: const str = 'qwerttyuiopasdfghjklzxcvbnm'; const truncate = (str, num) ⇒ str.length > num ? str.slice(0, num > 3 ? num - 3 : num) + '...' : str; trunc 阅读全文
posted @ 2020-10-23 09:54 时空梦醒 阅读(35) 评论(0) 推荐(0)