Mobile detection using navigator.userAgent vs. navigator.platform

前端 未结 0 732
野性不改
野性不改 2021-01-19 16:42

I need to detect whether my web app is running on a desktop or mobile. Googling for this question, I have found two solutions:

  1. Use navigator.userAgent
相关标签:
回答
  • 消灭零回复
提交回复
热议问题