> 打開方法
若frame組已存在,則會把該frame組顯示到最前面。frame組打開后,當前頁面加載完成后,頁面會預加載后面指定個數頁面
```
api.openFrameGroup({
name: frames_name,
scrollEnabled: false,
rect: {
x: 0,
y: 0,
w: api.winWidth,
h: api.winHeight - $('#footer').all_height()+1
},
index: false,
preload: 0,
frames: [
{
name: 'home',
url: './html/index/home.html',
}
]
}, function (ret, err) {
});
```
> 關閉方法:
```
api.closeFrameGroup({
name: 'group1'
});
```
> 切換方法:
```
api.setFrameGroupIndex({
name: 'group1',
index: 2
});
```