1***@qq.com
1***@qq.com
  • 发布:2018-07-05 12:51
  • 更新:2018-07-06 11:55
  • 阅读:1372

离线打包后不触发mui.plusReady()

分类:MUI
mui.init({  
                    });  
                    mui.plusReady(function() {  
                    alert("here");  
                    var xhr_svn = new plus.net.XMLHttpRequest();  
        xhr_svn.onreadystatechange = function() {  
                alert(xhr_svn.readyState);  
        }  
        xhr_svn.open("GET","http://www.inwoold.com/myopic-dev/resources/update_ShortSightednessDoctor.json");//这里的地址是上面json文件的地址    
                xhr_svn.send();   
                    });

hbuilder基座在真机上调试的时候可以打印出来here以及xhr_svn.readyState;
离线打包以后运行不弹出here,说明没有进mui.plusReady();但是也没有报错,请问是什么问题?
我是webapp,安卓的
HBuilder 9.0.8.201806081953
测试手机试了很多种,都是安卓的

2018-07-05 12:51 负责人:无 分享
已邀请:
DCloud_UNI_CHB

DCloud_UNI_CHB

上传一个测试包,我们验证一下

  • 1***@qq.com (作者)

    你好,已经上传至附件,请看一下

    2018-07-06 15:00

  • DCloud_UNI_CHB

    回复 1***@qq.com:你用的是cordova,没把5+ runtime打进去,当然没有plus环境了

    2018-07-06 21:15

  • 1***@qq.com (作者)

    回复 DCloud_UNI_CHB:我根据http://ask.dcloud.net.cn/article/216提供的步骤在eclipse集成了5+,5+ runtime怎么使用呢,有详细的步骤说明吗,我找了一篇说

    html5 runtime运行环境的,但是没有很懂https://blog.csdn.net/xiejunna/article/details/53086574

    2018-07-07 10:22

该问题目前已经被锁定, 无法添加新回复