都没用id
这是欢迎页的initSwiper方法
new Swiper(this.getElementByXid("swiper-welcome"), {touchEnd: function(event){justep.Shell.fireEvent("main2.welcome");});
这是主页的initSwiper方法
var swiper = new Swiper(this.getElementByXid("swiper),{});
欢迎页是在主页的modelLoad方法里使用windowDialog的set({src:require.toUrl()});导入的,然后加载主页的initSwiper方法,但是这样做会导致主页的initSwiper的切换效果无法正常使用,需要刷新后才能正常使用