Skip to content

chenmk0179/commonJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

mingkun.chenmingkun.chen
mingkun.chen
and
mingkun.chen
Oct 9, 2022
fd331ab · Oct 9, 2022

History

4 Commits
Oct 9, 2022
Oct 9, 2022

Repository files navigation

commonJS

常用 JS 工具类整理 例,vue 项目中,可以直接放在 utils 文件夹下,在 main.js 中引入; 绑在在原型中,直接使用。 示例: step1:main.js;

import BaseCommon from '@/utils/baseCommon';

Vue.prototype.$baseCommon = BaseCommon;

step2:其他页面调用(使用):

this.$baseCommon.userBrowser();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published