url 类型

模块: cc父模块: cc

索引

属性(properties)
方法
  • raw Returns the url of raw assets, you will only need this if the raw asset is inside the "resources" folder.

Details

属性(properties)

_rawAssets
The base url of raw assets.
metadescription
类型Object
定义于cocos2d/core/platform/url.js:36



#### 方法



##### raw


Returns the url of raw assets, you will only need this if the raw asset is inside the "resources" folder.

metadescription
返回String
定义于cocos2d/core/platform/url.js:58
参数列表
示例
  1. ---
  2. var url = cc.url.raw("textures/myTexture.png");
  3. console.log(url); // "resources/raw/textures/myTexture.png"