Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在微信浏览器中无法发起支付 #6

Closed
sharp opened this issue Jul 26, 2016 · 1 comment
Closed

在微信浏览器中无法发起支付 #6

sharp opened this issue Jul 26, 2016 · 1 comment

Comments

@sharp
Copy link

sharp commented Jul 26, 2016

我查了一下,是XMLHttpRequest没有定义, 可能是ajax同源策略造成的

request: function(url, method, requestData,
    successCallback, errorCallback, headers) {
    if (typeof XMLHttpRequest !== 'function') {
      alert('Function XMLHttpRequest is undefined.');
      return;
    }
    var xhr = new XMLHttpRequest();
    if (typeof xhr.timeout !== 'undefined') {
      xhr.timeout = 6000;
    }
@samurai00
Copy link
Contributor

已于 2.1.3 版本 fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants