Component自定义组件里能调用其他Component组件吗
发布于 6 年前 作者 tzeng 18044 次浏览 来自 问答

Component({

    properties: {

        bg: {

            type: String,

            value: “”

        },

        draw: {

            type: String,

            value: “”

        }

    },

    data: {

 

        time : 0,

    },

    methods: {

        init : function(){

            var _this = this

            //这里需要调用其他Component

        },

1 回复

如果ComponentA组件在ComponentB里面引用,可以在ComponentB通过selectComponent选中ComponentA组件

回到顶部