以下是 swiper 的参数:
mySwiper = Swiper('.swiper-container', {
loop: false,
speed: 800,
slidesPerView: 'auto',
grabCursor: true,
spaceBetween: 2,
initialSlide: 0,
keyboardControl: false,
resizeReInit: true,
autoplayDisableOnInteraction: false,
pagination: '.swiper-pagination',
paginationClickable: false,
nextButton: '.swiper-next',
prevButton: '.swiper-prev'
});
Run Code Online (Sandbox Code Playgroud)
我的目的是将尽可能多的幻灯片放入视图中。照片有不同的宽度和大小,有些是横向模式,有些是纵向模式。
问题:每个视图只显示一张幻灯片。
目标:将尽可能多的幻灯片放入视图中。
有人可以帮助我实现这一目标吗?
这是我的文档,我想向其中添加一个新字段:
{
email_address: 'webmaster@example.com',
password: 'random_password',
first_name: 'John',
last_name: 'Doe',
website: {
main_title: 'My Blog Website',
main_url: 'http://www.example.com'
}
}
Run Code Online (Sandbox Code Playgroud)
目前我正在做:
db.test.update({"email_address": "webmaster@example.com"},
{$set: {"website" : {"registrar": "namecheap"}}})
Run Code Online (Sandbox Code Playgroud)
这会删除网站内的其他字段,而只是添加了这个新的注册商字段。我怎样才能附加到它?