记录一些coco简单的属性和动作,位置,锚点,透明度,大小,移动等 属性 if true var sprite new cc.Sprite res.Sp var sprite new cc.Sprite res.Sp sprite .attr x: , 位置 y: , anchorX: . , 锚点 anchorY: . , opacity: 透明度 sprite .scale . 缩放比例 th ...
2015-02-07 16:29 0 3713 推荐指数:
...
查询节点 单一节点:document.getElementById、document.getElementByTagName、document.getElementByName、document.getElementByClassName 可选节点:document.querySelector ...
节点操作 1.节点查找 document.getElementById,document.getElementByTagName,document.getElementByName ,document.getElementByClassName ...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose. ...
在官方网站上,对cocos2d所提供的动作(action)转化(Transformations)以及效果(effect)做了如下分类 Basic actions Composition actions Ease actions Effect actions Special ...
常用的节点属性操作方法 1.setAttribute(name,value):给某个节点添加一个属性 2.getAttribute(name):获取某个节点属性的值。 3.removeAttribute(name):删除某个节点的属性。 例: window.onload ...