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

ios 9.3.5 typeof XMLHttpRequest='object' ,not 'function', wf!!! #28

Open
jsoncode opened this issue Jan 18, 2017 · 1 comment
Open

ios 9.3.5 typeof XMLHttpRequest='object' ,not 'function', wf!!! #28

jsoncode opened this issue Jan 18, 2017 · 1 comment

Comments

@jsoncode
Copy link

ios 9.3.5 typeof XMLHttpRequest='object' ,not 'function', wf!!!

@nimoc
Copy link

nimoc commented Jan 19, 2017

测试了一下确实挺坑的

alert(typeof XMLHttpRequest)

大部分开源项目中的判断都是 typeof XMLHttpRequest != "undefined"
但是也有一部分是 typeof XMLHttpRequest === "function"
image

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