sprite.fadeOut(0.5).then(function(){sprite.attr(‘xy’, )}).fadeIn(0.5).act();
比如这样
在动画过程中需要实时改变元素的某个属性,直接在then方法里用.attr设置属性就行了
sprite.fadeOut(0.5).then(function(){sprite.attr(‘xy’, )}).fadeIn(0.5).act();
比如这样
在动画过程中需要实时改变元素的某个属性,直接在then方法里用.attr设置属性就行了
大神能留个Q吗,论坛交流好麻烦。
现在
this.delegate(this.touchbar, ‘mousedown’, function() {
self.backClicked();
});
好像mousedown没有被捕抓到,是什么原因呢
没有mousedown,直接用touchstart吧
mouse事件我只提供了 mouseenter、mouseleave和mousemove
mousedown和mouseup没有,直接对应的touchstart、touchend就可以了
touchstart也没法捕捉,我直接复制
http://smart-x.akira-cn.gitpress.org/~docs/07-improved%20event%20model.md
上的代码,发现无法执行……
你把完整的代码发出来看下
应该不会执行不了。。。
感谢大神分享
支持2.2.5么
非常感谢。请教一下。我用的是webStorm。添加到外部库了,接着怎么链接到项目里呀?现在是有代码提示但是运行是找不到的。