Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

Uncaught ReferenceError: cc is not defined

$
0
0

@fengjie505 写道:

(function () {

   if (cc.sys.isNative) { 
    var hotUpdateSearchPaths = cc.sys.localStorage.getItem('HotUpdateSearchPaths'); 
    if (hotUpdateSearchPaths) { 
        jsb.fileUtils.setSearchPaths(JSON.parse(hotUpdateSearchPaths)); 
    }
}

在 webdesktop中添加了这句话就报这样的错误?

Uncaught ReferenceError: cc is not defined
at file:///C:/Users/ZHKJ_FU/Desktop/tutorial-hot-update-master/build/web-desktop/main.js:3:12
at file:///C:/Users/ZHKJ_FU/Desktop/tutorial-hot-update-master/build/web-desktop/main.js:138:3

求高手指点

帖子: 2

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>