wordNum (val, num) { var str = val || '' if ( val && num && !isNaN(Number(num)) && val.length > num ) { num = Number(num) str = val.substring(0, num) + '...' } return str},
ps val 字符串 num 显示字数