window.close()无效,报错Scripts may close only the windows that were opened by it的问题解决办法

使用open(location, '_self').close();来代替window.close();

posted @ 2017-06-21 11:19  AlanYT  阅读(6743)  评论(0编辑  收藏  举报