- 博客(9)
- 收藏
- 关注
原创 background-image:url(“data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D‘https%3A%2F%2Fsiteproxy.ruqli.workers.dev%3A443%2Fhttp%2Fwww.w3.org%2F2
css:修改已有的svg色值如图即可直接改变svg的色值
2021-03-15 17:31:35
5346
原创 Vue使用md5加密
1、安装md5npm install --save js-md52、全局引入(main.js)import md5 from 'js-md5';Vue.prototype.$md5 = md5;3、组件中使用this.$md5('your password')
2021-02-26 11:52:10
276
原创 Vue报错:Uncaught (in promise) TypeError: Cannot read property ‘$message‘ of undefined
Vue报错:Uncaught (in promise) TypeError: Cannot read property ‘$message’ of undefinedthis指向问题修改:let that = this
2021-02-26 11:46:33
2067
原创 npm换源淘宝镜像
运行npm install -g cnpm --registry=https://registry.npm.taobao.org检测cnpm -v
2021-01-22 11:30:32
170
原创 cnpm : 无法加载文件 C:\Users\Lenovo\AppData\Roaming\npm\cnpm.ps1,因为在此系统上禁止运行脚本。
问题:安装淘宝镜像后,在cnpm时报错解决:1.以管理员身份运行power shell(备注:右键win标,选择 “Windows PowerShell(管理员)”打开即可)2.输入 set-ExecutionPolicy RemoteSigned 回车3.输入 A 或者 Y 回车成功后重新尝试cnpm就可以了...
2021-01-22 11:26:58
1783
原创 CSS单行||多行文本溢出显示省略号
1、单行文本溢出{ overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }2、多行文本溢出省略{ display: -webkit-box; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}ps:有的需要加width属性
2020-05-15 18:18:43
173
原创 把本地的VUE项目上传到远程git存储库
1、初始化git的本地仓库git init2、添加README.md文件git add README.md3、提交git commit -m "my-commit"4、添加项目并连接远程仓库git remote add origin [email protected]:projectName.vue5、推上去(master为分支名称)git push -u origin master...
2020-05-15 13:53:01
881
原创 VUE利用moment将后台返回时间戳转成日期
参考:https://www.cnblogs.com/panax/p/10932550.html1.下载安装依赖包npm install -save moment2.在mian.js引入moment import moment from 'moment' Vue.prototype.$moment = 'moment'3.在main.js 设置全局过滤器Vue.filter('moment', function (value, formatString) { formatString =
2020-05-14 19:21:39
1263
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人