关于前端:记遇到的bug

git reset HEAD 的时候报错

warning: LF will be replaced by CRLF in h.txt.
The file will have its original line endings in your working directory.

解决:运行命令

git commit --allow-empty -n -m "Initial commit"

应该是因为git版本的问题

swiper滑动异样的问题

解决办法: 加上这两个属性

<swiper :options="swiperOption" class="swiper-box" ref="mySwiper">

data(){
return {
    swiperOption:{
    observer:true,//批改swiper本人或子元素时,主动初始swiper
    observeParents:true
}
}
}

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理