logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

VUE中根据后台传的时间戳转换成年月日,时分秒,星期三种格式

后台传过来的时间戳,如果为10位 ,则需要*1000;时间戳为13位的话就不需要*1000。//补位,如果为单数,则在前面加0const formatNumber = n => {n = n.toString()return n[1] ? n : '0' + n}const timestampToYmd=timestamp=>{let date = new Date(timestamp

VUE+cube-ui框架 修改和删除数据

cube-ui框架文档网址:https://didi.github.io/cube-ui/#/zh-CN/docs/action-sheet首先展示页面效果:编辑的时候会获取到你长按的列表的课程名称下面就是代码:<template><div><template v-for="(item,index) in list"><div class="row" :c

使用nvm控制node版本踩坑及问题解决

nvm安装 、nvm控制node.js版本切换

#npm#node.js#vue.js
到底了