搞一个boostrap主题,用django的mtv去对接

news2024/9/23 22:27:46

请添加图片描述

nginx的配置,设定这个模板映射的路径

    location /assets/{
        alias  /home/luichun/lc/Pyfile/Pyhome/app/statichome_to_nginx/pifu/dist/assets/;
    }

1:设定一个主页的路由【django主要用来设定逻辑】
2:设定主页的响应内容【使用boostrap框架来对前端展示进行美化】
3:根据模板的js 与css 加入到页面
4:根据想要的内容一点点填充上去
5:分开页面头部,身体,页脚

设置它这个页面html代码的顺序

<!DOCTYPE html>
<html lang="en">

<head>

    <!-- Required Meta Tags Always Come First -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Title -->
    <title _msttexthash="59172854" _msthash="0">企业 |空间 - 多用途响应式模板</title>

    <!-- Favicon -->
    <link rel="shortcut icon" href="./favicon.ico">

    <!-- Font -->
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&amp;display=swap" rel="stylesheet">

    <!-- CSS Implementing Plugins -->


    <link rel="stylesheet" href="./assets/vendor/bootstrap-icons/font/bootstrap-icons.css">
    <!-- <link rel="stylesheet" href="./assets/vendor/hs-mega-menu/dist/hs-mega-menu.min.css"> -->
    <!-- CSS Implementing Plugins -->
    <link rel="stylesheet" href="./assets/vendor/hs-mega-menu/dist/hs-mega-menu.min.css">

    <!-- CSS Space Template -->
    <link rel="stylesheet" href="./assets/css/theme.min.css">






</head>

