billy3321: 改成這樣 https://gist.github.com/yhsiang/6283778