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上报错 #202

Closed
nacxy opened this issue Feb 3, 2021 · 4 comments
Closed

ios上报错 #202

nacxy opened this issue Feb 3, 2021 · 4 comments

Comments

@nacxy
Copy link

nacxy commented Feb 3, 2021

ios 上这段代码报错,
i.browser=navigator.userAgent.toLowerCase().match(/(msie|firefox|chrome|opera|version).?([\d.]+)/)[1].replace(/version/,"safari")
navigator.userAgent.toLowerCase() 运行出的是appleWebkit
navigator.userAgent.toLowerCase().match(/(msie|firefox|chrome|opera|version).
?([\d.]+)/)[1] 运行为null
这种怎么解决,是否ios不能用这个框架?

@baukh789
Copy link
Owner

baukh789 commented Feb 3, 2021

你指的是手机端的ios还是macos,这个组件是pc端使用的

@nacxy
Copy link
Author

nacxy commented Feb 3, 2021

ipad,�那这个...不会支持么?

@baukh789
Copy link
Owner

baukh789 commented Feb 3, 2021

移动端的交互与PC不相同,这个组件是在PC端来使用的。不过你如果有兴趣,可以fork该项目进行改造。

@nacxy
Copy link
Author

nacxy commented Feb 3, 2021

好的,谢谢

@nacxy nacxy closed this as completed Feb 3, 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

2 participants