📜  vue filter() - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:57.250000             🧑  作者: Mango

代码示例1
filters: {
  capitalize: function (value) {
    if (!value) return ''
    value = value.toString()
    return value.charAt(0).toUpperCase() + value.slice(1)
  }
}