会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
熊熊日记
博客园
首页
新随笔
联系
订阅
管理
2021年12月7日
bootstrap组件
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
posted @ 2021-12-07 13:44 熊熊日记
阅读(66)
评论(0)
推荐(0)
2021年12月6日
栅格系统
摘要: 12.6在ie5之前的版本会加上、解决兼容性问题 <!--[if lt IE9]> <scriptsrc="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script> <scriptsrc="https:
阅读全文
posted @ 2021-12-06 22:30 熊熊日记
阅读(161)
评论(0)
推荐(0)
2021年12月3日
加密 加密
摘要: 1:新建一个js文件 const { success, fail } = require("../toast"); const jwt = require("jsonwebtoken"); const key = "web";//密钥 module.exports = function (route
阅读全文
posted @ 2021-12-03 17:26 熊熊日记
阅读(61)
评论(0)
推荐(0)
2021年12月2日
nodejs的修改
摘要: 1:在页面写修改 //引入mongodb.js const {userModel} = require("../mongodb"); //引入toast.js const { success, fail } = require("../toast"); //用户路由 //module.exports
阅读全文
posted @ 2021-12-02 17:21 熊熊日记
阅读(101)
评论(0)
推荐(0)
2021年11月30日
nodejs删除
摘要: 获取参数的方法 get ctx.query post ctx.request.body delete ctx.request.body put ctx.query ctx.request.body 1:在tag.router页面中写删除 //删除 deleteOne只删除一条 router.dele
阅读全文
posted @ 2021-11-30 17:04 熊熊日记
阅读(255)
评论(0)
推荐(0)
2021年11月29日
模块的创建和添加查找
摘要: 1:创建routers文件夹 2:创建content.router.js tag.router.js user.router.js三个js文件 nodemon app.js 启动app.js npm install mongoose --save 安装moogoose 3:在三个js文件中写 //用
阅读全文
posted @ 2021-11-29 21:00 熊熊日记
阅读(47)
评论(0)
推荐(0)
2021年11月26日
post get 请求数据
摘要: app.js //这个地方定义的字母首写为大写,并且要与下面的 创建路由要一致 //引入内部方法或属性 //const{方法或属性名}=require('koa'); const Koa=require('koa'); //koa框架 const Router=require('koa-router
阅读全文
posted @ 2021-11-26 12:21 熊熊日记
阅读(29)
评论(0)
推荐(0)
2021年11月25日
koa
摘要: `koa-router` koa路由 `ctrl+c` ^c 终止 ### package.json `npm install --save koa` 安装koa框架 ### app.js `npm app.js` 运行app.js `npm install nodemon -g` nodemon安
阅读全文
posted @ 2021-11-25 12:20 熊熊日记
阅读(63)
评论(0)
推荐(0)
2021年11月24日
nodejs的安装
摘要: ### 项目初始化 `npm init` `npm init -y` ### 安装项目依赖(包) `npm install` `npm install 包名 --save` 当前项目可用 `npm install 包名 -g` 全局所有项目都可用 `npm install 包名@版本号` 安装指定版
阅读全文
posted @ 2021-11-24 12:12 熊熊日记
阅读(20)
评论(0)
推荐(0)
2021年11月23日
请求axios方法
摘要: 1: fetch('./01data.json', {}) //固定格式 .then(function (response) { //resolve 成功 console.log(response); return response.json(); }) //获取数据 .then(function
阅读全文
posted @ 2021-11-23 10:31 熊熊日记
阅读(38)
评论(0)
推荐(0)
下一页
公告