北在北方

太白枝头看,花开不计年,杯中浮日月,楼外是青天。

导航

上一页 1 2 3 4 5 6 7 8 ··· 20 下一页

2014年10月27日

摘要: 1、简单安装 1)下载http://nginx.org/en/download.html 2)解压后的路径E:\Study\nginx\nginx-1.7.6 3)执行nginx.exe,访问http://localhost ,出现Welcome to nginx!欢迎内容,安装成功。 4)... 阅读全文

posted @ 2014-10-27 15:38 CN.programmer.Luxh 阅读(2044) 评论(1) 推荐(1) 编辑

2014年7月9日

摘要: var log4js = require('log4js');log4js.configure({ appenders: [ { type: 'console' }, { type: 'file', filename: 'd:/logs/my-app.log', c... 阅读全文

posted @ 2014-07-09 22:46 CN.programmer.Luxh 阅读(380) 评论(0) 推荐(0) 编辑

2014年7月7日

摘要: var formidable = require('formidable');var util = require('util');exports.upload = function(req,res){ var form = new formidable.IncomingForm(); ... 阅读全文

posted @ 2014-07-07 21:50 CN.programmer.Luxh 阅读(483) 评论(0) 推荐(0) 编辑

摘要: 1、使用nodemailer模块var nodemailer = require("nodemailer");2、代码如下exports.send_email = function(req,res) { //发件人信息设置 var smtpTransport = nodemailer.c... 阅读全文

posted @ 2014-07-07 21:16 CN.programmer.Luxh 阅读(724) 评论(0) 推荐(0) 编辑

2014年7月2日

摘要: 1、使用node-xlsx包var xlsx = require('node-xlsx'); 只支持xlsx格式2、解析的Excel文件格式如下:3、程序如下: var obj = xlsx.parse('D:/test.xlsx'); //第一个工作表的数据 var data = o... 阅读全文

posted @ 2014-07-02 21:30 CN.programmer.Luxh 阅读(1609) 评论(0) 推荐(0) 编辑

2014年6月27日

摘要: 未使用Async之前coffeescript写的代码:exports.product_file_add = (req,res) -> if !req.param('file_id') return res.json({'flag':'error','msg':'请先上传文件再保存!'}) ... 阅读全文

posted @ 2014-06-27 16:29 CN.programmer.Luxh 阅读(832) 评论(0) 推荐(0) 编辑

2014年6月24日

摘要: /** * 获取分页按钮 * @param total_page 总页数 * @param current_page 当前页 * @param num 每页显示多少个分页按钮 * @returns {String} */function get_pag... 阅读全文

posted @ 2014-06-24 22:46 CN.programmer.Luxh 阅读(877) 评论(0) 推荐(0) 编辑

2014年6月23日

摘要: 原来写的一个分页查询,回调了好几层。exports.list = function(req,res) { var params = {}; var current_page = common_util.get_param_value(req,'current_page','Number'... 阅读全文

posted @ 2014-06-23 22:48 CN.programmer.Luxh 阅读(2345) 评论(0) 推荐(0) 编辑

2014年5月30日

摘要: 1、一个文档如下db.posts.find(){ "_id" : ObjectId("5388162dfc164ee1f39be37f"), "title" : "Java Example", "content" : "This is a example for Java!", ... 阅读全文

posted @ 2014-05-30 13:58 CN.programmer.Luxh 阅读(456) 评论(0) 推荐(0) 编辑

2014年4月24日

摘要: 1、全局安装expressnpm install -g express2、执行express命令,创建web项目框架express -e ejs myweb 会提示 express 不是内部或外部命令3、找了很久的资料,后面在stackoverflow上找到答案。 http://stackove... 阅读全文

posted @ 2014-04-24 14:43 CN.programmer.Luxh 阅读(936) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 20 下一页