0
我使用photoswipe jQuery图库插件。我在控制台中没有错误。我包含了所有必需的js和css。不知道为什么它是空白的。photoswipe.js在codepen中呈现空白
http://codepen.io/eldyvoon/pen/BLWWbW
$(document).on('click','.album_item',function(){
var photosIndex = $(this).closest('.box_album_item').index() - 2;
console.log(photosIndex)
var pswpElement = document.querySelectorAll('.pswp')[0];
var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, pswpAlbum_Items);
gallery.init();
gallery.goTo(photosIndex);
});