撈出所有空值的記錄
-FIELD_NAME:[* TO *]
-FIELD_NAME:["" TO *]

撈出所以非空值的記錄

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

$a = [1, 2, 3, 4];

$a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];


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

最近同事介紹一套 git server 的套件,覺得還蠻好用的,而以設定超簡單,非常適合怕麻煩的人來安裝

簡單介紹一下安裝方法

1. 下載檔案 http://www.scm-manager.org/download/

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

http://ithelp.ithome.com.tw/question/10136053?tag=ithome.nq


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

參考:
http://www.cnblogs.com/lhb25/archive/2013/05/02/sublimelinter-for-js-css-coding.html
http://www.liudon.org/?p=1046


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

因為 jQuery Templat 似乎目前回傳的似乎是物件,而不是 html 的字串,所以若要做字串相加會無法處理
只好找網路上的範例,然後封裝成 jQuery Plugin 的格式來用

函式部份 $().tmpl_html

/**
 * 把 jQuery Template 的 html 傳回來
 * 因為 jQuery Template 似乎沒有提供此功能,只好自己包一個 jQuery Plugin 的介面
 * @author Leo Kuo <et282523@hotmail.com>
 */
(function($) 
{
    $.fn.tmpl_html = function(data) 
    {
        return this.template("#" + this.attr('id'))($, {data: data}).join('');
    };
})(jQuery);

 

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

http://www.creativebloq.com/web-design/templating-engines-9134396


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

 


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

終於把自己個人網站的文字特效寫成 jQuery Plugin 了,有需要的人可以自行取用哦

使用方法

$('#you_element').fontColorShow();

程式碼
https://github.com/fishingboy/Library/blob/master/jQuery-Plugin/jquery.font.color.show.js

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

快速尋找 function
Ctrl + R

快速找到變數
Ctrl + P + #

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