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.

posted on 2014-02-11 17:12  liwp_Stephen  阅读(271)  评论(0编辑  收藏  举报

导航