qhshilin
qhshilin
  • 发布:2019-08-30 01:16
  • 更新:2019-08-30 01:16
  • 阅读:1437

如何在vue文件的script中调用export default-methods中的函数呢

分类:uni-app

<script>

  • ** 我想在这调用 isnan()函数。****
    export default {
    data() {
    return {
    title: 123
    }
    },
    onLoad() {
    this.isnan("123")
    },
    methods: {
    isnan(o){
    console.log("functions is runing")
    return isNaN(o)
    },
    updatas(){
    this.$data.title=Math.round(Math.random()
    100,2)
    }
    }
    }
    </script>

2019-08-30 01:16 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复