会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
君亦
博客园
首页
新随笔
联系
管理
订阅
2021年12月7日
12-07
摘要: 1: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content=
阅读全文
posted @ 2021-12-07 18:43 君亦歆
阅读(27)
评论(0)
推荐(0)
2021年12月6日
12-06
摘要: index-1: <!doctype html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport"
阅读全文
posted @ 2021-12-06 15:31 君亦歆
阅读(31)
评论(0)
推荐(0)
2021年12月3日
12-03
摘要: 1.token.js: 2.jwttest.router.js: 3.app.js: 4.tag.router.js: 5.test.http:
阅读全文
posted @ 2021-12-03 18:50 君亦歆
阅读(34)
评论(0)
推荐(0)
2021年12月2日
12-2
摘要: 调整: // 引入: const mongoose = require("mongoose");//1.安装mongoose mongoose.connect("mongodb://127.0.0.1:27017/test")//2.建立连接 // 创建一个模型 tagSchema const ta
阅读全文
posted @ 2021-12-02 17:09 君亦歆
阅读(153)
评论(0)
推荐(0)
2021年11月30日
11-30
摘要: 第一个页面: tag.js: // 添加 删除 // 导出: const tagModel = require("../mongodb"); const {success, fail} = require("../toast") /* get ctx.query post ctx.request.b
阅读全文
posted @ 2021-11-30 17:20 君亦歆
阅读(43)
评论(0)
推荐(0)
2021年11月29日
11-29
摘要: // 添加 删除 // 导出: const tagModel = require("../mongodb"); module.exports = function (router) { router.get("/tag", async (ctx) => { const data = await ta
阅读全文
posted @ 2021-11-29 21:28 君亦歆
阅读(25)
评论(0)
推荐(0)
2021年11月26日
11-26
摘要: 先安装: npm install koa-router --save 引入类: const Koa = require('koa'); const Router = require('koa-router') const koaBody = require('koa-body'); //引入内部方法
阅读全文
posted @ 2021-11-26 12:20 君亦歆
阅读(28)
评论(0)
推荐(0)
2021年11月25日
11-25
摘要: app.js: nodemon -v和nodemon app.js出现问题以及问题解决: 输入:nodemon -v出现问题: 解决问题: 再次输入:nodemon app.js:
阅读全文
posted @ 2021-11-25 13:44 君亦歆
阅读(36)
评论(0)
推荐(0)
2021年11月24日
11-24
摘要: 修改网址:
阅读全文
posted @ 2021-11-24 12:22 君亦歆
阅读(26)
评论(0)
推荐(0)
2021年11月23日
11-23 04 Axios.html
摘要: Axios 是一个基于 Promise 的 HTTP 库,可以用在浏览器和 node.js 中。 代码: GET 方法:
阅读全文
posted @ 2021-11-23 10:23 君亦歆
阅读(26)
评论(0)
推荐(0)
下一页
公告