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.

meta description
类型 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.

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

条与 "" 相匹配的结果

    没有与 "" 匹配的结果