<body>
    <!-- ========== HEADER ========== -->
    <header id="header" class="navbar navbar-expand-lg navbar-light navbar-end bg-white">
        <div class="container">
            <nav class="js-mega-menu navbar-nav-wrap">
                <!-- Default Logo -->
                <a class="navbar-brand" href="#" aria-label="Space">
                    <img class="navbar-brand-logo" src="./assets/svg/logos/logo.svg" alt="Image Description">
                </a>
                <!-- End Default Logo -->

                <!-- Toggler -->
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse"
                    data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false"
                    aria-label="Toggle navigation">
                    <span class="navbar-toggler-default">
                        <i class="bi-list"></i>
                    </span>
                    <span class="navbar-toggler-toggled">
                        <i class="bi-x"></i>
                    </span>
                </button>
                <!-- End Toggler -->

                <!-- Collapse -->
                <div class="collapse navbar-collapse" id="navbarNavDropdown">
                    <ul class="navbar-nav">
                        <!-- Landings -->
                        <li class="hs-has-mega-menu nav-item" data-hs-mega-menu-item-options='{
                  "desktop": {
                    "maxWidth": "30rem"
                  }
                }'>
                            <a id="landingsMegaMenu" class="hs-mega-menu-invoker nav-link dropdown-toggle"
                                aria-current="page" href="#" role="button" aria-expanded="false">Landings</a>

                            <!-- Mega Menu -->
                            <div class="hs-mega-menu hs-position-right-fix dropdown-menu"
                                aria-labelledby="landingsMegaMenu" style="min-width: 30rem;">
                                <!-- Main Content -->
                                <div class="navbar-dropdown-menu-inner">
                                    <div class="row">
                                        <div class="col-sm mb-3 mb-sm-0">
                                            <span class="dropdown-header">Classic</span>
                                            <a class="dropdown-item" href="#">Corporate</a>
                                            <a class="dropdown-item" href="#">Agency</a>
                                            <a class="dropdown-item" href="#">Consulting</a>
                                            <a class="dropdown-item" href="#">Services</a>
                                            <a class="dropdown-item" href="#">Business</a>
                                        </div>

                                        <div class="col-sm">
                                            <span class="dropdown-header">Apps</span>
                                            <a class="dropdown-item" href="#">Growth</a>
                                            <a class="dropdown-item" href="#">SaaS</a>
                                            <a class="dropdown-item" href="#">Wallet</a>
                                            <a class="dropdown-item" href="#">API</a>
                                        </div>
                                    </div>
                                    <!-- End Row -->
                                </div>
                                <!-- End Main Content -->
                            </div>
                            <!-- End Mega Menu -->
                        </li>
                        <!-- End Landings -->

                        <!-- Pages -->
                        <li class="hs-has-mega-menu nav-item">
                            <a id="pagesMegaMenu" class="hs-mega-menu-invoker nav-link dropdown-toggle" href="#"
                                role="button" aria-expanded="false">Pages</a>

                            <!-- Mega Menu -->
                            <div class="hs-mega-menu hs-position-right dropdown-menu w-100"
                                aria-labelledby="pagesMegaMenu" style="min-width: 42rem;">
                                <!-- Main Content -->
                                <div class="navbar-dropdown-menu-inner">
                                    <div class="row">
                                        <div class="col-sm-6 col-md">
                                            <span class="dropdown-header">Company</span>
                                            <a class="dropdown-item" href="#">About</a>
                                            <a class="dropdown-item" href="#">Services</a>
                                            <a class="dropdown-item" href="#">Customer Stories</a>
                                            <a class="dropdown-item" href="#">Single Customer Story</a>
                                            <a class="dropdown-item" href="#">Help Center</a>
                                            <a class="dropdown-item" href="#">Help Center Categories</a>
                                            <a class="dropdown-item" href="#">Single Help Center</a>
                                        </div>

                                        <div class="col-sm-6 col-md mb-3 mb-md-0">
                                            <span class="dropdown-header invisible">Company</span>
                                            <a class="dropdown-item" href="#">Careers</a>
                                            <a class="dropdown-item" href="#">Careers Single</a>
                                            <a class="dropdown-item" href="#">Hire Us</a>
                                            <a class="dropdown-item" href="#">Contacts</a>
                                            <a class="dropdown-item" href="#">Log In</a>
                                            <a class="dropdown-item" href="#">Sign Up</a>
                                            <a class="dropdown-item" href="#">Forgot Password</a>
                                        </div>

                                        <div class="col-sm-6 col-md mb-3 mb-md-0">
                                            <span class="dropdown-header">Portfolio</span>
                                            <a class="dropdown-item" href="#">Modern</a>
                                            <a class="dropdown-item" href="#">Classic</a>
                                            <a class="dropdown-item" href="#">Case Study</a>
                                        </div>

                                        <div class="col-sm-6 col-md">
                                            <span class="dropdown-header">Specialty pages</span>
                                            <a class="dropdown-item" href="#">Pricing</a>
                                            <a class="dropdown-item" href="#">Coming Soon</a>
                                            <a class="dropdown-item" href="#">Error 404</a>
                                            <a class="dropdown-item" href="#">Terms & Conditions</a>
                                            <a class="dropdown-item" href="#">Privacy & Policy</a>
                                        </div>
                                    </div>
                                    <!-- End Row -->
                                </div>
                                <!-- End Main Content -->
                            </div>
                            <!-- End Mega Menu -->
                        </li>
                        <!-- End Pages -->

                        <!-- Blog -->
                        <li class="hs-has-sub-menu nav-item">
                            <a id="blogMegaMenu" class="hs-mega-menu-invoker nav-link dropdown-toggle" href="#"
                                role="button" aria-expanded="false">Blog</a>

                            <!-- Mega Menu -->
                            <div class="hs-sub-menu dropdown-menu" aria-labelledby="blogMegaMenu"
                                style="min-width: 12rem;">
                                <a class="dropdown-item" href="#">Classic</a>
                                <a class="dropdown-item" href="#">Author Profile</a>
                                <a class="dropdown-item" href="#">Single Article</a>
                            </div>
                            <!-- End Mega Menu -->
                        </li>
                        <!-- End Blog -->

                        <!-- Docs -->
                        <li class="hs-has-mega-menu nav-item" data-hs-mega-menu-item-options='{
                  "desktop": {
                    "maxWidth": "20rem"
                  }
                }'>
                            <a id="docsMegaMenu" class="hs-mega-menu-invoker nav-link dropdown-toggle" href="#"
                                role="button" aria-expanded="false">Docs</a>

                            <!-- Mega Menu -->
                            <div class="hs-mega-menu hs-position-right dropdown-menu" aria-labelledby="docsMegaMenu"
                                style="min-width: 20rem;">
                                <!-- Link -->
                                <a class="navbar-dropdown-menu-media-link" href="#">
                                    <div class="d-flex">
                                        <div class="flex-shrink-0">
                                            <span class="svg-icon svg-icon-sm text-primary">
                                                <img src="/assets/vendor/duotone-icons/gen/gen005.svg" alt="Your SVG File">
                                            </span>
                                        </div>

                                        <div class="flex-grow-1 ms-3">
                                            <span class="navbar-dropdown-menu-media-title">Documentation <span
                                                    class="badge bg-primary rounded-pill ms-1">v1.0</span></span>
                                            <p class="navbar-dropdown-menu-media-desc">Development guides for building
                                                projects with Space</p>
                                        </div>
                                    </div>
                                </a>
                                <!-- End Link -->

                                <div class="dropdown-divider"></div>

                                <!-- Link -->
                                <a class="navbar-dropdown-menu-media-link" href="#">
                                    <div class="d-flex">
                                        <div class="flex-shrink-0">
                                            <span class="svg-icon svg-icon-sm text-primary">
                                                <img src="/assets/vendor/duotone-icons/cod/cod010.svg" alt="Your SVG File">
                                            </span>
                                        </div>

                                        <div class="flex-grow-1 ms-3">
                                            <span class="navbar-dropdown-menu-media-title">Snippets</span>
                                            <p class="navbar-dropdown-menu-media-desc">Move quickly with
                                                copy-to-clipboard feature</p>
                                        </div>
                                    </div>
                                </a>
                                <!-- End Link -->
                            </div>
                            <!-- End Mega Menu -->
                        </li>
                        <!-- End Docs -->

                        <li class="nav-divider"></li>

                        <!-- Log in -->
                        <li class="nav-item">
                            <a class="js-animation-link btn btn-ghost-secondary btn-no-focus me-2 me-lg-0"
                                href="javascript:;" role="button" data-bs-toggle="modal" data-bs-target="#signupModal"
                                data-hs-show-animation-options='{
                         "targetSelector": "#signupModalFormLogin",
                         "groupName": "idForm"
                       }'>Log in</a>

                            <a class="js-animation-link d-lg-none btn btn-primary" href="javascript:;" role="button"
                                data-bs-toggle="modal" data-bs-target="#signupModal" data-hs-show-animation-options='{
                         "targetSelector": "#signupModalFormSignup",
                         "groupName": "idForm"
                       }'>
                                <i class="bi-person-circle me-1"></i> Sign up
                            </a>
                        </li>
                        <!-- End Log in -->

                        <!-- Sign up -->
                        <li class="nav-item">
                            <a class="js-animation-link d-none d-lg-inline-block btn btn-primary" href="javascript:;"
                                role="button" data-bs-toggle="modal" data-bs-target="#signupModal"
                                data-hs-show-animation-options='{
                         "targetSelector": "#signupModalFormSignup",
                         "groupName": "idForm"
                       }'>
                                <i class="bi-person-circle me-1"></i> Sign up
                            </a>
                        </li>
                        <!-- End Sign up -->
                    </ul>
                </div>
                <!-- End Collapse -->
            </nav>
        </div>
    </header>
    <!-- ========== END HEADER ========== -->

    <!-- ========== SECONDARY CONTENTS ========== -->
    <div class="modal fade" id="signupModal" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered" role="document">
            <div class="modal-content">
                <!-- Header -->
                <div class="modal-close">
                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                </div>
                <!-- End Header -->

                <!-- Body -->
                <div class="modal-body p-sm-5">
                    <!-- Log in -->
                    <div id="loginModalForm">
                        <!-- Heading -->
                        <div class="text-center mb-7">
                            <h4>Log in</h4>
                            <p>Don't have an account yet?
                                <a class="js-animation-link" href="javascript:;" role="button"
                                    data-hs-show-animation-options='{
                         "targetSelector": "#signupModalForm",
                         "groupName": "idForm"
                       }'>Sign up here</a>
                            </p>
                        </div>
                        <!-- End Heading -->

                        <div class="d-grid gap-2">
                            <a class="btn btn-white btn-lg" href="#">
                                <span class="d-flex justify-content-center align-items-center">
                                    <img class="avatar avatar-xss me-2" src="./assets/svg/brands/google-icon.svg"
                                        alt="Image Description">
                                    Log in with Google
                                </span>
                            </a>

                            <a class="js-animation-link btn btn-primary btn-lg" href="#" data-hs-show-animation-options='{
                       "targetSelector": "#loginWithEmailModalForm",
                       "groupName": "idForm"
                     }'>Log in with Email</a>
                        </div>
                    </div>
                    <!-- End Log in -->

                    <!-- Log in with Modal -->
                    <div id="loginWithEmailModalForm" style="display: none; opacity: 0;">
                        <!-- Heading -->
                        <div class="text-center mb-7">
                            <h4>Log in</h4>
                            <p>Don't have an account yet?
                                <a class="js-animation-link" href="javascript:;" role="button"
                                    data-hs-show-animation-options='{
                         "targetSelector": "#signupModalForm",
                         "groupName": "idForm"
                       }'>Sign up here</a>
                            </p>
                        </div>
                        <!-- End Heading -->

                        <form class="js-validate needs-validation" novalidate>
                            <!-- Form -->
                            <div class="mb-3">
                                <label class="form-label" for="loginModalFormEmail">Your email</label>
                                <input type="email" class="form-control form-control-lg" name="email"
                                    id="loginModalFormEmail" placeholder="email@site.com" aria-label="email@site.com"
                                    required>
                                <span class="invalid-feedback">Please enter a valid email address.</span>
                            </div>
                            <!-- End Form -->

                            <!-- Form -->
                            <div class="mb-3">
                                <div class="d-flex justify-content-between align-items-center">
                                    <label class="form-label" for="loginModalFormPassword">Password</label>

                                    <a class="js-animation-link form-label-link" href="javascript:;"
                                        data-hs-show-animation-options='{
                       "targetSelector": "#forgotPasswordModalForm",
                       "groupName": "idForm"
                     }'>Forgot Password?</a>
                                </div>

                                <input type="password" class="form-control form-control-lg" name="password"
                                    id="loginModalFormPassword" placeholder="8+ characters required"
                                    aria-label="8+ characters required" required minlength="8">
                                <span class="invalid-feedback">Please enter a valid password.</span>
                            </div>
                            <!-- End Form -->

                            <div class="d-grid mb-3">
                                <button type="submit" class="btn btn-primary btn-lg">Log in</button>
                            </div>
                        </form>
                    </div>
                    <!-- End Log in with Modal -->

                    <!-- Sign up -->
                    <div id="signupModalForm" style="display: none; opacity: 0;">
                        <!-- Heading -->
                        <div class="text-center mb-7">
                            <h4>Sign up</h4>
                            <p>Already have an account?
                                <a class="js-animation-link" href="javascript:;" role="button"
                                    data-hs-show-animation-options='{
                         "targetSelector": "#loginModalForm",
                         "groupName": "idForm"
                       }'>Log in here</a>
                            </p>
                        </div>
                        <!-- End Heading -->

                        <div class="d-grid gap-3">
                            <a class="btn btn-white btn-lg" href="#">
                                <span class="d-flex justify-content-center align-items-center">
                                    <img class="avatar avatar-xss me-2" src="./assets/svg/brands/google-icon.svg"
                                        alt="Image Description">
                                    Sign up with Google
                                </span>
                            </a>

                            <a class="js-animation-link btn btn-primary btn-lg" href="#" data-hs-show-animation-options='{
                       "targetSelector": "#signupWithEmailModalForm",
                       "groupName": "idForm"
                     }'>Sign up with Email</a>

                            <div class="text-center">
                                <p class="small mb-0">By continuing you agree to our <a href="#">Terms and
                                        Conditions</a></p>
                            </div>
                        </div>
                    </div>
                    <!-- End Sign up -->

                    <!-- Sign up with Modal -->
                    <div id="signupWithEmailModalForm" style="display: none; opacity: 0;">
                        <!-- Heading -->
                        <div class="text-center mb-7">
                            <h4>Sign up</h4>
                            <p>Already have an account?
                                <a class="js-animation-link" href="javascript:;" role="button"
                                    data-hs-show-animation-options='{
                         "targetSelector": "#loginModalForm",
                         "groupName": "idForm"
                       }'>Log in here</a>
                            </p>
                        </div>
                        <!-- End Heading -->

                        <form class="js-validate need-validate" novalidate>
                            <!-- Form -->
                            <div class="mb-3">
                                <label class="form-label" for="signupModalFormEmail">Your email</label>
                                <input type="email" class="form-control form-control-lg" name="email"
                                    id="signupModalFormEmail" placeholder="email@site.com" aria-label="email@site.com"
                                    required>
                                <span class="invalid-feedback">Please enter a valid email address.</span>
                            </div>
                            <!-- End Form -->

                            <!-- Form -->
                            <div class="mb-3">
                                <label class="form-label" for="signupModalFormPassword">Password</label>
                                <input type="password" class="form-control form-control-lg" name="password"
                                    id="signupModalFormPassword" placeholder="8+ characters required"
                                    aria-label="8+ characters required" required>
                                <span class="invalid-feedback">Your password is invalid. Please try again.</span>
                            </div>
                            <!-- End Form -->

                            <!-- Form -->
                            <div class="mb-3">
                                <label class="form-label" for="signupModalFormConfirmPassword">Confirm password</label>
                                <input type="password" class="form-control form-control-lg" name="confirmPassword"
                                    id="signupModalFormConfirmPassword" placeholder="8+ characters required"
                                    aria-label="8+ characters required"
                                    data-hs-validation-equal-field="#signupModalFormPassword" required>
                                <span class="invalid-feedback">Password does not match the confirm password.</span>
                            </div>
                            <!-- End Form -->

                            <div class="d-grid mb-3">
                                <button type="submit" class="btn btn-primary btn-lg">Sign up</button>
                            </div>

                            <div class="text-center">
                                <p class="small mb-0">By continuing you agree to our <a href="#">Terms and
                                        Conditions</a></p>
                            </div>
                        </form>
                    </div>
                    <!-- End Sign up with Modal -->

                    <!-- Forgot Password -->
                    <div id="forgotPasswordModalForm" style="display: none; opacity: 0;">
                        <!-- Heading -->
                        <div class="text-center mb-7">
                            <h4>Forgot password?</h4>
                            <p>Enter the email address you used when you joined and we'll send you instructions to reset
                                your password.</p>
                        </div>
                        <!-- En dHeading -->

                        <form class="js-validate need-validate" novalidate>
                            <div class="mb-3">
                                <!-- Form -->
                                <div class="d-flex justify-content-between align-items-center">
                                    <label class="form-label" for="resetPasswordSrEmailModalForm" tabindex="0">Your
                                        email</label>

                                    <a class="js-animation-link form-label-link" href="javascript:;"
                                        data-hs-show-animation-options='{
                         "targetSelector": "#loginModalForm",
                         "groupName": "idForm"
                       }'>
                                        <i class="bi-chevron-left small me-1"></i> Back to Log in
                                    </a>
                                </div>
                                <!-- End Form -->

                                <!-- Form -->
                                <div class="mb-3">
                                    <input type="email" class="form-control form-control-lg" name="email"
                                        id="resetPasswordSrEmailModalForm" tabindex="1"
                                        placeholder="Enter your email address" aria-label="Enter your email address"
                                        required data-msg="Please enter a valid email address.">
                                </div>
                                <!-- End Form -->

                                <div class="d-grid">
                                    <button type="submit" class="btn btn-primary btn-lg">Submit</button>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!-- End Forgot Password -->
                </div>
                <!-- End Body -->

                <!-- Footer -->
                <div class="modal-footer d-block text-center py-sm-5">
                    <small class="text-cap mb-4">Trusted by the world's best teams</small>

                    <div class="w-85 mx-auto">
                        <div class="row justify-content-between">
                            <div class="col">
                                <img class="img-fluid" src="./assets/svg/brands/gitlab-gray.svg" alt="Logo">
                            </div>
                            <!-- End Col -->

                            <div class="col">
                                <img class="img-fluid" src="./assets/svg/brands/fitbit-gray.svg" alt="Logo">
                            </div>
                            <!-- End Col -->

                            <div class="col">
                                <img class="img-fluid" src="./assets/svg/brands/flow-xo-gray.svg" alt="Logo">
                            </div>
                            <!-- End Col -->

                            <div class="col">
                                <img class="img-fluid" src="./assets/svg/brands/layar-gray.svg" alt="Logo">
                            </div>
                            <!-- End Col -->
                        </div>
                    </div>
                    <!-- End Row -->
                </div>
                <!-- End Footer -->
            </div>
        </div>
    </div>
    <!-- ========== END SECONDARY CONTENTS ========== -->





    <!-- 让鼠标悬停能够触发下拉,必须放在body中的最后面进行初始化 -->
    <!-- 首页需要的js -->
    <!-- JS 文件(如果需要在页面加载时立即执行) -->
    <!-- JS 实现插件JS Implementing Plugins -->
    <script src="./assets/vendor/hs-mega-menu/dist/hs-mega-menu.min.js"></script>
    <script src="./assets/vendor/hs-show-animation/dist/hs-show-animation.min.js"></script>
    <!-- JS Space -->
    <!-- JS Plugins Init. -->
    <script>
        (function () {
            // INITIALIZATION OF MEGA MENU
            // =======================================================
            const megaMenu = new HSMegaMenu('.js-mega-menu', {
                desktop: {
                    position: 'left'
                }
            })


            // INITIALIZATION OF SHOW ANIMATIONS
            // =======================================================
            new HSShowAnimation('.js-animation-link')


            // INITIALIZATION OF BOOTSTRAP VALIDATION
            // =======================================================
            HSBsValidation.init('.js-validate', {
                onSubmit: data => {
                    data.event.preventDefault()
                    alert('Submited')
                }
            })
        })()
    </script>
