我试图通过从瓶子中返回以下内容来关闭当前的选项卡/窗口:
@route('/configure', method='POST')
def configure():
#do other things here...
return '''<script>window.close();</script>
<p>You can close this window if it does not automatically close.</p>'''
但它不起作用。如何让它自动关闭?