cc.Class({ extends: cc.BaseClass, properties: { text:cc.Label, }, // LIFE-CYCLE CALLBACKS: ctor: function () { this.m_Key = []; this.m_Text = []; this.m_nNeedUpdate = 0; }, start: function () { // let webUrl = window.PHP_HOME + '/Rules.php?&GetMark=101'; // WebCenter.GetData(webUrl, null, function (data) { // if (data == null) return; // //let Res = JSON.parse(data); // // console.log('获取规则--', data) // this.text.string = data; // }.bind(this)); }, OnShowView: function () { this.m_nNeedUpdate = 0; ShowO2I(this.node); }, OnHideView: function () { this.unschedule(this.OnTimer_DelayShow); this.m_nNeedUpdate = 0; HideI2O(this.node); }, });