獲取ua(user Agent)

調試中有時候會使用到ua,記錄下獲取方式 1 直接訪問 https://www.ip138.com/useragent/ 不論是手機還是電腦,打開即可看到 2 瀏覽器直接console輸入  alert(navigator.userAgent)  也可以直接獲取到
相關文章
相關標籤/搜索