[Common code 11] js closes the current page and closes the current browser window.

js version

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

can be placed inside the a tag

<a href="javascript:window.opener=null;window.open('','_self');window.close();">关闭</a>

It can also be used in vue, with the secondary confirmation box of elementUI.

Guess you like

Origin blog.csdn.net/qq_51055690/article/details/127923943