APICloud学习笔记之Window包含Frame

Window是个框架页面里边包含若干Frame.

 1 apiready = function() {
 2     var header = $api.byId('header');
 3     $api.fixStatusBar(header);
 4     var headerH = $api.offset(header).h;
 5     api.openFrame({
 6         name: 'login_frame',
 7         url: './login_frame.html',
 8         rect: {
 9             x: 0,
10             y: headerH,
11             w: 'auto',
12             h: 'auto'
13         },
14         pageParam: {
15             name: 'test'
16         },
17         bounces: true
18     });
19 };
原文地址:https://www.cnblogs.com/wuhailong/p/6595501.html