发布时间 | 2020年4月12日 |
---|---|
插件作者 | ICJIA |
一个简单的Vue.js插件,用于检测浏览器名称,版本和用户代理。
1.安装后导入vue-browser-detect-plugin。
import browserDetect from "vue-browser-detect-plugin";
2.注册组件。
Vue.use(browserDetect);
# NPM
$ npm install vue-browser-detect-plugin --save
官网:https://github.com/ICJIA/vue-browser-detect-plugin
演示:https://www.vue365.cn/code_demo.php?id=186
GitHub下载:https://github.com/ICJIA/vue-browser-detect-plugin/archive/master.zip