问题描述 uni-app在使用mockjs+axios,在web端显示正常,在安卓机上报错: Uncaught (in promise) TypeError: XMLHttpRequest is not a constructor at node_modules/_axios@0.18.0@axios/lib/adapters/xhr.js:20 复现步骤 [复现问题的步骤] 启动 '...' 点击 '...' 查看 [
uni-app 微信小程序 图片验证码获取session 因为微信小程序不支持cookie,所以只能手动保存。 h5模式下尝试的可行方案 https://blog.csdn.net/qq_29287973/article/details/78355558 但是微信小程序运行报“ XMLHttpRequest is not a constructor”,暂未找到解决方案。 尝试着用uniapp的下载方法,完美解决。 //获取验证...
}],// `headers` are custom headers to be sentheaders: {'X-Requested-With':'XMLHttpRequest'},// `params` are the URL parameters to be sent with the request// Must be a plain object or a URLSearchParams objectparams: {ID:12345},// `paramsSerializer` is an optional function in charg...