result variable names 所有结果当做一个对象存储
If the global scope requires the result of the event handler, set the result in the global result variable.
如果全局范围要求使用事件处理程序的结果,请在全局结果变量中设置该结果。
If an exception is thrown during the second try statement, notice that the result variable gets set to false.
如果在第二个try语句运行期间抛出异常,那么请注意,result变量被设置为false。
Notice that if everything goes as planned, the result variable will equal true after everything is successfully submitted into the database and no exceptions are thrown.
注意,如果每件事都按计划进行,那么在每件事都成功提交到数据库,而且没有抛出异常之后,result变量应当等于true。
应用推荐