handleClickTabs(tab){
var index = tab.index
if (index == 0) {
this.stage = new createjs.Stage("canvas");
console.log("11",this.stage)
} else if (index == 1) {
this.stage = new createjs.Stage("canvasKT");
console.log("22",this.stage)
}
this.image1=new createjs.Bitmap("red.png");
this.image2=new createjs.Bitmap("black.png");
this.drawPoint() //绘图方法
},
以上,其实就是想在两个tab里面各自的canvas里绘制相同的东西,不想把所有方法写两遍,但是上面方法行不通不知道是什么原因