会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
二两余晖
博客园
首页
新随笔
联系
订阅
管理
2024年2月6日
Vue3 - 移动端配置Rem布局
摘要: 1、项目搭建 2、安装插件 npm install amfe-flexible --save npm install postcss-pxtorem --save-dev 3、引入插件 import 'amfe-flexible' // main.ts 4、vite.config.ts 配置 imp
阅读全文
posted @ 2024-02-06 16:59 二两余晖
阅读(155)
评论(0)
推荐(0)
编辑
2024年2月5日
TS-TypeScript学习_1
摘要: 1、推断类型 const nameInfo: string = 'Hello world' console.log('nameInfo', nameInfo) 2、定义类型 interface nameType { name: string; age: number; } const peopleI
阅读全文
posted @ 2024-02-05 16:39 二两余晖
阅读(1)
评论(0)
推荐(0)
编辑
2024年2月2日
ES6-高级实用技巧
摘要: 1、Object.entries()返回一个给定对象自身可枚举属性的键值对数组。 1 const obj = { a: 1, b: 2, c: 3 } 2 const entries = Object.entries(obj) 3 console.log('entries', entries) 4
阅读全文
posted @ 2024-02-02 14:49 二两余晖
阅读(1)
评论(0)
推荐(0)
编辑
2021年12月24日
CSS学习之路
摘要: 1、css背景 background-color:背景色 background-color: red background-img:背景图(url 默认为 x,y 平铺) background-image: url(../****) background-repeat:背景的平铺方式(repeat:
阅读全文
posted @ 2021-12-24 17:36 二两余晖
阅读(44)
评论(0)
推荐(0)
编辑
2021年11月26日
字符串的方法(共16项)
摘要: 1、length 查询字符串的长度 var str = 'hello world' console.log(str.length) // 结果为: 11 2、indexOf() 查询字符串中指定文本首次出现时的索引 var str = 'hello world' console.log(str.in
阅读全文
posted @ 2021-11-26 13:39 二两余晖
阅读(220)
评论(0)
推荐(0)
编辑
2021年11月25日
数组的方法(共18项)
摘要: 1、toString() 将数组转换成字符串(以逗号分隔) var arr = [1,2,3] console.log(arr.toString()) // 结果为:1,2,3 2、join() 将数组转成字符串,类似于 toString(),但 join() 可以自定义间隔符(参数) var ar
阅读全文
posted @ 2021-11-25 12:16 二两余晖
阅读(110)
评论(1)
推荐(0)
编辑
2021年11月24日
HTTP传输协议
摘要: 1、什么是 http 传输协议 http(超文本传输协议)是一个简单的请求-响应协议,运行在TCP之上,指定了客户端可能发送给服务器什么样的消息以及得到什么样的响应。 一个http请求的步骤,包括:建立连接通道、前端发送请求给后端、后端返回响应给前端、断开连接。(只能由前端发起) 建立连接:基于 T
阅读全文
posted @ 2021-11-24 18:00 二两余晖
阅读(1238)
评论(0)
推荐(0)
编辑