liangyutest
v1.0.1
Published
A Vue.js project
Downloads
4
Readme
vuetest
A Vue.js project
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
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("张三");
``
————————————————
版权声明:本文为CSDN博主「白驹过隙时光荏苒」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_32090185/article/details/100974466