zoukankan      html  css  js  c++  java
  • js技巧汇总

    1、window.open()打开一个子页面,在子页面关闭时刷新父页面
    子页面关闭事件代码:window.opener.location.href=window.opener.location.href;window.close();
    2、window.showModelessDialog(url,winName,{})打开一个子页面,在子页面关闭时刷新父页面
    var win = window.dialogArguments; window.close(); win.location.reload();
    3、window.showModelessDialog(url,window,{})打开一个子页面,在子页面关闭时关闭父页面
    // 父页面的showModelessDialog“窗口名称”直接传window                                                                                           var win = window.dialogArguments; window.close(); win.close();                                                                           
  • 相关阅读:
    [ZJOI2010]count 数字计数
    小雄数
    简单筛法函数
    [Noip模拟题]lucky
    欧拉线筛
    Intern Day78
    CodeForces1360C
    CodeForces1373B
    Intern Day78
    Intern Day78
  • 原文地址:https://www.cnblogs.com/xtreme/p/4208538.html
Copyright © 2011-2022 走看看