<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中转换页面时,它不会在相应的页面中加载/渲染。