绊夏微凉

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

vue computed传参数

computed: {
  showStart: function () {
      return function (item) {
          var contentType = item.contentType
          if (contentType != null && contentType.trim() != '') {
              var contentTypeList = item.contentType.split(',')
              for (var i of contentTypeList) {
                  if (i == 'z') {
                      return true
                  }
              }
          }
          return false
      }
  }
}
posted on 2021-07-05 11:25  绊夏微凉  阅读(101)  评论(0)    收藏  举报