会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ben10044
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
13
下一页
2022年11月30日
Vue3组件
摘要: 组件就像一个功能比较强大的标签,也可以理解成一个功能模块。 创建组件 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"
阅读全文
posted @ 2022-11-30 22:26 ben10044
阅读(185)
评论(0)
推荐(0)
2022年11月25日
Vue3实现简单的水果购物车
摘要: hello world <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport"
阅读全文
posted @ 2022-11-25 19:32 ben10044
阅读(350)
评论(0)
推荐(0)
2022年11月23日
跨域请求
摘要: 同源策略 ajax不能在不同源的情况下获取数据 jsonp原理 启动服务 使用jQuery的jsonp 3000项目的server.js const Koa = require("koa"); const router = require("koa-router")(); const jsonp =
阅读全文
posted @ 2022-11-23 23:09 ben10044
阅读(37)
评论(0)
推荐(0)
Ajax第三方模块
摘要: Axios 下载 cnpm install axios Axios的常用方法 index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" co
阅读全文
posted @ 2022-11-23 22:41 ben10044
阅读(37)
评论(0)
推荐(0)
Ajax入门
摘要: 概述 Ajax原理 server.js const Koa = require("koa"); const router = require("koa-router")(); const views = require("koa-views"); const nunjucks = require("
阅读全文
posted @ 2022-11-23 19:00 ben10044
阅读(32)
评论(0)
推荐(0)
2022年11月20日
http协议概述
摘要: 请求的常用方法 这四种请求方法仅仅只是发送了请求而已,具体的功能还是要通过具体的代码来实现 http协议的状态码 用postman请求常用方法 get请求 post请求 put请求 id=1,苹果香蕉鸭梨变成了苹果草莓鸭梨 delete请求 苹果草莓鸭梨变成了苹果鸭梨 server.js const
阅读全文
posted @ 2022-11-20 13:12 ben10044
阅读(31)
评论(0)
推荐(0)
2022年11月18日
cookie与session
摘要: cookie 用户到商店买东西,商店出了个想法,给用户张会员卡,会员卡有两种方案 一种是上面的,一张卡能用10次折扣,每用一次次数-1。 但有个弊端,会员卡的次数记录在卡上,卡在用户里,要是用户用某些方法改了会员卡的次数就能无限刷 另一种是下面的,会员卡只记录个人信息,商店读取卡里的个人信息来获取折
阅读全文
posted @ 2022-11-18 23:02 ben10044
阅读(37)
评论(0)
推荐(0)
2022年11月17日
nunjucks模板语法
摘要: 循环语句 server.js const Koa = require("koa");//引入koa构造函数 const app = new Koa();//创建应用 const views = require("koa-views");//引入koa-views const nunjucks = r
阅读全文
posted @ 2022-11-17 22:30 ben10044
阅读(98)
评论(0)
推荐(0)
Nunjucks模板入门
摘要: 概述 安装nunjucks 代码实现 server.js const Koa = require("koa");//引入koa构造函数 const app = new Koa();//创建应用 const views = require("koa-views");//引入koa-views cons
阅读全文
posted @ 2022-11-17 21:38 ben10044
阅读(166)
评论(0)
推荐(0)
Koa框架基础
摘要: Koa是一个基于Node的web服务器开发框架,通过Koa我们可以更便捷地开发web服务器。不必像上一节那样刀耕火种地从零开始写。 安装Koa cnpm install koa --save 用koa创建服务器 const Koa = require("koa");//引入koa构造函数 const
阅读全文
posted @ 2022-11-17 14:03 ben10044
阅读(388)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
13
下一页
公告