本文共 208 字,大约阅读时间需要 1 分钟。
chrome浏览器关闭标签页提示:Scripts may close only the windows that were opened by it.
解决办法:通过open方法进行关闭。
open(location, '_self').close();