How to extract the first few characters of user agent in order to use it in regex?

后端 未结 0 1569
长情又很酷
长情又很酷 2020-12-19 06:06

I want to cache desktop and non-desktop user agents separately.

As a back-end I use nuxt with this device-module.

Device module here has the next code:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题