Skip to content

Commit

Permalink
删除一些没必要的代码
Browse files Browse the repository at this point in the history
  • Loading branch information
zwhGithub committed Mar 8, 2018
1 parent 84444dc commit 4db2d32
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/swiper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@
this.slidesLength = SlideDom.length
var cloneDom1 = SlideDom[0].cloneNode(true) //向最后append
var cloneDom2 = SlideDom[this.slidesLength - 1].cloneNode(true) //向最前append
console.log(document.querySelector('.' + this.className))
document.querySelector('.' + this.className).insertBefore(cloneDom2, SlideDom[0])
document.querySelector('.' + this.className).appendChild(cloneDom1)
this._width = document.querySelector('.' + this.className).offsetWidth
Expand Down

0 comments on commit 4db2d32

Please sign in to comment.