Syntax error on token “setColor”, Identifier expected after this token 警惕在类中.方法外.书写操作语句 用方法将你的操作语句包括起来