Fork me on GitHub

chrome浏览器关闭标签页面

  chrome浏览器关闭标签页提示:Scripts may close only the windows that were opened by it.

  解决办法:通过open方法进行关闭。

open(location, '_self').close();

 

posted @ 2016-01-30 16:06  秋楓  阅读(2189)  评论(0编辑  收藏  举报