1.0.4 • Published 6 years ago
mobile-type-test v1.0.4
判断手机机型
Install
npm install mobile-type-test -S
Quick Start
let test = require('mobile-type-test');
let mobleType = test();
// 会输出 mi5 mi8 iphoneX 等等
console.log(mobleType);
页面直接引入
<script src="./lib/index.min.js"></script>
let mobleType = testMobile();
// 会输出 mi5 mi8 iphoneX 等等
console.log(mobleType);