随笔分类 -  node

摘要:http://cssor.com/javascript-workflow-by-tofishes.html 阅读全文
posted @ 2014-08-26 14:37 hitbs228 阅读(125) 评论(0) 推荐(0)
摘要:当时学node,自己写了个论坛练手,现在看还是有很多问题,有时间好好改改https://github.com/hitbs228/countdown 阅读全文
posted @ 2014-04-25 15:51 hitbs228 阅读(111) 评论(0) 推荐(0)
摘要:tagg2包同样具有tagg包的多线程功能,采用新的node-gyp命令进行编译,同时它跨平台支持,mac,linux,windows下都可以使用,对开发人员的api也更加友好。安装方法很简单,直接npm install tagg2 阅读全文
posted @ 2014-04-25 15:36 hitbs228 阅读(440) 评论(0) 推荐(0)
摘要:npm install nodemailer执行后,指定目录下会出现node_modules模块,再相同目录下,创建main.js,js代码如下:var nodemailer = require("nodemailer");var fs = require('fs');var file = fs.r... 阅读全文
posted @ 2014-04-25 15:34 hitbs228 阅读(371) 评论(0) 推荐(0)
摘要:js: function set_cookie(key, val,now){ var exdate = new Date(now); exdate.setDate(exdate.getDate() + 30); exdate = exdate.toGM... 阅读全文
posted @ 2014-04-25 15:08 hitbs228 阅读(468) 评论(0) 推荐(0)
摘要:var http = require("http"), Url = require("url"), querystring = require('querystring');// 默认值function defaults(url){ return { // 如果返回f... 阅读全文
posted @ 2014-04-25 14:59 hitbs228 阅读(425) 评论(0) 推荐(0)