新建了个HelloWorld，无改动，运行卡读取条

绿茶犷野
Sat, 18 Nov 2017 07:09:34 +0000

cc.Class({
extends: cc.Component,

properties: {
    label: {
        default: null,
        type: cc.Label
    },
    // defaults, set visually when attaching this script to the Canvas
    text: 'Hello, World!'
},

// use this for initialization
onLoad: function () {
    this.label.string = this.text;
},

// called every frame
update: function (dt) {

},

});

就是官方的代码呀 没改

阅读整个主题