代码片段:clickFun:function(){if(typeofthis.bufferImg=="undefined"){this.bufferImg=this.img;this.img=changeImgColor(this.bufferImg,colorObj.r,colorObj.g,colorObj.b);}else{this.img=changeImgColor(this.bufferImg,colorObj.r,colorObj.g,colorObj.b);}}