更新时间:2022-09-11 08:12:27
关于IE下页面不刷新(手动有OK的问题)
1
2
3
4
5
6
7
|
// 解决IE下有缓存需手动刷新页面问题 start
if (src.indexOf( '?' ) != -1){
src = src + "&random=" + Math.floor(Math.random()*100000);
} else {
src = src + "?random=" + Math.floor(Math.random()*100000);
}
// 解决IE下有缓存需手动刷新页面问题 end
|
动态设置Iframe高度宽度及获取操作内部元素(基于Jquery)
1
2
3
4
|
< iframe src = "" onload = "boxFrame = $(this);boxFrame.width(800);boxFrame.contents().find('.save_btn').hide();" frameborder = "0" id = "newframe" ></ iframe >
< scritp >
boxFrame.contents().find('form:eq(0)').submit(); </ scritp >
|
跳出Iframe
1
2
3
|
< form target = "_parent" ></ form >
< a target = "_parent" ></ a >
/*最核心的,指定target。可使用的参数:_blank、_parent、_self、_top、framename*/
|