js 技巧

用于浮窗跳转至父窗口

parent.document.location.href='/xxx/xxx.htm';

取父窗口的元素

window.parent.$('#xxx');

正常跳转

window.location.href = '/xxx/xx.htm';

设置定时跳转

window.setTimeout(function(){
  parent.document.location.href = '/xxx/xxxx.htm';
},1200)

设置DIV内容  $("#divXX").text("xxxx");

返回DIV内容  $("#divXX").text();

原文地址:https://www.cnblogs.com/lanGuo/p/4240094.html