The early decision I gave was based on UA, which has a unique Chrome string.
var isChrome = window.navigator.userAgent.indexOf("Chrome") !== -1
Today I discovered that chrome still has some unique things. Based on them, we can make feature-based judgments.
var isChrome = window.google && window.chrome
Of these two things, the former has its local database gears, and the latter has two attributes, csi and loadTimes.
For more information, please refer to
JavaScript to determine browser type and version Use JavaScript to determine whether the user is using IE6 or IE7