🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
> 打开方法 若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 }); ```