【uni-app】UniApp中实现methods中的一个方法内调用另一个方法,由其是在循环内,提示无效的解决方法!

methods: {
	  	    a() {
                   let that=this;
                   if(1==1)
                   {
                    this.b();
                   }
                },
            b() {
                }

          }

用一个that代替this

猜你喜欢

转载自blog.csdn.net/dxnn520/article/details/129332904
今日推荐