|
[App引擎]
怎样实现切换FrameGroup时重新加载frame中数据
[复制链接]
首页 api.openFrameGroup 打开了几个页面,底部有几个tab,点击之后调用api.setFrameGroupIndex 切换页面但似乎只会加载一次数据,我想每次点击tab的时候都刷新该frame页面的数据,请问这个该怎么实现啊
function funIniGroup(index){
var eFootLis = $api.domAll('#footer li'),
frames = [];
for (var i = 1,len = eFootLis.length; i <= len; i++) {
frames.push( {
name: 'frame'+i,
url: './html/tab'+i+'.html',
bgColor : 'rgba(0,0,0,.2)',
bounces:false,
reload:true,
} )
}
api.openFrameGroup({
name: 'group',
scrollEnabled: false,
crollEnabled:true,
rect: {
x: 0,
y: 0,
w: api.winWidth,
h: $api.dom('#main').offsetHeight
},
index: index,
frames: frames
}, function (ret, err) {
console.log(JSON.stringify(ret));
});
}
每次切换时是可以触发 console.log(JSON.stringify(ret));事件,但是不知道怎样触发frame中数据刷新
|
|