【文件属性】:
文件名称:ist的matlab代码-useragent:实现浏览器检测(»Useragent检测«)
文件大小:37KB
文件格式:ZIP
更新时间:2021-05-26 07:36:17
系统开源
是的matlab代码用户代理
附加组件有助于识别终端设备。
除了通过用户代理类缩短的应用程序外,还可以直接使用提供的供应商类。
通过用户代理类的应用程序:
检查当前设备是智能手机还是平板电脑
if
(useragent::
isMobile
())
{
//...
}
检查当前设备是否为智能手机
if
(useragent::
isSmartphone
())
{
//...
}
检查当前设备是否为平板电脑
if
(useragent::
isTablet
())
{
//...
}
检查当前浏览器是否为Firefox
if
(useragent::
isBrowserFirefox
())
{
//...
}
检查当前浏览器是否为Opera
if
(useragent::
isBrowserOpera
())
{
//...
}
检查当前浏览器是否为Safari
if
(useragent::
isBrowserSafari
())
{
//...
}
检查当前浏览器是否为Chrome
if
(useragent::
isBrowserChrome
())
{
//...
}
检查当
【文件预览】:
useragent-master
----LICENSE(1KB)
----README.md(1KB)
----vendor()
--------Browser.php(64KB)
--------Mobile_Detect.php(81KB)
----lib()
--------class.useragent.php(2KB)
----package.yml(112B)