Commit 27834ccb authored by liujiangnan's avatar liujiangnan

debug

parent 8ae59b8f
...@@ -48,7 +48,7 @@ cc.Class({ ...@@ -48,7 +48,7 @@ cc.Class({
this.preloadCount = 0; this.preloadCount = 0;
this.loadedCount = 0; this.loadedCount = 0;
initAir(this); initAir(this);
this.preloadAll(); // this.preloadAll();
}, },
start() { start() {
...@@ -447,14 +447,10 @@ cc.Class({ ...@@ -447,14 +447,10 @@ cc.Class({
reWriteAir() { reWriteAir() {
window.courseware.getData = (callback) => { window.courseware.getData = (callback) => {
let data = null; let data = null;
console.log("1111111111111111111");
if (this.courseItem.data) { if (this.courseItem.data) {
console.log("2222222222222222222");
data = JSON.parse(this.courseItem.data); data = JSON.parse(this.courseItem.data);
console.log("333333333333333", this.courseItem.data);
} }
console.log("44444444444444444"); this.log("===成功调用getData==="+ this.courseItem.data);
this.log("===成功调用getData==="+ data);
callback && callback(data); callback && callback(data);
} }
window.courseware.nextPage = () => { window.courseware.nextPage = () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment