Coder Social home page Coder Social logo

jquery.ua's Introduction

jquery.ua


spm version

jquery.ua 插件判断360、chrome、firefox、IE浏览器的UA、版本、外壳等信息


Install

$ spm install jquery.ua --save

Usage

It is very easy to use this module.

var $ = require('jquery');
require('jquery.ua')($);

Api

set ua string

// default is navigator.userAgent
$.ua();
$.ua('string');

get ua string

$.ua().ua;

get ua params

$.ua().platform;
$.ua().browser;
$.ua().engine;

$.ua().isWebkit;
$.ua().isGecko;
$.ua().isTridentisTrident;

get brower params

// 是否为原版 chrome
$.ua.isChrome;

// 是否为 firefox
$.ua.isFirefox;

// 是否为 360 安全浏览器
$.ua.is360se;

// 是否为 360 极速浏览器
$.ua.is360ee;

// 是否为猎豹浏览器
$.ua.isLiebao;

// 是否为搜狗浏览器
$.ua.isSougou;

// 是否为 QQ 浏览器
$.ua.isQQ;

// IE 浏览器版本值
$.ua.ie;

// 是否为 IE 浏览器
$.ua.isIe;

// 是否为 IE6 浏览器
$.ua.isIe6;

// 是否为 IE7 浏览器
$.ua.isIe7;

// 是否为 IE8 浏览器
$.ua.isIe8;

// 是否为 IE9 浏览器
$.ua.isIe9;

// 是否为 IE10 浏览器
$.ua.isIe10;

// 是否为 IE11 浏览器
$.ua.isIe11;

Demo

http://spmjs.io/docs/jquery.ua/examples/index.html

History

http://spmjs.io/docs/jquery.ua/history.html

jquery.ua's People

Contributors

cloudcome avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.