vue黑马之小兔鲜首页组件案例

素材领取:点我领取素材
提取码:1024

页面开发思路:
1.分析页面,按模块拆分组件,搭架子 (局部或全局注册)
2.根据设计图,编写组件html 结构 css 样式(已准备好)
3.拆分封装通用小组件 (局部或全局注册将来>通过js动态染,实现功能

父组件代码:

<template><div class="App"><!-- 快捷链接 --><XtxShortCut></XtxShortCut><!-- 顶部导航 --><XtxHeaderNav></XtxHeaderNav><!-- 轮播区域 --><XtxBanner></XtxBanner><!-- 新鲜好物 --><XtxNewGoods></XtxNewGoods><!-- 热门品牌 --><XtxHotBrand></XtxHotBrand><!-- 最新专题 --><XtxTopic></XtxTopic><!-- 版权底部 --><XtxFooter></XtxFooter></div>
</template><script>
import XtxShortCut from "./components/XtxShortCut.vue"
import XtxHeaderNav from "./components/XtxHeaderNav.vue"
import XtxBanner from "./components/XtxBanner.vue"
import XtxNewGoods from "./components/XtxNewGoods.vue"
import XtxHotBrand from "./components/XtxHotBrand.vue"
import XtxTopic from "./components/XtxTopic.vue"
import XtxFooter from "./components/XtxFooter.vue"
export default {name: 'VueApp',components: {XtxShortCut,XtxHeaderNav,XtxBanner,XtxNewGoods,XtxHotBrand,XtxTopic,XtxFooter}
};
</script><style lang="scss" scoped></style>

子组件XtxShortCut代码:

<template><!-- 快捷链接  --><div class="shortcut"><div class="wrapper"><ul><li><a href="#" class="login">请先登录</a></li><li><a href="#">免费注册</a></li><li><a href="#">我的订单</a></li><li><a href="#">会员中心</a></li><li><a href="#">帮助中心</a></li><li><a href="#">在线客服</a></li><li><a href="#"><span class="iconfont icon-mobile-phone"></span>手机版</a></li></ul></div></div>
</template><script>
export default {name: 'VueXtxShortCut',
};
</script><style scoped>
/* 快捷导航 */
.shortcut {height: 52px;line-height: 52px;background-color: #333;
}.shortcut .wrapper {display: flex;justify-content: flex-end;
}.shortcut ul {display: flex;
}.shortcut a {padding: 0 15px;border-right: 1px solid #999;color: #fff;font-size: 14px;line-height: 14px;
}.shortcut .login {color: #5EB69C;
}.shortcut .icon-mobile-phone {margin-right: 5px;
}
</style>

子组件XtxHeaderNav代码:

<template><!-- 头部导航  --><div class="header wrapper"><!-- logo --><div class="logo"><h1><a href="#">小兔鲜儿</a></h1></div><!-- 导航 --><div class="nav"><ul><li><a href="#">首页</a></li><li><a href="#">生鲜</a></li><li><a href="#">美食</a></li><li><a href="#">餐厨</a></li><li><a href="#">电器</a></li><li><a href="#">居家</a></li><li><a href="#">洗护</a></li><li><a href="#">孕婴</a></li><li><a href="#">服装</a></li></ul></div><!-- 搜索 --><div class="search"><span class="iconfont icon-search"></span><input type="text" placeholder="搜一搜" /></div><!-- 购物车 --><div class="cart"><span class="iconfont icon-cart-full"></span><i>2</i></div></div>
</template><script>
export default {name: 'VueXtxHeaderNav',
};
</script><style scoped>
/* 头部导航 */
.header {display: flex;margin: 22px auto;
}.header .logo {margin-right: 40px;width: 200px;height: 88px;background-color: pink;
}.header .logo a {display: block;width: 200px;height: 88px;background-image: url(~@/assets/images/logo.png);font-size: 0;
}.header .nav {margin-top: 33px;margin-right: 27px;
}.header .nav ul {display: flex;
}.header .nav li {margin-right: 48px;
}.header .nav a {display: block;height: 34px;
}.header .nav a:hover {border-bottom: 2px solid #5EB69C;
}.header .search {display: flex;margin-right: 45px;margin-top: 33px;width: 170px;height: 34px;border-bottom: 2px solid #F4F4F4;
}.header .search .icon-search {margin-right: 8px;font-size: 20px;color: #999;
}.header .search input {flex: 1;
}.header .search input::placeholder {color: #ccc;
}.header .cart {position: relative;margin-top: 33px;
}.header .cart .icon-cart-full {font-size: 24px;
}.header .cart i {position: absolute;/* right: -5px; */left: 15px;top: 0;padding: 0 5px;height: 15px;background-color: #E26237;border-radius: 7px;font-size: 12px;color: #fffefe;line-height: 15px;
}
</style>

子组件XtxBanner代码:

<template><!-- 轮播区域 --><div class="banner"><div class="wrapper"><!-- 图 --><ul class="pic"><li><a href="#"><img src="@/assets/images/banner1.png" alt="" /></a></li><li><a href="#"><img src="@/assets/images/banner1.png" alt="" /></a></li></ul><!-- 侧导航 --><div class="subnav"><ul><li><div><span><a href="#">生鲜</a></span><span><a href="#">水果</a><a href="#">蔬菜</a></span></div><i class="iconfont icon-arrow-right-bold"></i></li><li><div><span><a href="#">美食</a></span><span><a href="#">面点</a><a href="#">干果</a></span></div><i class="iconfont icon-arrow-right-bold"></i></li><li><div><span><a href="#">餐厨</a></span><span><a href="#">数码产品</a></span></div><i class="iconfont icon-arrow-right-bold"></i></li><li><div><span><a href="#">电器</a></span><span><a href="#">床品</a><a href="#">四件套</a><a href="#">被枕</a></span></div><i class="iconfont icon-arrow-right-bold"></i></li><li><div><span><a href="#">居家</a></span><span><a href="#">奶粉</a><a href="#">玩具</a><a href="#">辅食</a></span></div><i class="iconfont icon-arrow-right-bold"></i></li><li><div><span><a href="#">洗护</a></span><span><a href="#">洗发</a><a href="#">洗护</a><a href="#">美妆</a></span></div><i class="iconfont icon-arrow-right-bold"></i></li><li><div><span><a href="#">孕婴</a></span><span><a href="#">奶粉</a><a href="#">玩具</a></span></div><i class="iconfont icon-arrow-right-bold"></i></li><li><div><span><a href="#">服饰</a></span><span><a href="#">女装</a><a href="#">男装</a></span></div><i class="iconfont icon-arrow-right-bold"></i></li><li><div><span><a href="#">杂货</a></span><span><a href="#">户外</a><a href="#">图书</a></span></div><i class="iconfont icon-arrow-right-bold"></i></li><li><div><span><a href="#">品牌</a></span><span><a href="#">品牌制造</a></span></div><i class="iconfont icon-arrow-right-bold"></i></li></ul></div><!-- 指示器 --><ol><li class="current"><i></i></li><li><i></i></li><li><i></i></li></ol></div></div>
</template><script>
export default {name: 'VueXtxBanner',
};
</script><style scoped>
/* 轮播区域 */
.banner {height: 500px;background-color: #F5F5F5;
}.banner .wrapper {position: relative;overflow: hidden;
}.banner .pic {display: flex;width: 3720px;height: 500px;
}.banner .pic li {width: 1240px;height: 500px;
}.banner .subnav {position: absolute;left: 0;top: 0;width: 250px;height: 500px;background-color: rgba(0, 0, 0, 0.42);
}.banner .subnav li {display: flex;justify-content: space-between;padding: 0 20px 0 30px;height: 50px;line-height: 50px;
}.banner .subnav a,
.banner .subnav i {color: #fff;
}.banner .subnav li span:nth-child(1) {margin-right: 14px;
}.banner .subnav li span:nth-child(2) a {margin-right: 5px;
}.banner .subnav li span:nth-child(2) a {font-size: 14px;
}.banner .subnav li:hover {background-color: #00BE9A;
}.banner ol {position: absolute;right: 17px;bottom: 17px;display: flex;
}.banner ol li {cursor: pointer;margin-left: 8px;padding: 4px;width: 22px;height: 22px;background-color: transparent;border-radius: 50%;
}.banner ol li i {display: block;width: 14px;height: 14px;background-color: rgba(255, 255, 255, 0.5);border-radius: 50%;
}.banner ol .current {background-color: rgba(255, 255, 255, 0.5);
}.banner ol .current i {background-color: #fff;
}
</style>

子组件XtxNewGoods代码:

<template><!-- 新鲜好物 --><div class="goods wrapper"><div class="title"><div class="left"><h3>新鲜好物</h3><p>新鲜出炉 品质靠谱</p></div><div class="right"><a href="#" class="more">查看全部<span class="iconfont icon-arrow-right-bold"></span></a></div></div><div class="bd"><ul><li><a href="#"><div class="pic"><img src="@/assets/images/goods1.png" alt="" /></div><div class="txt"><h4>KN95级莫兰迪色防护口罩</h4><p>¥ <span>79</span></p></div></a></li><li><a href="#"><div class="pic"><img src="@/assets/images/goods2.png" alt="" /></div><div class="txt"><h4>KN95级莫兰迪色防护口罩</h4><p>¥ <span>566</span></p></div></a></li><li><a href="#"><div class="pic"><img src="@/assets/images/goods3.png" alt="" /></div><div class="txt"><h4>法拉蒙高颜值记事本可定制</h4><p>¥ <span>58</span></p></div></a></li><li><a href="#"><div class="pic"><img src="@/assets/images/goods4.png" alt="" /></div><div class="txt"><h4>科技布布艺沙发</h4><p>¥ <span>3759</span></p></div></a></li></ul></div></div>
</template><script>
export default {name: 'VueXtxNewGoods',
};
</script><style scoped>
/* 新鲜好物 */
.goods .bd ul {display: flex;justify-content: space-between;
}.goods .bd li {width: 304px;height: 404px;background-color: #EEF9F4;
}.goods .bd li {display: block;
}.goods .bd li .pic {width: 304px;height: 304px;
}.goods .bd li .txt {text-align: center;
}.goods .bd li h4 {margin-top: 17px;margin-bottom: 8px;font-size: 20px;
}.goods .bd li p {font-size: 18px;color: #AA2113;
}.goods .bd li p span {font-size: 22px;
}
</style>

子组件XtxHotBrand代码:

<template><!-- 热门品牌 --><div class="hot"><div class="wrapper"><div class="title"><div class="left"><h3>热门品牌</h3><p>国际经典 品质认证</p></div><div class="button"><a href="#"><i class="iconfont icon-arrow-left-bold"></i></a><a href="#"><i class="iconfont icon-arrow-right-bold"></i></a></div></div><div class="bd"><ul><li><a href="#"><img src="@/assets/images/hot1.png" alt="" /></a></li><li><a href="#"><img src="@/assets/images/hot2.png" alt="" /></a></li><li><a href="#"><img src="@/assets/images/hot3.png" alt="" /></a></li><li><a href="#"><img src="@/assets/images/hot4.png" alt="" /></a></li><li><a href="#"><img src="@/assets/images/hot5.png" alt="" /></a></li></ul></div></div></div>
</template><script>
export default {name: 'VueXtxHotBrand',
};
</script><style scoped>
/* 热门品牌 */
.hot {margin-top: 60px;padding-bottom: 40px;overflow: hidden;background-color: #F5F5F5;
}.hot .title {position: relative;margin-bottom: 40px;
}.hot .button {display: flex;position: absolute;right: 0;top: 47px;
}.hot .button a {display: block;width: 20px;height: 20px;background-color: #ddd;text-align: center;line-height: 20px;color: #fff;
}.hot .button a:nth-child(2) {margin-left: 12px;background-color: #00BE9A;
}.hot .bd ul {display: flex;justify-content: space-between;
}.hot .bd li {width: 244px;height: 306px;
}
</style>

子组件XtxTopic代码:

<template><!-- 最新专题 --><div class="topic wrapper"><div class="title"><div class="left"><h3>最新专题</h3></div><div class="right"><a href="#" class="more">查看全部<span class="iconfont icon-arrow-right-bold"></span></a></div></div><div class="topic_bd"><ul><li><a href="#"><div class="pic"><img src="@/assets/images/topic1.png" alt="" /><div class="info"><div class="left"><h5>吃这些美食才不算辜负自己</h5><p>餐厨起居洗护好物</p></div><div class="right">¥<span>29.9</span></div></div></div><div class="txt"><div class="left"><p><span class="iconfont icon-favorites-fill red"></span><i>1200</i></p><p><span class="iconfont icon-browse"></span><i>1800</i></p></div><div class="right"><span class="iconfont icon-comment"></span><i>246</i></div></div></a></li><li><a href="#"><div class="pic"><img src="@/assets/images/topic2.png" alt="" /><div class="info"><div class="left"><h5>吃这些美食才不算辜负自己</h5><p>餐厨起居洗护好物</p></div><div class="right">¥<span>29.9</span></div></div></div><div class="txt"><div class="left"><p><span class="iconfont icon-fabulous"></span><i>1200</i></p><p><span class="iconfont icon-browse"></span><i>1800</i></p></div><div class="right"><span class="iconfont icon-comment"></span><i>246</i></div></div></a></li><li><a href="#"><div class="pic"><img src="@/assets/images/topic3.png" alt="" /><div class="info"><div class="left"><h5>吃这些美食才不算辜负自己</h5><p>餐厨起居洗护好物</p></div><div class="right">¥<span>29.9</span></div></div></div><div class="txt"><div class="left"><p><span class="iconfont icon-fabulous"></span><i>1200</i></p><p><span class="iconfont icon-browse"></span><i>1800</i></p></div><div class="right"><span class="iconfont icon-comment"></span><i>246</i></div></div></a></li></ul></div></div>
</template><script>
export default {name: 'VueXtxTopic',
};
</script><style scoped>
/* 最新专题 */
.topic {padding-top: 60px;margin-bottom: 40px;
}.topic_bd ul {display: flex;justify-content: space-between;
}.topic_bd li {width: 405px;height: 355px;
}.topic_bd .pic {position: relative;width: 405px;height: 288px;
}.topic_bd .txt {display: flex;justify-content: space-between;padding: 0 15px;height: 67px;line-height: 67px;color: #666;font-size: 14px;
}.topic_bd .txt .left {display: flex;
}.topic_bd .txt .left p {margin-right: 20px;
}.topic_bd .txt .left .red {color: #AA2113;
}.topic_bd .info {position: absolute;left: 0;bottom: 0;display: flex;justify-content: space-between;padding: 0 15px;width: 100%;height: 90px;background-image: linear-gradient(180deg, rgba(137, 137, 137, 0.00) 0%, rgba(0, 0, 0, 0.90) 100%);
}.topic_bd .info .left {padding-top: 20px;color: #fff;
}.topic_bd .info .left h5 {margin-bottom: 5px;font-size: 20px;
}.topic_bd .info .right {margin-top: 35px;padding: 0 7px;height: 25px;line-height: 25px;background-color: #fff;color: #AA2113;font-size: 15px;
}
</style>

子组件XtxFooter代码:

<template><!-- 版权底部 --><div class="footer"><div class="wrapper"><div class="service"><ul><li><span></span><p>价格亲民</p></li><li><span></span><p>物流快捷</p></li><li><span></span><p>品质新鲜</p></li><li><span></span><p>售后无忧</p></li></ul></div><div class="help"><div class="left"><dl><dt>购物指南</dt><dd><a href="#">购物流程</a></dd><dd><a href="#">支付方式</a></dd><dd><a href="#">售后规则</a></dd></dl><dl><dt>配送方式</dt><dd><a href="#">配送运费</a></dd><dd><a href="#">配送范围</a></dd><dd><a href="#">配送时间</a></dd></dl><dl><dt>关于我们</dt><dd><a href="#">平台规则</a></dd><dd><a href="#">联系我们</a></dd><dd><a href="#">问题反馈</a></dd></dl><dl><dt>售后服务</dt><dd><a href="#">售后政策</a></dd><dd><a href="#">退款说明</a></dd><dd><a href="#">取消订单</a></dd></dl><dl><dt>服务热线</dt><dd><a href="#">在线客服<span class="iconfont icon-customer-service"></span></a></dd><dd><a href="#">客服电话 400-0000-000</a></dd><dd><a href="#">工作时间 周一至周日 8:00-18:00</a></dd></dl></div><div class="right"><ul><li><div><img src="@/assets/images/wechat.png" alt="" /></div><p>微信公众号</p></li><li><div><img src="@/assets/images/app.png" alt="" /></div><p>APP下载二维码</p></li></ul></div></div><div class="copyright"><p><a href="#">关于我们</a>|<a href="#">帮助中心</a>|<a href="#">售后服务</a>|<a href="#">配送与验收</a>|<ahref="#">商务合作</a>|<a href="#">搜索推荐</a>|<a href="#">友情链接</a></p><p>CopyRight © 小兔鲜</p></div></div></div>
</template><script>
export default {name: 'VueXtxFooter',
};
</script><style scoped>
/* 版权底部 */
.footer {height: 580px;background-color: #F5F5F5;
}.footer .service {padding: 60px 0;height: 180px;border-bottom: 1px solid #E8E8E8;
}.footer .service ul {display: flex;justify-content: space-around;
}.footer .service li {display: flex;line-height: 58px;
}.footer .service span {display: block;margin-right: 20px;width: 58px;height: 58px;background-image: url(~@/assets/images/sprite.png);
}.footer .service li:nth-child(2) span {background-position: 0 -58px;
}.footer .service li:nth-child(3) span {background-position: 0 -116px;
}.footer .service li:nth-child(4) span {background-position: 0 -174px;
}.footer .service p {font-size: 28px;
}.footer .help {display: flex;justify-content: space-between;margin-top: 60px;
}.footer .help .left {display: flex;
}.footer .help .left dl {margin-right: 84px;
}.footer .help .left dt {margin-bottom: 30px;font-size: 18px;
}.footer .help .left dd {margin-bottom: 10px;
}.footer .help .left dd a {color: #969696;
}.footer .help .right ul {display: flex;align-items: flex-start;
}.footer .help .right li:nth-child(1) {margin-right: 55px;text-align: center;
}.footer .help .right div {margin-bottom: 10px;width: 120px;height: 120px;color: #969696;
}.icon-customer-service {margin-left: 3px;color: #00BE9A;
}.copyright {margin-top: 100px;text-align: center;color: #A1A1A1;
}.copyright p {margin-bottom: 15px;
}.copyright a {margin: 0 10px;color: #A1A1A1;
}
</style>

感谢大家的阅读,如有不对的地方,可以向我提出,感谢大家!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/583692.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

react 之 美团案例

1.案例展示 2.环境搭建 克隆项目到本地&#xff08;内置了基础静态组件和模版&#xff09; git clone http://git.itcast.cn/heimaqianduan/redux-meituan.git 安装所有依赖 npm i 启动mock服务&#xff08;内置了json-server&#xff09; npm run serve 启动前端服务 npm…

mp4视频转rosbag文件(图片压缩格式)

目录 目的 环境 主要步骤 创建py文件 执行py文件 效果 程序解释 后续调整 目的 将相机录制的mp4格式文件&#xff0c;转为ROS系统能使用的bag格式文件。 环境 安装有ROS和python2 主要步骤 创建py文件 新建python文件Video2ROSbag.py #this is ok # -*- coding: …

零代码也能玩出花:Mugeda在H5设计中的魔法力量

文章目录 一、Mugeda零代码可视化H5设计工具简介二、Mugeda零代码可视化H5设计实战案例1. 注册并登录Mugeda账号2. 选择模板3. 编辑页面内容4. 添加动画效果5. 预览和发布 三、Mugeda零代码可视化H5设计的优势《Mugeda零代码可视化H5设计实战》内容简介作者简介目录前言/序言 随…

C练习——一元二次方程求解

题目&#xff1a;编程计算并输出一元二次方程ax bxc0的两个根 解析&#xff1a;先判断delta与0的关系&#xff0c; 若delta>0,则有两个不同的实根&#xff0c;利用求根公式( -b 土 √b^2 -4*a*c)/2*a &#xff1b; 若delta0,则有两个相同的实根&#xff0c;则根为x1 x2 …

Docker本地部署开源浏览器Firefox并远程访问进行测试

文章目录 1. 部署Firefox2. 本地访问Firefox3. Linux安装Cpolar4. 配置Firefox公网地址5. 远程访问Firefox6. 固定Firefox公网地址7. 固定地址访问Firefox Firefox是一款免费开源的网页浏览器&#xff0c;由Mozilla基金会开发和维护。它是第一个成功挑战微软Internet Explorer浏…

Rest Client

ES官方提供了各种不同语言的客户端&#xff0c;用来操作ES。这些客户端的本质就是组装DSL语句&#xff0c;通过http请求发送给ES。官方文档地址&#xff1a;Elasticsearch Clients | Elastic 初始化RestClient 引入es的RestHighLevelClient依赖&#xff1a; <dependency&…

Windows环境检验NodeJs安装是否成功

Windows环境检验NodeJs安装是否成功 检验方法 1、winR 打开运行窗口&#xff0c;在此窗口输入cmd命令 2、进入命令提示符窗口&#xff0c;分别输入以下命令&#xff0c;显示版本号&#xff0c;则安装成功 node -v&#xff1a;显示安装的nodejs版本npm -v&#xff1a;显示安装…

如何衡量程序运行的效率

文章目录 复杂度是什么不同算法对复杂度的影响方法一方法二 时间复杂度与代码结构的关系例 1:最大值例2:最大次数 降低时间复杂度的必要性总结 当你在大数据环境中开发代码时&#xff0c;你一定遇到过程序执行好几个小时、甚至好几天的情况&#xff0c;或者是执行过程中电脑几乎…

Lunix的奇妙冒险————权限篇

文章目录 一.什么是权限二.用户权限和类别。1.用户2.角色3.更换文件角色 三.文件的类别和对应权限1.文件的类别。2.文件属性权限1.权限说明。2.默认生成文件权限来源3.更改权限 3.文件的执行与删除 四.不同用户共同在一个目录下的权限。1.普通用户家目录2.在同一目录下文件的权…

LabVIEW的便携式车辆振动测试分析

随着计算机和软件技术的发展&#xff0c;虚拟仪器正逐渐成为机械工业测试领域的主流。在现代机械工程中&#xff0c;特别是车辆振动测试&#xff0c;传统的测试方法不仅设备繁杂、成本高昂&#xff0c;而且操作复杂。为解决这些问题&#xff0c;开发了一款基于美国国家仪器公司…

【新版Hi3559AV100 旗舰8K30 AI摄像机芯片】

新版Hi3559AV100 旗舰8K30 AI摄像机芯片 一、总体介绍 Hi3559AV100是专业的8K Ultra-HD Camera SOC&#xff0c;它提供了8K30/4K120广播级图像质量的数字视频录制&#xff0c;支持8路Sensor输入&#xff0c;支持H.265编码输出或影视级的RAW数据输出&#xff0c;并集成高性能ISP…

proE各版本安装指南

下载链接 https://pan.baidu.com/s/1BSaJxvPPGeIa4YKm7xk57g?pwd0531 1.鼠标右击【Proe5.0M280(64bit)】压缩包&#xff08;win11及以上系统需先点击“显示更多选项”&#xff09;选择【解压到 Proe5.0M280(64bit)】&#xff08;解压的路径中不能有中文&#xff09;。 2.打开…

HarmonyOS应用配置文件app对象内部结构,deviceConfig内部结构(FA模型)

应用配置文件概述&#xff08;FA模型&#xff09; 每个应用项目必须在项目的代码目录下加入配置文件&#xff0c;这些配置文件会向HarmonyOS的编译工具、HarmonyOS操作系统和应用市场提供描述应用的基本信息。 应用配置文件需申明以下内容&#xff1a; 应用的软件包名称&…

存算分离降本增效,StarRocks 助力聚水潭 SaaS 业务服务化升级

作者&#xff1a;聚水潭数据研发负责人 溪竹 聚水潭是中国领先的 SaaS 软件服务商&#xff0c;核心产品是电商 ERP&#xff0c;协同350余家电商平台&#xff0c;为商家提供综合的信息化、数字化解决方案。公司是偏线下商家侧的 toB 服务商&#xff0c;员工人数超过3500&#xf…

Arthas常用命令

Arthas常用命令 help 显示Arthas帮助auth 对当前会话进行身份验证keymap 显示指定连接的所有可用的keymap。sc 搜索JVM加载的所有类sm 搜索JVM加载类的方法classloader 显示classloader信息jad 分解类getstatic 显示类的静态字段monitor 监…

Ubuntu安装K8S(1.28版本,基于containrd)

原文网址&#xff1a;Ubuntu安装K8S(1.28版本&#xff0c;基于containrd&#xff09;-CSDN博客 简介 本文介绍Ubuntu安装K8S的方法。 官网文档&#xff1a;这里 1.安装K8S 1.让apt支持SSL传输 sudo apt-get update sudo apt-get -y install apt-transport-https ca-certi…

计算机图形学光线追踪大作业C++基于Optix为框架实现的光线追踪算法合集,含直射光阴影效果、漫反射阴影效果、镜面反射效果等示例

MineRay 使用Optix为框架实现的光线追踪算法。 包含4个示例&#xff0c;直射光阴影效果、漫反射阴影效果、镜面反射效果、折射效果 环境需求 本项目在Windows 10中测试&#xff0c;以下环境为Windows中的环境 CUDA 10.1 OptiX 7 SDK cmake 编译方式 使用cmake编译 打开Mi…

TCP连接数据包解析

1、TCP的SYN标志位&#xff0c;它表示一个TCP连接的初始同步请求。这条信息描述了一个从端口184到端口80的TCP连接请求&#xff0c;其中包含了一些TCP连接的参数和标志位。这条信息的各个部分内容&#xff1a; 184**->80**: 这表示源端口是184**&#xff0c;目标端口是80**…

nbuntu 18.04 终端打开后无内容

1. 问题 2. 删除bash并重新安装 删除&#xff1a; sudo rm /bin/bash &#xff08;https://blog.csdn.net/u011128515/article/details/22896837&#xff09; 再安装&#xff1a; bash文件电脑中是有下载的deb文件的&#xff0c;按上图路径找到了并下载了出来 ar t bash_4.4…

反转链表、链表的中间结点、合并两个有序链表(leetcode 一题多解)

一、反转链表 给你单链表的头节点 head &#xff0c;请你反转链表&#xff0c;并返回反转后的链表。 力扣&#xff08;LeetCode&#xff09;官网 - 全球极客挚爱的技术成长平台 思路一&#xff1a;翻转单链表指针方向 这里解释一下三个指针的作用&#xff1a; n1&#xff1…