摘要: 在vue中的created函数中,定义window.函数名=this.函数名。 created:function(){ window.clicktower=this.clicktower; }, methods: { clicktower:function(index){ ** } } 阅读全文
posted @ 2021-11-02 10:05 天明宝 阅读(354) 评论(0) 推荐(0) 编辑