用addImageAsync报错http://localhost:63343/hello/http://www.co...
var url = "http://www.cocos2d-x.org/images/logo.png";
cc.textureCache.addImageAsync(url, this.texFirstLoaded, this);
texFirstLoaded: function(texture) {
if (!texture)
{
this._labelFirst.setString("texFirstLoaded fail");
console.log("texFirstLoaded fail")
return;
}
if (this.sprite) {
this.removeChild(this.sprite);
}
this.sprite = new cc.Sprite(texture);
this.sprite.x = cc.winSize.width/2;
this.sprite.y = cc.winSize.height/2;
this.addChild(this.sprite);
this._labelFirst.setString("texFirstLoaded successful");
},
为什么会有http://localhost:63343/hello,怎么去掉