|
[App引擎]
关于使用标准文档的代码调用rongYun模块出错
[复制链接]
APP已经添加RongYun模块,代码直接COPY样例代码,但报错,信息为:Cannot read property 'init' of undefined at XXXX.html。不知何解?谢谢各位。
var rong = api.require('rongCloud');rong.init(function(ret, err){ //报错信息就是这行 if (ret.status == 'error') api.toast({ msg: err.code });});
另外,我的config.xml已经有相关rongyun的配置
....
<access origin="*"/>
<feature name="rongCloud">
<param name="appKey" value="xxx我的融云APPKEY"/>
</feature>
</widget>
|
|