Commit b4ad8a5d authored by 李维's avatar 李维

修复代码异常

parent 6de35be4
...@@ -31,11 +31,11 @@ cc.Class({ ...@@ -31,11 +31,11 @@ cc.Class({
// onLoad () {}, // onLoad () {},
obj: null, obj: null,
start () { start () {
obj = {a: 1, b: ()=>{console.log("1")},c:[1,1,1]}; this.obj = {a: 1, b: ()=>{console.log("1")},c:[1,1,1]};
console.log("========== liwei_test_001 =========="); console.log("========== liwei_test_001 ==========");
console.log(obj.a); console.log(this.obj.a);
obj.b() this.obj.b()
console.log(obj.c); console.log(this.obj.c);
console.log("========== liwei_test_001 =========="); console.log("========== liwei_test_001 ==========");
}, },
......
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