Hi All
1,更新至cocos2dx js rc3 出现个问题 关于 cc.loader.load
cc.loader.load(report,function(results){
cc.log("INFO::播放战报:"+report); // results is null
var msg = JSON.stringify(results);
//cc.log("INFO:REPORT IS:" + msg);
});
```
回调到方法里 results是空的 之前我提过这个bug 在rc2修复过 见
https://github.com/pandamicro/cocos2d-js/commit/984c9b48385a65ff58f6eafb4e6735b9a505f4d8
是否跟异步加载回调状态有关?
有人能帮我们?
2,关于EditBox 我也提过这个bug 但是没回应
这个问题大概是 如果我做了一个登录界面 使用EditBox 然后加入弹出框功能 弹出框出来后 EditBox会穿透弹出框 出现在弹出框上
在native上没有问题 只是存在于web上 见

代码见下
var EditTestLayer = cc.Layer.extend({
_userName:null,
init:function(){
var bRet = false;
if(this._super()){
this._userName = new cc.EditBox(cc.size(459, 54), new cc.Scale9Sprite("res/start_account.png"));
this._userName.x = cc.winSize.width/2;
this._userName.y = 250;
this._userName.setFontSize(12);
this._userName.setPlaceHolder("Enter UserName");
this._userName.setDelegate(this);
this._userName.setMaxLength(20);
this.addChild(this._userName);
bRet = true;
}
return bRet;
}
});
var ColorLayer = cc.Layer.extend({
init:function(){
var bRet = false;
if(this._super(cc.color(0, 0, 255, 255), cc.winSize.width, cc.winSize.height)){
var sprite = cc.Sprite.create("res/HelloWorld.png");
sprite.attr({x:cc.winSize.width/2,y:cc.winSize.height/2});
this.addChild(sprite);
bRet = true;
}
return bRet;
}
});
ColorLayer.create = function(){
var colorLayer = new ColorLayer();
if(colorLayer && colorLayer.init()){
return colorLayer;
}
return null;
};
EditTestLayer.create = function(){
var etl = new EditTestLayer();
if(etl && etl.init()){
return etl;
}
return null;
};
EditTestLayer.scene = function(){
var sc = cc.Scene.create();
sc.addChild(EditTestLayer.create());
sc.addChild(ColorLayer.create());
return sc;
};
```
有人能帮助我们?
学习啦, 楼主好厉害。。