Else is very important

If else statement is very frequently used by developers.

Sometimes we will add if condition, but sometimes, else statement is missed, so a lot of issues will be caused by this error.

Today, I am fix an issue about change some setting, but the related setting is not updated.

After investigate the code, and find the cause is the else code is missed.

This condition is not very common, but it might be the case.

Another tip about set the empty value to GXT's ComboBox object, firstly, I use the setSimpleValue method, but this has no use, we need use the clear method to handle this.

原文地址:https://www.cnblogs.com/liwp_Stephen/p/3544765.html