[求助]LabelBMFont在浏览器无法显示,报错

这是我的代码

this.labelMeter = new cc.LabelBMFont("10.00mm", "res/meterBF.fnt");
this.labelMeter.anchorX = 1;
this.labelMeter.anchorY = 0;
this.labelMeter.setPosition(cc.pAdd(this.gamePadSprite.getPosition(), cc.p(this.gamePadSprite.width-80, this.gamePadSprite.height-50)));
this.animLayer.addChild(this.labelMeter);
```


在PrebuiltRuntimeJs里显示正常,但在浏览器就无法显示,console报错“"cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"” 还有“TypeError: node.textureAtlas is null”

请问是不是我漏了什么?本人第一次用Cocos2d-js框架开发。

问题解决了。原来是plist文件和png文件没有添加到resource.js文件。

:14: 多谢多谢,真是这个问题~ 必须提前加载,直接引用是不行的