Commit f8ac4bb8 authored by liujiangnan's avatar liujiangnan

debug

parent 87f11887
...@@ -65,13 +65,13 @@ export class MyCocosSceneComponent extends cc.Component { ...@@ -65,13 +65,13 @@ export class MyCocosSceneComponent extends cc.Component {
// this.preloadItem(); // this.preloadItem();
// } // }
let getData = this.getData.bind(this); // let getData = this.getData.bind(this);
getData((data) => { // getData((data) => {
this.log('data:' + data); // this.log('data:' + data);
this.data = data || this.getDefaultData(); // this.data = data || this.getDefaultData();
this.data = this.translateData(this.data.rows); // this.data = this.translateData(this.data.rows);
this.preloadItem(); // this.preloadItem();
}) // })
} }
getData(cb) { getData(cb) {
......
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