摘要: 我这边原因是用了axios, 它不兼容安卓低版本。 解决方案:npm install --save-dev es6-promise兼容axiosrequire('es6-promise').polyfill()import axios from 'axios' 然后再次打包,问题解决。 阅读全文
posted @ 2019-01-31 10:47 wjw_Dream 阅读(2093) 评论(0) 推荐(1) 编辑
摘要: closeMoveTo() { var wvs = plus.webview.all() //所有窗口对象 var self = plus.webview.currentWebview() //当前窗口对象 for(var i = 0, len = wvs.length; i < len; i++) { // 首页以及当前窗口对象,不关闭; if(... 阅读全文
posted @ 2019-01-31 10:43 wjw_Dream 阅读(1173) 评论(0) 推荐(0) 编辑
摘要: //获取url参数 function getQueryString(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null)return decodeURIComponent(r[2]);... 阅读全文
posted @ 2019-01-31 10:39 wjw_Dream 阅读(200) 评论(0) 推荐(0) 编辑