页面转换后猫头鹰轮播不呈现

时间:2015-09-30 13:13:32

标签: javascript jquery jquery-mobile jquery-plugins owl-carousel

<link rel="stylesheet" href="css/owl.carousel.css">
<link rel="stylesheet" href="css/owl.theme.css">
<link rel="stylesheet" href="css/owl.transitions.css">
<script type="text/javascript" src="js/owl.carousel.js"></script>
<script type="text/javascript" src="js/owl.carousel.min.js"></script>

<div id="owl-demo" class="owl-carousel owl-theme">
<div><h1>1</h1></div>
<div><h1>2</h1></div>
<div><h1>3</h1></div>
<div><h1>4</h1></div>
<div><h1>5</h1></div>
<div><h1>6</h1></div>
</div>
<script>

var owl = $("#owl-demo");

owl.owlCarousel({
 itemsCustom : [
                   [0, 5],
                   [450, 5],
                   [600, 5],
                   [700, 5],
                   [1000, 5]
                   ],
                   scrollPerPage : true
});


</script>

首次加载并正确渲染轮播。我面临的问题是,在Cordova Project中转换页面时,它不会在相应的页面中加载/渲染。

0 个答案:

没有答案