与JavaScript中Python的sys.exit()等效
我使用SL4A在Android中执行Python/Javascripts。有人能告诉我JavaScript中Python的与JavaScript中Python的sys.exit()等效,javascript,python,sl4a,Javascript,Python,Sl4a,我使用SL4A在Android中执行Python/Javascripts。有人能告诉我JavaScript中Python的sys.exit()等价物吗?谢谢 您可以这样做: throw "stop execution";
sys.exit()
等价物吗?谢谢 您可以这样做:
throw "stop execution";