大家好,最近在angular4的使用过程中遇到了一个问题。如何实现类似于window.close();的功能?
在网上查的很多方法都不能实现,要么是跳转后因为路由又回到首页,要么就是报错Scripts may close only the windows that were opened by it.
请教大家一下解决办法。
...全文
1203回复打赏收藏
关于在angular中关闭当前页面的问题
大家好,最近在angular4的使用过程中遇到了一个问题。如何实现类似于window.close();的功能? 在网上查的很多方法都不能实现,要么是跳转后因为路由又回到首页,要么就是报错Scripts may close only the windows that were opened by it. 请教大家一下解决办法。