logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue中转日期字符串

vue中从后端获取到数据之后数据并不是想要的效果如2020年12月13日 12时23分23秒这样的数据为了解决这样的问题特意写了一个方法供大家参考datazh(time){// 替换年let reg=new RegExp('年','g')//g代表全部let newMsg=JSON.stringify(time).replace(reg,'-');// 替换月let reg2=new RegExp

VUE中禁止页面滚动

<div @touchmove.prevent></div>加上@touchmove.prevent则代表这部分代码禁止滚动滑动记录一下

[nodeJS] 报错Request aborted

问题描述:使用nodejs做后端,vue前端来进行开发pc端访问无问题,移动端手机连接局域网进行访问报错 Request aborted解决方案:devServer: {disableHostCheck: true,}在vue项目配置文件中添加disableHostCheck: true,这段代码用这个方法我解决了问题,但是具体什么意思我也不清楚...

VUE中npm run build错误--Unhandled promise rejections are deprecated. In the future, promise rejections

vue打包时报错提示(node:8544) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promi

vue中axios未携带cookie问题

这里好像是被axios限制所以必须加上属性withCredentials=true你也可以在vue中main.js文件夹配置axios的时候配置axios.defaults.withCredentials=true这样你就可以携带cookie了如果你使用了vue中的代理那么你可能还是不行携带cookie具体原因我也不清楚但是解决方案就是:请看这个请求头中的Set-cookie后面是不是还有一个pa

uni-app中h5如何进行代理

在 manifest.json 文件中 源码视图中找到 ”h5“ 属性,在该属性下添加。

文章图片
#uni-app#前端
到底了