原创 chrome 上有用的插件

1 管理網絡代理 SwitchySharp 是 Google Chrome 瀏覽器上的一個代理管理擴展程序,目前最好用的代理程序。2 

原创 javascript 相關

1 字符串的替換替換英文中的'.'爲對應格式var tt= '2016.07.27_09.56.22'; var day = tt.substring(0,10).replace(/\./g,'-'); var time = tt.subs

原创 node.js request and response related

一 取值 post 和get取值1)GET /test?name=fred&tel=0926xxx572app.get('/test', function(req, res) {    console.log(req.query.name)

原创 apidoc 生成文檔

 相關鏈接 :https://www.npmjs.com/package/apidoc 用apidoc可以生成文檔, 預製條件:1 項目根目錄下新建一個文件:apidoc.json2 項目目錄下新建一個文件夾: docapidoc -i e

原创 How To Work With JSON In Node.js / JavaScript

At first I tried googling about it, I found a solution, which shows example with file system support of nodejs(fs module

原创 java 正則表達式

1 需要轉義的字符Java characters that have to be escaped in regular expressions are: \.[]{}()*+-?^$|2 

原创 git 相關

1 下載github 上,主分支以外的其他分支"checkout" the remote branch as a new local branch, and specify a new local branch name.git check

原创 node.js npm 配置相關

1 安裝library 時,在項目目錄下使用--save , 比如  npm install adm-zip --save 會將adm-zip 具體版本信息自動配置在 項目的package.json中,不用手動添加了。2 nmp insal

原创 node.js 項目相關

1 npm start 啓動整個項目2 postman chrome 插件,測試寫好的api函數。3 ubuntu install redis, or else error: [ERROR] auth - { [Error: Redis c