logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

记录时间计算bug getDay()的一个坑

getDay() 方法返回的是当前日期是星期几,其中星期日对应的值是 0,星期一是 1,以此类推。因此,使用 getDay() 方法获取到的是星期几的值。对 getDate() 方法和 getDay() 方法的处理进行调整。在修正后的代码中,计算currentDay时 通过 currentDay.value === 0 判断当前是否为星期天,如果是则在计算 startDate 时向后推移两天(从下

文章图片
#bug#javascript
javascript实现倒计时效果(时分秒显示)

* {margin: 0;padding: 0;}div {margin: 200px;}span {display: inline-block;width: 100px;height: 100px;background-

#html#css
超详细轮播图的三种实现方法html+css+javascript

带箭头焦点轮播图js完成版<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Carousel</title><link rel="stylesheet" href="css/index.css"><!-- 先引入animate.

#javascript#css#html5
超详细轮播图的三种实现方法html+css+javascript

带箭头焦点轮播图js完成版<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Carousel</title><link rel="stylesheet" href="css/index.css"><!-- 先引入animate.

#javascript#css#html5
did you register the component correctly? || Make sure that this property is reactive

[Vue warn]: Unknown custom element:- did you register the component correctly? For recursive components, make sure to provide the “name” option.found in—>at src/components/power/Roles.vueat package

Vue项目报错记录解决Property or method “item“ is not defined on the instance

这里要实现显示一个Tabbar栏的效果,v-for=“item in titles”数据传输过去了,但没有展示,报错信息Property or method “item” is not defined on the instance but referenced during render.原因使用了item项,却没有在data()中定义,这里item和index是遍历titles数组的固有属性,

记录,再次运行vue项目报错POST http://127.0.0.1:8888/api/private/v1/login/login

可以打开登录界面,却无法打开登录后界面代码没有问题,查阅资料后是后台服务器没打开删除package-lock.json文件运行npm install再次运行node .\app.js打开phpStudy的数据库使用postman测试显示登录成功,后台数据库连接成功,再次运行Vue项目,登录界面成功...

到底了