filter.wxs 238 B

1234567891011
  1. var abbreviationEight = function (value) {
  2. //实现文字只显示8个字符
  3. if (value.length > 15) {
  4. return value.slice(0, 15) + '...'
  5. } else {
  6. return value
  7. }
  8. }
  9. module.exports = {
  10. abbreviationEight: abbreviationEight,
  11. }