2019年6月22日

nodeJs链接mongodb

摘要: 1、项目目录下,下载第三方模块mongodb 2、检测是否连接成功 【node】 mongoose的基本使用 【巷子】 https://www.cnblogs.com/nanianqiming/p/9069760.html 阅读全文

posted @ 2019-06-22 23:20 深蓝88 阅读(615) 评论(0) 推荐(0) 编辑

let,const,var区别

摘要: 1、let是es6新增的声明变量的方式 ,其特点是:(1)作用域是块级作用域(在ES6之前,js只存在函数作用域以及全局作用域) if(1){ let a=1; console.log(a)}(2)不存在变量声明提前; console.log(b); //ReferenceError: b is n 阅读全文

posted @ 2019-06-22 22:27 深蓝88 阅读(157) 评论(0) 推荐(0) 编辑

mongodb基本操作

摘要: mongodb非关系型数据库 数据库 =》{sz1905,user} 2个数据库 表 sz1905 => {student,teacher} student =>{xiaomig,zhangsan,lisi} 1.mongod --dbpath c:\data\db //cmd启动。不能关 正确的显 阅读全文

posted @ 2019-06-22 22:12 深蓝88 阅读(140) 评论(0) 推荐(0) 编辑

querystring模块,Node.js

摘要: node.js 阅读全文

posted @ 2019-06-22 21:08 深蓝88 阅读(129) 评论(0) 推荐(0) 编辑

如何获取GET请求的数据 通过 query拿到,url相关pathname

摘要: get请求时,发送给服务器的data 放在url里。 而通过解析url。 url.parse(req.url). url.parse:将一个url地址转换成一个urlObject 第二个参数如果写成true则代表将query解析成一个对象 query: 'wd=%E5%8D%83%E9%94%8B& 阅读全文

posted @ 2019-06-22 20:58 深蓝88 阅读(3221) 评论(0) 推荐(0) 编辑

正则总结https://blog.csdn.net/qq_34149935/article/details/62233835

摘要: https://blog.csdn.net/qq_34149935/article/details/62233835 阅读全文

posted @ 2019-06-22 20:09 深蓝88 阅读(104) 评论(0) 推荐(0) 编辑

常见的content-type的类型有哪些?(背)

摘要: 常见的content-type的类型有哪些?(背) text/plain 文本类型 text/css css类型 text/html html类型 application/x-javascript js类型 application/json json类型 image/png jpg gif imag 阅读全文

posted @ 2019-06-22 19:26 深蓝88 阅读(6748) 评论(0) 推荐(0) 编辑

npm run dev 修改后自动重启服务器

摘要: "scripts": { "dev": "supervisor index" }, "scripts": { "dev": "supervisor index" }, Running node-supervisor with program 'index' --watch '.' --extensi 阅读全文

posted @ 2019-06-22 19:12 深蓝88 阅读(1688) 评论(0) 推荐(0) 编辑

导航