我正在使用Firebase数据库加载一些数据,但我正在将数据加载到owl旋转木马(“innerHTML )中的<span>元素的一个中,只有当我单击旋转木马的左箭头时才加载数据。我用<p>元素测试了这个问题,它立即加载了我的加载代码如下:
<script type="module">
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/fi
我有一个很奇怪的问题,我不能把我的手指。
我使用的是,它进行了令人敬畏的页面转换,是一个可爱的旋转木马。问题是,它使您的页面成为SPA,因此您必须重新编写init脚本。告诉你真相真是太痛苦了。
在我的barba.js文件中,我在顶部调用了一个旋转木马
import barba from "@barba/core";
import { homeCarousel } from './swiper.js'
function initCarousel() {
if (document.querySelector('.swiper-container
我只看到过一些复杂的JS插件,当加载页面时,它不会加载这个函数。虽然另一个旋转木马可以正常工作。
<div class="feedhead news clearfix">News</div>
<div class="newscol-items swiper-wrapper">
<?php
//Instead do this using a WP Query and loop.
$queryargs = array(