摘要: mongoose.Types.ObjectId('576cd26698785e4913b5d0e1')//这儿需要引入模块mongoose 阅读全文
posted @ 2017-09-15 17:25 love飞飞 阅读(412) 评论(0) 推荐(0) 编辑
摘要: systemctl stop firewalld.service 阅读全文
posted @ 2017-09-15 13:15 love飞飞 阅读(95) 评论(0) 推荐(0) 编辑
摘要: var Csv = require('csv') //const data=[{c:'111哈s哈',b:2},{c:3,b:4}];//假设这个是从数据库读取出来的json const data = result; const batchname = Batch_Name; //假设这个是从数据库 阅读全文
posted @ 2017-09-12 12:36 love飞飞 阅读(216) 评论(0) 推荐(0) 编辑
摘要: js实现刷新页面出现随机背景图 直接上代码:<script> var bodyBgs = []; bodyBgs[0] = "IMG/01.jpg"; bodyBgs[1] = "IMG/02.jpg"; bodyBgs[2] = "IMG/03.jpg"; bodyBgs[3] = "IMG/04 阅读全文
posted @ 2017-09-10 00:26 love飞飞 阅读(1201) 评论(0) 推荐(0) 编辑
摘要: js实现图片上传预览功能,使用base64编码来实现 实现图片上传的方法有很多,这里我们介绍比较简单的一种,使用base64对图片信息进行编码,然后直接将图片的base64信息存到数据库。 但是对于系统中需要上传的图片较多时并不建议采用这种方式,我们一般会选择存图片路径的方式,这样有助于减小数据库压 阅读全文
posted @ 2017-09-10 00:25 love飞飞 阅读(16748) 评论(0) 推荐(1) 编辑
摘要: http://www.jb51.net/article/108457.htm 阅读全文
posted @ 2017-09-05 16:12 love飞飞 阅读(2152) 评论(0) 推荐(0) 编辑
摘要: http://www.ruanyifeng.com/blog/2014/05/restful_api.html 阅读全文
posted @ 2017-08-30 16:57 love飞飞 阅读(271) 评论(0) 推荐(0) 编辑
摘要: db.ClassMembers.insertMany([ { "ClassID":"CL0001", "StudentID":"S000001", "DateFrom":"2015-09-01" }, { "ClassID":"CL0002", "StudentID":"S000002", "Dat 阅读全文
posted @ 2017-08-25 10:07 love飞飞 阅读(3032) 评论(0) 推荐(0) 编辑
摘要: 保存之后自动重启指令,起到自动监听 参考地址:http://www.cnblogs.com/liusixin/p/7007340.html 1.进入目录下: 2.l打开命令窗口 3.启动指令 pm2 start server.js --name jaunsoo --watch 4.停止指令 pm2 阅读全文
posted @ 2017-08-11 16:36 love飞飞 阅读(10804) 评论(1) 推荐(0) 编辑
摘要: http://www.jb51.net/article/87287.htm 阅读全文
posted @ 2017-08-10 16:10 love飞飞 阅读(446) 评论(0) 推荐(0) 编辑