escape() will not encode: @*/+
encodeURI() will not encode: ~!@#$&*()=:/,;?+'
encodeURIComponent() will not encode: ~!*()'
http://blog.terac.com/andy/e_181.html
http://xkr.us/articles/javascript/encode-compare/
http://www.chedong.com/blog/archives/000828.html
http://www.hipaza.com/viewtopic.php?t=1306&start=0&postdays=0&postorder=asc&highlight=&sid=5abc13a79a755c58a5a73648cf9da560
2008年7月16日 星期三
[VB] OrElse 及 AndAlso 運算子
在 VB.NET 中,一般的判斷式都會使用到 Or 及 And 運算子,可是比較少人知道它們還有二個相對應的 OrElse 及 AndAlso 運算子。一般而言,筆者會建議所有的判斷式都使用 OrElse 來取代 Or 運算子,使用 AndAlso 來取代 And 運算子。為什麼呢?因為 OrElse 及 AndAlso 運算子的執行效能會優於 Or 及 And 運算子,以下就來說明其中的原由。
http://blog.blueshop.com.tw/jeff377/archive/2007/11/15/53351.aspx
http://blog.blueshop.com.tw/jeff377/archive/2007/11/15/53351.aspx
日期轉換 yyyy/MM/dd → yyyyMMdd (SQL)
(case when EXPRESS_Date is null or rtrim(EXPRESS_Date) = ''
then '' else replace(Convert(Char(10),Convert(DateTime , EXPRESS_Date, 111),111),'/','') end)
then '' else replace(Convert(Char(10),Convert(DateTime , EXPRESS_Date, 111),111),'/','') end)
訂閱:
文章 (Atom)