原创 js 正則
var fnTypeReg = /([REGION_STORAGE_UNIT_PRICE|DECEND_FLOW_UNIT_PRICE|CDN_FLOW_UNIT_PRICE|RETURN_FLOW_UNIT_PRICE|REQUEST_U
原创 我的友情鏈接
51CTO博客開發
原创 function 聲明位置
function foo(){ // code}上面這段函數聲明如果放到if else語句中,有些瀏覽器會報錯if(){ function foo(){ // code } foo(); }但是可以寫成下面這樣:if(
原创 狀態枚舉類設計
var status = { INIT: { key: 'init', text: '初始化中' }, DESTORY: { key: 'destory', text: '已銷燬'
原创 正則匹配中文
匹配中文字符的正則表達式: [\u4e00-\u9fa5]匹配雙字節字符(包括漢字在內):[^\x00-\xff]
原创 圖片居中顯示
h1 { position: relative; z-index: 2; border: solid red 5px; width: 540px; height: 0; margin: 110px auto 15px
原创 python 根據路徑和類名動態加載類
def get_plugin_by_name(self, package, clazz_name): """ package 類所在路徑 clazz_name 類名 http://stackoverflow.
原创 elasticsearch-the-definitive-guide-cn
http://es.xiaoleilu.com/010_Intro/30_Tutorial_Search.html
原创 我的友情鏈接
51CTO博客開發
原创 pip install mysql-python fails with EnvironmentError: mysql_config not found
http://stackoverflow.com/questions/5178292/pip-install-mysql-python-fails-with-environmenterror-mysql-config-not-found
原创 js 正則
var fnTypeReg = /([REGION_STORAGE_UNIT_PRICE|DECEND_FLOW_UNIT_PRICE|CDN_FLOW_UNIT_PRICE|RETURN_FLOW_UNIT_PRICE|REQUEST_U
原创 groovy 數組合並
def alist = [1, 2, 3, 4]; def blist = [5, 6, 7]; def reslist = new ArrayList(); reslist.addAll(alist.findAll()).addAll(
原创 用枚舉做解耦
var enums ={ Type: 'type', Description: 'description', Default: '_default', Constraints:
原创 Wappalyzer
Wappalyzer 2.41Identifies software on the web
原创 groovy enum
enum CycleEnum { Month('Month'), Year('Year'); private String pricingCycle; CycleEnum(String pricingC