Ueditor1.4.3.1版本,仅贴了图片上传代码,其他自己加。。。 /** * Created by root on 11/16/15. */ var fs = require(‘fs-extra’); var moment = require(“moment”); module.exports = { index: function (req, res) { if (req.session.… 更多


适应场景:Sails框架、微信公众号数据配置在数据库中,支持多个公众号。 1、Model定义(Waterline) 文件路径:/api/models/wx/Wx_config.js /** * Created by root on 10/25/15. */ var moment = require(‘moment’); module.exports = { schema: true, autoCr… 更多


Sys_user.js module.exports = { schema: true, autoCreatedAt: false, autoUpdatedAt: false, attributes: { id: { type: ‘integer’, autoIncrement: true, primaryKey: true }, roles: { collection: ‘Sys_role’, … 更多


npm install bcrypt –save   var salt = bcrypt.genSaltSync(10); var hash = bcrypt.hashSync(‘pass’, salt); console.log(‘加密::’+hash); console.log(‘解密::’+bcry… 更多


友情提示:do not 在windows下开发node.js应用,否则你会浪费很多时间并且会pia撞墙的…… 1.CentOS6.5 安装 nodejs 并配置到环境 ———————————– >>gedit /etc/profile expo… 更多