企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
> 打开方法 若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 }); ```