为什么一开始定义的 animated = false; 后面的(!animated) 与( animated == false) 是一样的,没搞懂。
因为一开始图片没有移动是静止状态;
应为一开始animated是false,所以取反和与false判断一样都是true;