vue.js - android環(huán)境下在vue中引入vux.js 報錯。
問題描述
代碼如下:
<template> <p><group> <x-input placeholder='I’m placeholder' placeholder-align='right'></x-input></group> </p></template><style>@import ’~vux/dist/vux.css’;</style><script> import { XInput, Group, XButton, Cell } from ’vux/dist/vux.js’ export default { components: { XInput, Group, XButton, Cell } }</script>
編譯過后在IE顯示正常,但是在android環(huán)境下報錯如下:
**03-24 19:31:56.204 10055-10134/com.example.weex.hackernews D/weex: createInstance >>>> instanceId:1, options:{}, data:null03-24 19:31:56.204 10055-10134/com.example.weex.hackernews D/weex: callJS >>>> instanceId:1function:createInstance03-24 19:31:56.632 10055-10134/com.example.weex.hackernews E/jsengine: ReportException :undefined:3949: ReferenceError: window is not defined03-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), <anonymous>:3949:27806) at Object.e.__esModule.default (eval at callFunction ((weex):8676:16), <anonymous>:3949:27900) at t (eval at callFunction ((weex):8676:16), <anonymous>:3943:272) at Object.t.isNumber (eval at callFunction ((weex):8676:16), <anonymous>:3948:19699) at t (eval at callFunction ((weex):8676:16), <anonymous>:3943:272) at Object.e.__esModule.default (eval at callFunction ((weex):8676:16), <anonymous>:3951:12900) at t (eval at callFunction ((weex):8676:16), <anonymous>:3943:272) at Object.eval (eval at callFunction ((weex):8676:16), <anonymous>:3949:36) at t (eval at callFunction ((weex):8676:16), <anonymous>:3943:272) at Object.eval (eval at callFunction ((weex):8676:16), <anonymous>: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**
求解答,謝謝!
問題解答
回答1:目前 vux 并不支持在 weex 中使用。
相關(guān)文章:
1. MySQL的聯(lián)合查詢[union]有什么實際的用處2. PHP訂單派單系統(tǒng)3. 怎么能做出標(biāo)簽切換頁的效果,(文字內(nèi)容隨動)4. mysql - sql 左連接結(jié)果union右連接結(jié)果,導(dǎo)致重復(fù)性計算怎么解決?5. python中def定義的函數(shù)加括號和不加括號的區(qū)別?6. mysql 遠程連接出錯10060,我已經(jīng)設(shè)置了任意主機了。。。7. php多任務(wù)倒計時求助8. 數(shù)組排序,并把排序后的值存入到新數(shù)組中9. 默認(rèn)輸出類型為json,如何輸出html10. mysql時間格式問題
