Appearance
获取浏览器名称,无法识别时返回 null。
null
可能的返回值包括 chrome、edge、opera、firefox、safari、ie、samsung 和 whale。
chrome
edge
opera
firefox
safari
ie
samsung
whale
import { getBrowserName } from '@base-web-kits/base-tools-web'; const browser = getBrowserName();