3 Star 54 Fork 14

Yaohaixiao / dom.js

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
isWebKit.js 417 Bytes
Copy Edit Raw Blame History
/**
* 检测当前浏览器引擎是否为 WebKit 内核
* ========================================================================
* @method isWebKit
* @return {string|boolean}
*/
const isWebKit = () => {
const ua = navigator.userAgent
const matches = ua.match(/AppleWebKit\/(\S*)/)
if (/KHTML/.test(ua)) {
return true
}
return matches && matches[1]
}
export default isWebKit
JavaScript
1
https://gitee.com/yaohaixiao/dom.js.git
git@gitee.com:yaohaixiao/dom.js.git
yaohaixiao
dom.js
dom.js
main

Search

53164aa7 5694891 3bd8fe86 5694891