</body>

</html>

默认主页中的图片,它这边是建议使用npm的方式来进行捆绑打包的,但是我觉得太麻烦了,所以
原文件如下

<span class="svg-icon svg-icon-sm text-primary">
@@include("../../assets/vendor/duotone-icons/gen/gen005.svg")
</span>

更改为

<span class="svg-icon svg-icon-sm text-primary">
<img src="/assets/vendor/duotone-icons/gen/gen005.svg" alt="Your SVG File">
</span>

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

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

相关文章

SVN与Git功能差异对比分析

最近在调研学习Git管理和分支模型相关内容&#xff0c;外延到了SVN和Git差异、工作原理等相关细节&#xff0c;学习整理如下。 SVN&#xff08;Subversion&#xff09;与 Git 的最大不同&#xff0c;主要包括以下几个方面&#xff1a; 交流探讨&#xff0c;加入群聊【Java学习…

微信小程序canvas 使用案例(一)

一、cavans 对象获取、上线文创建 1.wxml <!-- canvas.wxml --><canvas type"2d" id"myCanvas"></canvas> 2.js /*** 生命周期函数--监听页面加载*/onLoad(options) {const query wx.createSelectorQuery()query.select(#myCanvas).f…

Github报错:Kex_exchange_identification: Connection closed by remote host

文章目录 1. 背景介绍2. 排查和解决方案 1. 背景介绍 Github提交或者拉取代码时&#xff0c;报错如下&#xff1a; Kex_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository.Please make sure you have the correct ac…

STM32智能安防监控系统教程

目录 引言环境准备智能安防监控系统基础代码实现&#xff1a;实现智能安防监控系统 4.1 数据采集模块 4.2 数据处理与控制模块 4.3 通信与网络系统实现 4.4 用户界面与数据可视化应用场景&#xff1a;安防监控与优化问题解决方案与优化收尾与总结 1. 引言 智能安防监控系统通…

【HarmonyOS开发】Navigation使用

简介 Navigation是路由容器组件&#xff0c;包括单栏(Stack)、分栏(Split)和自适应(Auto)三种显示模式。适用于模块内和跨模块的路由切换。 在页面跳转时&#xff0c;应该使用页面路由router&#xff0c;在页面内的页面跳转时&#xff0c;建议使用Navigation达到更好的转场动效…

VSCODE 下 openocd Jlink 的配置笔记

title: VSCODE 下 openocd Jlink 的配置笔记 tags: STM32HalCubemax 文章目录 内容VSCODE 下 openocd Jlink 的配置笔记安装完成后修改jlink的配置文件然后修改你的下载器为jlink烧录你的项目绝对会出现下面的问题那么打开下载的第一个软件 &#xff08;点到这个jlink右键&…

《小程序02:云开发之增删改查》

一、前置操作 // 一定要用这个符号包含里面的${}才会生效 wx.showToast({title: 获取数据成功&#xff1a;${colorLista}, })1.1&#xff1a;初始化介绍 **1、获取数据库引用&#xff1a;**在开始使用数据库 API 进行增删改查操作之前&#xff0c;需要先获取数据库的引用 cons…

手机如何播放电脑的声音?

准备工具&#xff1a; 有线耳机&#xff0c;手机&#xff0c;电脑&#xff0c;远控软件 1.有线耳机插电脑上 2.电脑安装pc版远控软件&#xff0c;手机安装手机端控制版远控软件 3.手机控制电脑开启声音控制 用手机控制电脑后&#xff0c;打开声音控制&#xff0c;电脑播放视频…

【Android】Android模拟器抓包配置

从Android7.0之后开始&#xff0c;用户自行安装的证书在用户目录下&#xff0c;无法进行证书信任&#xff0c;导致Charles无法进行https抓包 方案&#xff1a; 1. 获取手机root权限 有些模拟器可以直接开启root权限&#xff1b; 有些Android手机可以直接开启root权限。 2. …

第二届数据安全大赛“数信杯”数据安全大赛 WP

1.pyc 使用pyc在线反编译得到python源码&#xff1a; #!/usr/bin/env python# visit https://tool.lu/pyc/ for more information# Version: Python 3.8import randomdef encrypt_file(file_path):random.seed(114514)# WARNING: Decompyle incompletefile_path "./flag&…

生成式人工智能落地校园与课堂的15个场景

生成式人工智能正在重塑教育行业&#xff0c;为传统教学模式带来了革命性的变化。随着AI的不断演进&#xff0c;更多令人兴奋的应用场景将逐一显现&#xff0c;为学生提供更加丰富和多元的学习体验。 尽管AI在教学中的应用越来越广泛&#xff0c;但教师们也不必担心会被完全替代…

MySQL:在 SELECT 查询中过滤数据

SELECT … WHERE … 需要有条件的从数据表中查询数据&#xff0c;可以使用 WHERE 关键字来指定查询条件 SELECT select_list FROM tablename WHEREsearch_condition;查询条件: 带 比较运算符 和 逻辑(布尔)运算符 的查询条件 AND&#xff1a;记录满足所有查询条件时&#xf…

win11在虚拟环境安装PyTorch的教程

一、前言 pytorch直接安装到anaconda的base上面不是什么好习惯。我的亲身经历是&#xff0c;将pytorch和其它软件如openCV&#xff0c;openGL等混装&#xff0c;然后互相冲撞&#xff0c;使得图像方面的软件不能工作。本篇我们讲述将pytorch独立安装到可靠、干净的虚拟环境中。…

VSCode部署Pytorch机器学习框架使用Anaconda(Window版)

目录 1. 配置Anaconda1.1下载安装包1. Anaconda官网下载2, 安装Anaconda 1.2 创建虚拟环境1.3 常用命令Conda 命令调试和日常维护 1.4 可能遇到的问题执行上述步骤后虚拟环境仍在C盘 2. 配置cuda2.1 查看显卡支持的cuda版本2.2 下载对应cuda版本2.3 下载对应的pytorch可能出现的…

Yolo-World网络模型结构及原理分析(三)——RepVL-PAN

提示&#xff1a;文章写完后&#xff0c;目录可以自动生成&#xff0c;如何生成可参考右边的帮助文档 文章目录 前言1. 网络结构2. 特征融合3. 文本引导&#xff08;Text-guided&#xff09;4. 图像池化注意力&#xff08;Image-Pooling Attention&#xff09;5. 区域文本匹配&…

直方图的最大长方形面积

前提知识&#xff1a;单调栈基础题-CSDN博客 子数组的最大值-CSDN博客 题目描述&#xff1a; 给定一个非负数&#xff08;0和正数&#xff09;&#xff0c;代表直方图&#xff0c;返回直方图的最大长方形面积&#xff0c;比如&#xff0c;arr {3, 2, 4, 2, 5}&#xff0c…

关于Qt部署CMake导致“Failed to set working directory to“的问题

使用qt部署Cmake项目时&#xff0c;遇到"Failed to set working directory to"的错误&#xff08;还没编译&#xff09;&#xff0c;然后查看部署信息发现&#xff1a; “The CXX compiler identification is unknown”、“CMake Error at xxxx/CMakeTestCXXCompiler…

【计算机视觉】siamfc论文复现

什么是目标跟踪 使用视频序列第一帧的图像(包括bounding box的位置)&#xff0c;来找出目标出现在后序帧位置的一种方法。 什么是孪生网络结构 孪生网络结构其思想是将一个训练样本(已知类别)和一个测试样本(未知类别)输入到两个CNN(这两个CNN往往是权值共享的)中&#xff0…

【Python】PyMySQL 和 mysql-connector-python 的比较:差异详解

文章目录 1. PyMySQL2. mysql-connector-python3. 相同之处4. 不同之处性能功能特性兼容性错误处理 5. 性能比较6. 兼容性和依赖性7. 社区支持和文档8. 使用示例9. 总结 MySQL 是全球最流行的开源数据库之一&#xff0c;而 Python 作为一种广泛应用的编程语言&#xff0c;提供了…

【字少图多剖析微服务】深入理解Eureka核心原理

深入理解Eureka核心原理 Eureka整体设计Eureka服务端启动Eureka三级缓存Eureka客户端启动 Eureka整体设计 Eureka是一个经典的注册中心&#xff0c;通过http接收客户端的服务发现和服务注册请求&#xff0c;使用内存注册表保存客户端注册上来的实例信息。 Eureka服务端接收的…