首页
统计
关于
Search
1
Sealos3.0离线部署K8s集群
1,314 阅读
2
类的加载
873 阅读
3
Spring Cloud OAuth2.0
861 阅读
4
SpringBoot自动装配原理
752 阅读
5
集合不安全问题
647 阅读
笔记
Java
多线程
注解和反射
JVM
JUC
设计模式
Mybatis
Spring
SpringMVC
SpringBoot
MyBatis-Plus
Elastic Search
微服务
Dubbo
Zookeeper
SpringCloud
Nacos
Sentinel
数据库
MySQL
Oracle
PostgreSQL
Redis
MongoDB
工作流
Activiti7
Camunda
消息队列
RabbitMQ
前端
HTML5
CSS
CSS3
JavaScript
jQuery
Vue2
Vue3
Canvas
React
Linux
容器
Docker
Containerd
Podman
Kubernetes
Python
FastApi
OpenCV
数据分析
牛牛生活
登录
Search
标签搜索
Java
CSS
mysql
RabbitMQ
JavaScript
Redis
OpenCV
JVM
Mybatis-Plus
Camunda
多线程
CSS3
Python
Canvas
Spring Cloud
注解和反射
Activiti
工作流
SpringBoot
ndarray
蘇阿細
累计撰写
459
篇文章
累计收到
4
条评论
首页
栏目
笔记
Java
多线程
注解和反射
JVM
JUC
设计模式
Mybatis
Spring
SpringMVC
SpringBoot
MyBatis-Plus
Elastic Search
微服务
Dubbo
Zookeeper
SpringCloud
Nacos
Sentinel
数据库
MySQL
Oracle
PostgreSQL
Redis
MongoDB
工作流
Activiti7
Camunda
消息队列
RabbitMQ
前端
HTML5
CSS
CSS3
JavaScript
jQuery
Vue2
Vue3
Canvas
React
Linux
容器
Docker
Containerd
Podman
Kubernetes
Python
FastApi
OpenCV
数据分析
牛牛生活
页面
统计
关于
搜索到
109
篇与
的结果
2024-03-03
样式表的优先级
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>优先级</title> <link rel="stylesheet" href="../01_CSS的编写位置/position.css"> <style> h1{ color: red; font-size: 100px; } </style> </head> <body> <!-- 行内样式 > 内部样式 = 外部样式 内部样式、外部样式优先级相同,且后写的会覆盖前写的 同一个样式表中,优先级也和编写顺序有关 --> <!-- <h1 style="color: aquamarine;">你好,孙笑川</h1> --> <h1>你好,孙笑川</h1> </body> </html>
2024年03月03日
24 阅读
0 评论
0 点赞
2024-03-03
CSS的编写位置
行内样式**<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>位置1_行内样式</title> </head> <body> <h1 style="color: green; font-size: 60px;">你好,孙笑川!</h1> </body> </html>2. 内部样式<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>位置2_内部样式</title> <style> h1{ color: lightgreen; font-size: 60px; } h2{ color: orange; font-size: 30px; } p{ color: lightcoral; font-size: 25px; } img{ width: 400px; } </style> </head> <body> <h1>你好,孙笑川!</h1> <h2>大家好,我是药水哥!</h2> <p>北京欢迎你</p> <p>上海欢迎你</p> <p>广州欢迎你</p> <img src="../images/IMG_0003.JPG" alt="照片"> </body> </html>3. 外部样式position.cssh1{ color: lightgreen; font-size: 60px; } h2{ color: orange; font-size: 30px; } p{ color: lightcoral; font-size: 25px; } img{ width: 400px; }<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>位置2_内部样式</title> <link rel="stylesheet" href="./position.css"> </head> <body> <h1>你好,孙笑川!</h1> <h2>大家好,我是药水哥!</h2> <p>北京欢迎你</p> <p>上海欢迎你</p> <p>广州欢迎你</p> <img src="../images/IMG_0003.JPG" alt="照片"> </body> </html>
2024年03月03日
36 阅读
0 评论
0 点赞
2024-03-03
兼容性处理
使用 html5shiv.js<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>兼容性处理</title> <!--[if lt ie9]> <script src="./html5shiv.js"></script> <![endif]--> <style> header { background-color: orange; } footer { height: 100px; line-height: 100px; background-color: green; text-align: center; } </style> </head> <body> <!-- 头部 --> <header> <h1>xxx商城</h1> </header> <hr> <!-- 主导航 --> <nav> <a href="#">首页</a> <a href="#">订单</a> <a href="#">购物车</a> <a href="#">我的</a> </nav> <!-- 主要内容 --> <div class="page-content"> <article> <h2>感动中国人物</h2> <section> <h3>第一名:孙笑川</h3> <p>男,籍贯四川,33岁</p> </section> <section> <h3>第二名:药水哥</h3> <p>真名刘波,男,籍贯湖北,30岁</p> </section> <section> <h3>第三名:Giao哥</h3> <p>男,籍贯河南,29岁</p> </section> </article> <!-- 侧边栏导航 --> <aside style="float: right;"> <nav> <ul> <li><a href="#">秒杀专区</a></li> <li><a href="#">会员专区</a></li> <li><a href="#">优惠券专区</a></li> <li><a href="#">品牌专区</a></li> </ul> </nav> </aside> </div> <hr> <footer> <nav> <a href="#">友情链接1</a> <a href="#">友情链接2</a> <a href="#">友情链接3</a> <a href="#">友情链接4</a> </nav> </footer> </body> </html>
2024年03月03日
60 阅读
0 评论
0 点赞
2024-03-03
新增的全局属性
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>新增的全局属性</title> <style> div { width: 600px; height: 200px; border: 1px solid black; font-size: 20px; } .box1 { background-color: skyblue; } .box2 { margin-top: 10px; background-color: green; } </style> </head> <body> <div class="box1" contenteditable="true" spellcheck="true">Lor1em ipsum, dolor sit amet consectetur adipisicing elit. Nostrum, repudiandae assumenda sed quod voluptates delectus similique dignissimos enim! Officiis, repellat.</div> <div class="box2" draggable="true" ondragend="go(event)" data-a="1" data-b="2">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nostrum, repudiandae assumenda sed quod voluptates delectus similique dignissimos enim! Officiis, repellat.</div> <script> function go(e) { alert(e.x) } </script> </body> </html>
2024年03月03日
57 阅读
0 评论
0 点赞
2024-03-03
新增的多媒体标签
1. 视频标签<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>新增的视频标签</title> <style> video { width: 600px; } </style> </head> <body> <video src="./小电影.mp4" controls muted loop poster="./封面.png" preload="auto"></video> </body> </html>2. 音频标签<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>新增的音频标签</title> </head> <body> <audio src="./小曲.mp3" controls autoplay loop preload="auto"></audio> </body> </html>
2024年03月03日
62 阅读
0 评论
0 点赞
2024-03-03
表单相关的新增
1. 表单控件属性<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>新增的表单控件属性</title> </head> <body> <form action=""> 账号:<input type="text" name="account" placeholder="请输入账号" required autofocus autocomplete="on" pattern="\w{6}" > <br> 密码:<input type="password" name="pwd" placeholder="请输入密码" required> <br> 性别: <input type="radio" value="male" name="gender" required>男 <input type="radio" value="female" name="gender">女 <br> 爱好: <input type="checkbox" value="smoke" name="hobby">抽烟 <input type="checkbox" value="drink" name="hobby" required>喝酒 <input type="checkbox" value="perm" name="hobby">烫头 <br> 其他:<textarea name="other" placeholder="请输入" required></textarea> <br> <button>提交</button> </form> </body> </html>2. input新增的type属性值<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>input新增的type属性值</title> </head> <body> <form action="" novalidate> 邮箱:<input type="email" name="email" required> <br> 网址:<input type="url" name="url"> <br> 数值:<input type="number" name="number" step="2" max="100" min="10" required> <br> 搜索:<input type="search" name="keyword"> <br> 电话:<input type="tel" name="tel"> <br> 范围:<input type="range" name="range" max="100" min="10"> <br> 颜色:<input type="color" name="color"> <br> 日期:<input type="date" name="date"> <br> 月份:<input type="month" name="month"> <br> 周:<input type="week" name="week"> <br> 时间:<input type="time" name="time1"> <br> 日期+时间:<input type="datetime-local" name="time2"> <br> <button type="submit">提交</button> </form> </body> </html>
2024年03月03日
34 阅读
0 评论
0 点赞
2024-03-03
新增的语义化标签
1. 布局标签<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>新增布局标签</title> </head> <body> <!-- 头部 --> <header> <h1>xxx商城</h1> </header> <hr> <!-- 主导航 --> <nav> <a href="#">首页</a> <a href="#">订单</a> <a href="#">购物车</a> <a href="#">我的</a> </nav> <!-- 主要内容 --> <div class="page-content"> <article> <h2>感动中国人物</h2> <section> <h3>第一名:孙笑川</h3> <p>男,籍贯四川,33岁</p> </section> <section> <h3>第二名:药水哥</h3> <p>真名刘波,男,籍贯湖北,30岁</p> </section> <section> <h3>第三名:Giao哥</h3> <p>男,籍贯河南,29岁</p> </section> </article> <!-- 侧边栏导航 --> <aside style="float: right;"> <nav> <ul> <li><a href="#">秒杀专区</a></li> <li><a href="#">会员专区</a></li> <li><a href="#">优惠券专区</a></li> <li><a href="#">品牌专区</a></li> </ul> </nav> </aside> </div> <hr> <footer> <nav> <a href="#">友情链接1</a> <a href="#">友情链接2</a> <a href="#">友情链接3</a> <a href="#">友情链接4</a> </nav> </footer> </body> </html>2. 状态标签<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>新增的状态标签</title> </head> <body> <span>手机电量:</span> <meter min="0" max="100" value="5" low="10" high="20" optimum="90"></meter> <span>当前进度:</span> <progress max="100" value="80"></progress> </body> </html>3. 列表标签<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>新增的列表标签</title> </head> <body> <form action="#"> <input type="text" list="myData"> <button>搜索</button> </form> <datalist id="myData"> <option value="孙笑川">孙笑川</option> <option value="药水哥">药水哥</option> <option value="Giao哥">Giao哥</option> </datalist> <hr> <details> <summary>如何一夜暴富</summary> <p>白日做梦</p> </details> </body> </html>4. 文本标签<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>新增的文本标签</title> </head> <body> <ruby> <span>魑魅魍魉</span> <rt>chī mèi wǎng liǎng</rt> </ruby> <hr> <p>Lorem ipsum <mark>dolor</mark> sit amet consectetur adipisicing elit. Ipsa in quae molestias id nesciunt consequatur ex deserunt enim reiciendis obcaecati!</p> </body> </html>
2024年03月03日
74 阅读
0 评论
0 点赞
2022-07-17
其他Composition API
1. shallowReactive与shallowRefshallowReactive:只处理对象最外层属性的响应式(浅响应式)shallowRef:只处理基本数据类型的响应式,不进行对象类型的响应式处理使用场景:如果有一个对象数据,结构比较深,但变化时只是第一层(外层)属性变化 ---> shallowReactive如果有一个对象数据,后续功能不会修改该对象中的属性,而是生成一个新的对象来替换 ---> shallowRef2. readOnly与shallowReadOnlyreadOnly:让一个响应式数据变为只读的(深只读)shallowReadOnly:让一个响应式数据变为只读的(浅只读)应用场景:不希望数据被修改时(如:使用的数据是别人传过来的)3. toRaw与markRawtoRow:作用:将一个由 reactive 生成的响应式对象转为普通对象使用场景:用于读取响应式对象对应的普通对象,对这个普通普通对象的所有操作,不会引起页面更新markRaw:作用:标记一个对象,使其永远不会成为响应式对象应用场景:有些值不应被设置为响应式的,如复杂的第三方类库当渲染的对象是不可变数据源的复杂/大列表时,跳过响应式转换可以提高性能4. customRef作用:自定义 ref ,并对其依赖项跟踪和更新触发进行显示控制实现防抖效果:<template> <br> <input type="text" v-model="keyWord"> <h3>{{keyWord}}</h3> </template> <script> import {customRef, ref} from "vue"; export default { name: 'MyDemo', setup() { //数据 //Vue提供的ref //let keyWord = ref('你好') function myRef(value, delay) { return customRef((track, trigger) => { let timer return { get() { console.log(`有人从自定义的myRef容器中读取了数据,value:[${value}]`) //通知Vue追踪value的变化 track() //2.读取 return value }, set(newValue) { console.log(`有人修改了自定义myRef容器中的数据,newValue:[${newValue}]`) clearTimeout(timer) timer = setTimeout(() => { //1.设置值 value = newValue //3.通知Vue重新解析模板 trigger() }, delay) } } }) } //使用自定义的ref let keyWord = myRef('你好', 500) return { keyWord } } } </script> <style scoped> </style>5. provide与inject作用:实现祖组件与后代组件间的通信实现:<!-- 祖组件 --> setup() { ...... let car = reactive({name: '马自达', price: '10w'}) //给后代组件传递数据 provide('car', car) ...... } <!-- 后代组件 --> setup() { ...... let car = inject('car') return {car} ...... }6. 响应式数据的判断isRef:检查是否是 ref 对象isReactive:检查是否是 reactive 对象isReadOnly:检查一个对象是否是由 readOnly 创建的只读代理对象isProxy:检查一个对象是否是由 reactive 或 readOnly 创建的代理对象
2022年07月17日
62 阅读
0 评论
0 点赞
1
...
7
8
9
...
14