記錄一些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 ...