方法可以用模块去实现, 也可以用api自身的openFrameGroup来实现,
api.openFrameGroup ({
name: 'group1',
background: '#fff',
scrollEnabled: true,//设置滚动
rect: {
x: 0,
y: 0,
w: 'auto',
h: 'auto'
},
index: 0,
frames: [{
name: 'guide1',
url: './html/guide1.html',
bgColor: './image/guide.png'//图片直接作为背景即可
},{
name: 'guide2',
url: './html/guide2.html',
bgColor: './image/guide.png'
}]
}, function(ret, err){
});
打开的guide1和guide2样式需要调一下:
html,
body {
height: 100%;
background: rgba(0, 0, 0, 0);
}
可以在最后一页的body里添加一个按钮去开启应用。