开发者社区> 问答> 正文

jsapi should not callselectorStringgetUUIDtoerrorCode7

jsapi should not call,selectorString = getUUID:to: errorCode:7
这个是什么问题啊,貌似只要是 device.base下面的都是这个问题

展开
收起
摸摸哒、 2016-06-13 16:24:56 3944 0
2 条回答
写回答
取消 提交回答
  • 回 1楼识器的帖子
    $.ajax({
            type : 'get',
            url : 'servlet/configServlet',
            success : function(data) {
                console.log(data);
                data = JSON.parse(data);
                dd.config.agentId = data.agentId;
                dd.config.corpId = data.corpId;
                dd.config.nonceStr = data.noncestr;
                dd.config.timeStamp = data.timestamp;
                dd.config.signature = data.signature;
            },
            error : function(XMLHttpRequest, textStatus, errorThrown) {
                alert(errorThrown);
            },
        });
        dd.config({
            agentId : '', // 必填,微应用ID
            corpId : '',
            timeStamp : '', // 必填,生成签名的时间戳
            nonceStr : '', // 必填,生成签名的随机串
            signature : '', // 必填,签名
            jsApiList : [ 'device.notification.alert',
                    'device.notification.confirm','biz.chat.chooseConversationByCorpId','biz.chat.pickConversation',
                    'runtime.info','runtime.permission.requestAuthCode','device.base.getUUID',
                    'device.base.getInterface',
                    'device.nfc.nfcRead',
                    'device.launcher.checkInstalledApps',
                    'device.connection.getNetworkType',
                    'biz.cspace.saveFile',
                    'device.notification.prompt',
                    'device.notification.vibrate',
                    'device.notification.showPreloader',
                    'device.notification.hidePreloader'
                    ]
    2016-06-13 19:36:22
    赞同 展开评论 打赏
  • dd.config代码怎么写的呢?

    -------------------------

    参考下我上个帖子给你的回复

    2016-06-13 17:13:19
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Why you should care about data 立即下载
Froma single droplet toafull b 立即下载
Why you should care about data layout in the file system 立即下载