0.0.2 • Published 1 month ago

yykj-tools v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 month ago

testpublish

演示上传npm包

快速上手

安装

npm install testpublish

全局注册(在main.js文件里注册)

import testpublish from 'testpublish';
global.testpublish = testpublish;

局部注册(在你所使用的vue里注册)

import testpublish from 'testpublish';

例子

姓名脱敏

let str = testpublish.$hideName("张三");

#目录

<h6 id="hideName">1.姓名脱敏</h6>
```javascript
//返回字符串
let str = testpublish.$hideName("张三");
0.0.2

1 month ago