
服务端
alex ppap
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
使用axios和Koaji进行post传输数据
前端 使用axios发送前端post请求到后端,url为后端服务器地址 axios({ method: 'post', url: 'http://localhost:3000/login', data: { name: this.user.username, email: this.user.email, password: this.user.password }原创 2020-05-14 10:32:34 · 737 阅读 · 1 评论 -
构造一个简单的koa路由
使用npm 安装 npm install @koa/router 简单实例 const Koa = require('koa'); const Router = require('@koa/router'); const app = new Koa(); const router = new Router(); //配置路由 router .get("/",async (ctx)=>...原创 2020-04-18 20:37:31 · 136 阅读 · 0 评论 -
MongoDB的安装与基本操作(1)
MongoDB是一个介于关系数据库和非关系数据库之间的产品,是非关系数据库当中功能最丰富,最像关系数据库的。他支持的数据结构非常松散,是类似json的bson格式,因此可以存储比较复杂的数据类型。Mongo最大的特点是他支持的查询语言非常强大,其语法有点类似于面向对象的查询语言,几乎可以实现类似关系数据库单表查询的绝大部分功能,而且还支持对数据建立索引。它的特点是高性能、易部署、易使用,存储数据非...原创 2020-04-14 16:32:33 · 196 阅读 · 0 评论 -
http请求js的一些方法(1)
用POST方法发送纯文本至服务器 function postMessage () { var request = new XMLHttpRequest(); request.open("POST","/log.php"); request.setRequestHeader("Content-Top","text/plain;charset=UTF-8") } 获取HT...原创 2020-03-01 19:47:56 · 351 阅读 · 0 评论