计算属性传递参数

    html代码:
    <p>{{ getNewIndex(data) }}</p>
    js:
    computed: {
      getNewIndex() {
        // data是使用的时候的参数
        retun (data) => {
            return data.index;
        }
      },
    }

相关文章:

  • 2021-10-26
  • 2022-12-23
  • 2021-06-17
  • 2022-01-17
  • 2022-02-16
猜你喜欢
  • 2021-10-27
  • 2023-03-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
相关资源
相似解决方案