UNPKG

lenye_base

Version:

基础方法

18 lines (13 loc) 354 B
'use strict'; require('./ifnodeorbrowser.js'); require('./windowsimulate.js'); require('./ua.js'); var is_mobile = require('./is_mobile.js'); /** * detect PC / Mobile * From https://stackoverflow.com/questions/3514784/what-is-the-best-way-to-detect-a-mobile-device-in-jquery */ function isPC() { return !is_mobile(); } module.exports = isPC;