首先将存放图片最外层文件夹命名为resources changeBj: function (){ var url = ‘globalUI/video/gVideoPlayClick‘; var _this = this; cc.loader.loadRes(url,cc.SpriteFrame, function (err,spriteFrame) { _this.isPlay.spriteFrame =
首先将存放图片最外层文件夹命名为resources
changeBj:
function(){
var url = ‘globalUI/video/gVideoPlayClick‘;
var _this = this; cc.loader.loadRes(url,cc.SpriteFrame,function(err,spriteFrame)
{
_this.isPlay.spriteFrame = spriteFrame;
});
}