浏览器内核判断
const userAgent = navigator.userAgent;
const isWechat = /MicroMessenger/.test(userAgent);
const isAlipay = /AlipayClient/.test(userAgent);
const isChrome = /Chrome/.test(userAgent) && /Google Inc/.test(navigator.vendor);
const isFirefox = /Firefox/.test(userAgent);
con...