帖子
帖子
用户
博客
课程
显示全部楼层
119
帖子
0
勋章
822
Y币

[插件使用] jpush激光推送为啥老提示 cannot call method 'init' of undefind at jpu...

[复制链接]
发表于 2015-3-16 17:04:04

jpush激光推送为啥老提示 cannot call method 'init' of undefind at jpush.html

代码:
var ajpush = null;
    apiready = function(){
                ajpush = api.require('ajpush');
                ajpush.init(function(ret, err){
                                if(ret && ret.status){
                                        //alert('操作成功!');
                                }else{
                                        //alert('操作失败!');
                                }
                        });

}
云编译有效
26
帖子
1
勋章
1024
Y币
提示过后还是能推送的
0
帖子
0
勋章
107
Y币
一键真机会包这个错误,要云编译正式版安装才行
您需要登录后才可以回帖 登录

本版积分规则