赞
踩
最近做了一个公众号调起JSAPI支付的项目,遇到了一个问题,就是安卓手机能成功支付,苹果手机就无法支付。因为这个无法调试,我就用alert这个返回值,当在苹果手机访问的时候就会弹出undefined,在安卓手机就是一个[object object] 。有没有大佬讲解一下这是为什么吗?
- success: function(res) {
- if (res.confirm) {
- alert(_this.order_id)
- _this.$http.get('/api/index/jsApiPay', {
- "order_id": parseInt(_this.order_id),
- "type": parseInt("3")
- }).then(res => {
- alert(res) //苹果手机alert出来是undefined,安卓手机alert出来的就是一个对象
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。