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

多客户端判断 #21

Open
Tronzo opened this issue May 25, 2017 · 0 comments
Open

多客户端判断 #21

Tronzo opened this issue May 25, 2017 · 0 comments

Comments

@Tronzo
Copy link
Owner

Tronzo commented May 25, 2017

`e = event;
var client = navigator.userAgent;
return client .indexOf("Android") > -1 ? e.platform = "android": /iPhone|iPad|iPod/.test(client ) ? e.platform = "ios": /Windows Phone|WPDesktop/.test(client ) ? e.platform = "winphone": e.platform = "pc";

browser version:
qq:client.match(/QQ/([\d.]+)/);
wx:client.match(/MicroMessenger/([\d.]+)/);
other;
`

@Tronzo Tronzo changed the title 多客户端判断 多用户户端判断 May 25, 2017
@Tronzo Tronzo changed the title 多用户户端判断 多用户端判断 May 25, 2017
@Tronzo Tronzo changed the title 多用户端判断 多客户端判断 Mar 9, 2021
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

1 participant