<template>
  <div>{{a|sum(that)}}</div>
</template>

<script>
  export default {
    name: "test",
    data() {
      return {
        that: this,
        a: 1,
        b: 2
      }
    },
    filters: {
      sum(a, that) {
        console.log(that);
        return a + that.b;
      }
    },
  }

  

相关文章:

  • 2021-04-18
  • 2022-02-08
  • 2022-02-08
  • 2021-08-13
  • 2022-12-23
  • 2022-02-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案