Get human readable device/browser combination from user agent string?
With LinkedIn you can see a list of sessions, and sign them out from a distance.
Within that list you can see a human readable way what kind of device / browser combination you used for that session.
The current state of UserAgent strings is quite a mess.
Question: Is there a reliable way (or library) to extract this information clean and reliable from the user agent string?
What I'm trying to prevent
One big hairy ball of spaghetti with 30 if ( str.contains("yadadaya")
under each other that have to tested and that will most likely break or go out of date really fast.
Looking for something preferably in C# or JavaScript
你可能想要像ua-parser-js或uap-csharp这样的东西。
链接地址: http://www.djcxy.com/p/86672.html上一篇: 删除NumPy中的所有其他元素