vue实现过滤并且替换敏感词,将长字符串转化成...的形式,将秒转化成XX:XX的形式
使用vue的全局过滤敏感词// 铭感词过滤export const judgeBadWord = (str) => { const badWord = JSON.parse(sessionStorage.getItem('list')) const newArr = [] badWord.forEach(item => { newArr.push( { sensitiveWord: item.sensitiveWord,