userAgent 判斷瀏覽器本身的核心是否有相關的關鍵字,聽起來可能有點抽象,看看範例就可以了解。 ... userAgent.match("Safari") //判斷是否為Safari 或Google Chrome.
確定! 回上一頁