url
类型
索引
属性(properties)
_rawAssets
Object
The base url of raw assets.
方法
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 |
参数列表
url
String
示例
---
var url = cc.url.raw("textures/myTexture.png");
console.log(url); // "resources/raw/textures/myTexture.png"