zoukankan      html  css  js  c++  java
  • as3调用js,关闭当前页面

    as3 代码:

    1 import flash.external.ExternalInterface;
    2 ExternalInterface.call("launchClose");

    JS代码:

    <script language="JavaScript" type="text/javascript">
         function launchClose() {
               window.opener=null;//禁止关闭窗口的提示
               window.open('','_self');
               window.close();
        }
    </script>
    

      

  • 相关阅读:
    LeetCode OJ
    LeetCode OJ
    LeetCode OJ
    linux tips
    vim more
    vim basic
    cut
    paste
    uniq
    Linux的用户
  • 原文地址:https://www.cnblogs.com/wqing/p/2548722.html
Copyright © 2011-2022 走看看