h5接入微信支付
1.需要微信授权登录,先通过链接来获取到code
function getQueryString(code) {
var reg = new RegExp("(^|&)" + code + "=([^&]*)(&|$)");
var result = window.location.search.substr(1).match(reg);
return result ? decodeURIComponent(result[2]) : null;
}
2.code传给
原创
2020-11-19 17:08:43 ·
1050 阅读 ·
1 评论