vue.js - android环境下在vue中引入vux.js 报错。
高洛峰
高洛峰 2017-04-18 09:16:14
[Android讨论组]

代码如下:





编译过后在IE显示正常,但是在android环境下报错如下:

    **03-24 19:31:56.204 10055-10134/com.example.weex.hackernews D/weex: createInstance >>>> instanceId:1, options:{}, data:null
03-24 19:31:56.204 10055-10134/com.example.weex.hackernews D/weex: callJS >>>> instanceId:1function:createInstance
03-24 19:31:56.632 10055-10134/com.example.weex.hackernews E/jsengine:  ReportException :undefined:3949: ReferenceError: window is not defined
03-24 19:31:56.652 10055-10134/com.example.weex.hackernews E/jsengine:  ReportException : ReferenceError: window is not defined
                                                                           at t.default.requestAnimationFrame (eval at callFunction ((weex):8676:16), :3949:27806)
                                                                           at Object.e.__esModule.default (eval at callFunction ((weex):8676:16), :3949:27900)
                                                                           at t (eval at callFunction ((weex):8676:16), :3943:272)
                                                                           at Object.t.isNumber (eval at callFunction ((weex):8676:16), :3948:19699)
                                                                           at t (eval at callFunction ((weex):8676:16), :3943:272)
                                                                           at Object.e.__esModule.default (eval at callFunction ((weex):8676:16), :3951:12900)
                                                                           at t (eval at callFunction ((weex):8676:16), :3943:272)
                                                                           at Object.eval (eval at callFunction ((weex):8676:16), :3949:36)
                                                                           at t (eval at callFunction ((weex):8676:16), :3943:272)
                                                                           at Object.eval (eval at callFunction ((weex):8676:16), :3943:756)
03-24 19:31:56.652 10055-10134/com.example.weex.hackernews E/weex: reportJSException >>>> instanceId:1, exception function:createInstance, exception:ReferenceError: window is not defined**

求解答,谢谢!

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

全部回复(1)
大家讲道理

目前 vux 并不支持在 weex 中使用。

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号