if( !"".equals(strCid)   (此用法不因strCid 為null也不會錯)

{

      // more code

}

 

 

if(strCid != null && strCid.equals(""))

{

     // more code

}

 

 

 

文章標籤
全站熱搜
創作者介紹
創作者 JoshS 的頭像
JoshS

JoshS的部落格

JoshS 發表在 痞客邦 留言(0) 人氣(449)