
node.js
前端真的大牛
毕业于中北大学,计算机专业,大学期间就开始了自己的前端旅程,精通前端基础底层,会做小程序,vue+react很六,angular了解,对node+es6也很精通哦,熟悉node的多种框架
展开
-
process.argv
process 对象是一个全局变量,它提供当前 Node.js 进程的有关信息,以及控制当前 Node.js 进程。 因为是全局变量,所以无需使用 require()。process.argv 属性返回一个数组,这个数组包含了启动Node.js进程时的命令行参数,其中:数组的第一个元素process.argv[0]——返回启动Node.js进程的可执行文件所在的绝对路径第二个元素process.argv[1]——为当前执行的JavaScript文件路径剩余的元素为其他命令行参数例如:输入命令:转载 2021-06-23 15:11:14 · 773 阅读 · 0 评论 -
git拉取代码报错 Connection refused
git拉取代码报错 Connection refused正常安装了sourcetree,git,Embedded等工具git 全局注册了git config --global user.namegit config --global user.email再次反复检查了是否写错,name 和 email 留的都是 gitlab的ssh-keygen -t rsa -C 自己的邮箱 生成公钥然后将 .pub文件下的内容 添加到gitlab的ssh中正常到这里git clo原创 2021-03-15 16:26:01 · 5482 阅读 · 0 评论 -
很好地文章(四)
Mongoose增查改删学习笔记https://www.jianshu.com/p/2f54b90efe15mongoose常用方法(查询篇)https://segmentfault.com/a/1190000016087635?utm_source=tag-newestapiDoc 使用指南https://www.jianshu.com/p/34eac66b47e3NodeJs - Express项目 自动生成API文档https://www.jianshu.com/p/7e1b057b04原创 2020-10-30 09:44:34 · 157 阅读 · 0 评论 -
2020-10-23
node 连接数据库const mongoose = require('mongoose');const DB_URL = 'mongodb://localhost:27017/zxmSystem';/* 链接 */mongoose.connect(DB_URL, { userNewUrlParser: true}, (err) => { if (err) { throw err }; console.log("连接数据库成功")});原创 2020-10-23 12:19:33 · 175 阅读 · 0 评论 -
node+express+ejs 实现文件上传和预览
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>index</title> </head> <body> <form enctype="multipart/form-data"> <input type="file" name="img" id="img"> <input type.原创 2020-09-25 22:51:44 · 648 阅读 · 0 评论