牟骏荣博客


  • 首页

  • 安卓学习

  • Linux学习

  • 前端

  • 服务端

  • Python

javascript中Windows.close无效完美解决

Posted on 2018-09-14 | In 前端
  • 一般的窗口关闭的JS如下写法:

    1
    window.close()
  • 但是呢,chrome,firefox等中有时候会不起作用。改为下面的写法:

    1
    2
    3
    window.open("about:blank","_self").close()  
    window.open("about:blank","_self").close()
    //2选一即可
# close
javascript图形验证码大全
anglar JS使用两层ng-repeat嵌套使用,分辨$index

牟骏荣

52 posts
11 categories
57 tags
loading css3 动态特效 android View angular drawable dom Scroll 鼠标拖动 express nodejs git 前端 ubuntu linux ionic relativelayout 相对布局 VSCode webview RecyclerView javascript nginx ueditor nodeJs shell chrome gitee VUE linearlayout 瀑布流 实例 php GPS 工具类 mongodb 百度地图 demo echart 图标 资源 Promise python 爬虫 webstorm js django sql 正则表达式 mongo intput 预览图片 验证码 close phone scroll
© 2019 牟骏荣