[Mistakes] by calling the function, the intention of the response data

1. [Mistakes] by calling the function, the intention of the response data:

 

Actually returned is 'aaa'. If you do not exit ( 'aaa'); nothing is returned.

2. 1 by the problem. Due to expansion.

In doing some big projects, which will help expand sex, can throw an exception within the subroutine, the main function try catch catch the exception. Functions handle a variety of logic, the main function needs to be called only once this function can be.

Recommendations need to verify the data needs to try catch

 

Guess you like

Origin www.cnblogs.com/wangyuyanhello/p/11333949.html