quit method
Terminates the application with the exit status status. The parameter code determines if the user is prompted for unsaved changes or not and has one of the values:
0 — prompt about any unsaved changes.
1 — save all modified documents without prompting.
2 — do not prompt about unsaved changes and quit without saving modified documents.
quit( [code [, status]] )
Parameters
int code
[optional] Specifies whether unsaved changes are prompted (0), saved without prompting (1), or discarded without prompting (2). The default is 0.
int status
[optional] Specifies the exit status for the program. The default is 0.
Returns
void
这对您有帮助吗?