方法一: 复制代码 代码如下: function checkRe(checkid) { var id = window.parent.getQry("ctrid") + "_"; var values = window.parent.opener.document.getElementById(id ...
分类:
Web程序 时间:
2017-02-01 12:34:21
阅读次数:
258
~~ window.open():打开一个窗口 里面需要放三个参数: 1.打开窗口(网页)的位置; 2.打开的方式(自身页面,新开页面); 其中_blank新开一个窗口 3.打开网页的属性; window.close():关闭一个窗口 window.opener.close:关闭打开的窗口(关闭源窗 ...
//刷新父页面
window.opener.parentCallback();
父页面数据:
functionparentCallback(){
setTimeout(function(){window.location.reload();},1000);
}
分类:
编程语言 时间:
2017-01-22 21:35:31
阅读次数:
213
1.文件 open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None) file:文件路径;其中双斜杠表示转义也可以用反斜杠代替这两个斜杠。 mode:打 ...
分类:
编程语言 时间:
2017-01-07 23:42:08
阅读次数:
457
Javascript 正常取来源网页的URL只要用: 就可以了! 但,如果来源页是Javascript跳转过来的,上边的方法就拿不到了!所以用: opener.location.href 所以,就有了下边的代码: var ref = ''; if (document.referrer.length ...
分类:
Web程序 时间:
2017-01-03 11:43:15
阅读次数:
245
BOM操作 //浏览器对象模型 opener=window.open(页面的url,打开方式) opener.document.body.style.background="red";//把打开的页面背景颜色变成红色,涉及跨域问题 //方法打开一个新的页面,如果打开url为空则打开一个空白页面,如果 ...
分类:
其他好文 时间:
2016-12-28 17:00:57
阅读次数:
143
sublime text 3 安装package contol: 快捷键:ctrl+`进入命令行输入 然后修改host增加 50.116.34.243 sublime.wbond.net 点击Package Control: install packge ...
分类:
其他好文 时间:
2016-12-27 14:02:37
阅读次数:
195
$("input[type='checkbox']:checked",window.opener.document);//适用于打开窗口的父页面元素获取 $("input[type='checkbox']:checked",parent.document);//适用于iframe子页面获取父页面元素 ...
分类:
Web程序 时间:
2016-12-17 13:44:18
阅读次数:
143
#coding:utf-8 import urllib2 def url_user_agent(url): proxy = {'http':'127.0.0.1:8080'} proxy_support = urllib2.ProxyHandler(proxy) # opener = urllib2... ...
分类:
其他好文 时间:
2016-12-15 11:40:26
阅读次数:
271