摘要: const pathLib = require('path');//引入node.js下的一个path模块的方法,主要处理文件的名字等工作,具体可看文档 const fs = require(''fs); var app = new express(); //前台图片上传访问路径 app.post( 阅读全文
posted @ 2019-12-01 10:59 ChienPop 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: /** * Author:strive * Date: 2016/1/13 */ function json2url(json){ var arr=[]; for(var name in json){ arr.push(name+'='+json[name]); } return arr.join( 阅读全文
posted @ 2019-12-01 10:46 ChienPop 阅读(126) 评论(0) 推荐(0) 编辑