纯html文件实现目录和文档关联

news2025/3/10 16:16:52

目录结构

请添加图片描述

效果图

请添加图片描述
请添加图片描述

代码

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

<head>
    <meta charset="UTF-8">
    <title>项目结题报告</title>
    <style lang="scss">
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background: #d4d4d4;
            border-radius: 5px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #adadad;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            height: 100%;
        }

        .common-layout {
            width: 100%;
            height: 100%;
            /* overflow: hidden; */

            .header {
                height: 70px;
                background-color: #083a55;
                color: #fff;
                box-shadow: 0px 0px 10px 2px #0000003d;
                z-index: 1;
                padding: 0 20px;
                display: flex;
                align-items: center;
                justify-content: space-between;

                .title {
                    font-weight: bold;
                    font-size: 28px;
                }

                .header-content {
                    .common- {
                        height: 70%;
                        font-size: 18px;
                        border-right: 1px solid rgb(70, 70, 70);
                        margin-left: 20px;
                        padding-right: 20px;
                        cursor: pointer;

                        .current {
                            outline: none;
                            font-size: 16px;
                        }

                        .iconfont {
                            padding-right: 10px;
                            color: #ffffff;
                        }

                        &:last-child {
                            border: 0;
                        }
                    }
                }
            }

            .el-container {
                height: calc(100% - 70px);
                background-color: #f9f6ee;
                display: flex;

                .aside {
                    margin: 10px 10px;
                    width: 350px;
                    position: relative;
                    isolation: isolate;
                    background-color: #ffffff;
                    box-shadow: 1px 1px 5px 0px rgba(89, 89, 89, 0.2784313725);

                    .nav {
                        height: 100%;
                        padding: 25px 20px;
                        box-sizing: border-box;
                        font-size: 15px;
                        text-align: left;

                        p {
                            margin-top: 0;
                            font-size: 18px;
                            font-weight: bold;
                        }

                        .list_item {
                            margin: 0 0 0 25px;

                            a {
                                padding: 4px 0;
                                display: inline-block;
                                text-decoration: none;
                                font-size: 15px;
                                color: #5d5d5d;

                                &:hover {
                                    color: #409eff;
                                }
                            }
                        }

                        .nav_item {
                            padding: 5px 0;

                            &:hover {
                                cursor: pointer;
                                color: rgb(0, 140, 255);
                            }

                            .active {
                                color: #008cff
                            }
                        }

                        .active {
                            color: #008cff !important;
                        }
                    }
                }

                .main {
                    margin: 10px 10px 10px 0;
                    width: calc(100% - 370px);
                    height: calc(100% - 20px);
                    background-color: #ffffff;
                    box-shadow: 1px 1px 5px 0px rgba(89, 89, 89, 0.2784313725);
                    text-align: left;
                    padding: 0;

                    .ref_container {
                        height: 100%;
                        overflow-y: auto;
                    }

                    .content_cover {
                        width: 100%;
                        height: calc(100vh - 90px);
                        display: flex;
                        margin-bottom: 100px;
                        box-shadow: 0px 3px 10px 5px #ededed70;
                        padding: 0 0 0 20px;
                        box-sizing: border-box;

                        .before {
                            width: 55%;
                            display: flex;
                            flex-direction: column;

                            .logo {
                                height: 35%;

                                img {
                                    height: 70%;
                                    padding-top: 20px;
                                }
                            }

                            .title {
                                height: 63%;

                                h1 {
                                    color: #616161;
                                    font-weight: 600;
                                }

                                h4 {
                                    margin: 10px 20px;
                                    color: #4e4e4e;
                                    font-weight: 500;
                                }
                            }

                            .footer {
                                height: 8%;

                                p {
                                    margin: 5px 20px;
                                    font-size: 16px;
                                }
                            }
                        }

                        .behind {
                            width: 45%;
                            height: 100%;
                            overflow: hidden;

                            img {
                                height: 100%;
                            }
                        }
                    }

                    .content {
                        padding: 0 20px;
                    }

                    .content_first {
                        text-align: left;

                        .cont {
                            font-size: 15px;
                        }

                        .tips {
                            margin: 15px 0;
                            color: cadetblue;
                        }

                        .tip {
                            margin: 0 0 0 10px;
                            font-size: 14px;

                            &:first-child {
                                margin: 0;
                            }
                        }

                        h6 {
                            margin: 10px;
                            text-align: center;
                        }

                        .echarts {
                            display: flex;
                            justify-content: space-between;
                            margin: 40px 5px 0;
                            box-shadow: 0px 0px 15px 2px #e0e0e057;

                            .echart {
                                width: calc(100% - 150px);
                            }

                            .echart2 {
                                display: flex;

                                @media screen and (min-width: 1851px) {
                                    iframe {
                                        width: 45%;
                                        max-width: 700px;
                                    }
                                }

                                @media screen and (max-width: 1850px) {
                                    flex-direction: column;

                                    iframe {
                                        width: 100%;
                                        max-width: 700px;
                                    }
                                }
                            }

                            .echarts_nav {
                                width: 300px;
                                margin-left: 5px;
                                padding: 15px;
                                font-size: 16px;
                                box-sizing: border-box;
                                border-right: 1px solid #e1e1e1;

                                .echarts_nav_item {
                                    margin: 10px 0;
                                    cursor: pointer;

                                    &:hover {
                                        color: #008cff
                                    }
                                }

                                .item_active {
                                    color: #008cff
                                }
                            }
                        }

                        :deep .my-table-header {
                            background-color: #647687;
                            color: white;
                        }
                    }

                    .table7 {
                        height: 420px;
                        overflow-y: auto;
                    }

                    .table_container {
                        height: 420px;
                        overflow-y: auto;
                    }

                    table {
                        width: 100%;
                        border-collapse: collapse;

                        thead {
                            position: sticky;
                            top: 0;
                            background: #647687;
                            z-index: 100;
                            color: white;
                            font-size: 14px;
                            z-index: 100;

                            th {
                                padding: 8px 12px;
                                border-right: 2px solid #ebeef5;

                                &:last-child {
                                    border: 0;
                                }
                            }
                        }

                        tbody {
                            border: 1px solid #ebeef5
                        }

                        tr {
                            border-bottom: 1px solid #ebeef5;

                            &:nth-of-type(even) {
                                background-color: #fafafa;
                            }

                            &:hover {
                                background-color: #cacfdd3d;
                            }
                        }

                        td {
                            font-size: 14px;
                            padding: 8px 12px;
                            border-right: 1px solid #ebeef5;
                        }
                    }
                }

                select {
                    align-items: center;
                    border-radius: 5px;
                    box-sizing: border-box;
                    cursor: pointer;
                    display: flex;
                    font-size: 14px;
                    gap: 6px;
                    line-height: 24px;
                    min-height: 32px;
                    padding: 4px 12px;
                    position: relative;
                    text-align: left;
                    outline: none;
                }
            }
        }

        .print {
            display: none;
        }

        @media print {
            .print {
                display: contents;
            }

            @page {
                margin: 20px 10px;
            }

            body {
                overflow: visible;
            }

            .table_container {
                height: auto !important;
                overflow-y: auto;
            }

            .el-container {
                height: auto !important;
            }

            .no_print {
                display: none !important;
            }

            .content_cover {
                box-shadow: unset !important;
                margin-bottom: 0 !important;
                height: calc(100vh - 20px) !important;
            }

            .main {
                width: 100% !important;
                height: 100% !important;
                box-shadow: unset !important;
            }

            .echart2 {
                display: flex;
                flex-direction: column !important;

                iframe {
                    width: 100% !important;
                }
            }

            .ref_container {
                overflow-y: unset !important;
            }

            table {
                border-collapse: collapse;
                border: 2px solid #ebeef5;

                tr {
                    page-break-inside: avoid;
                    break-inside: avoid;
                    border-top: 2px solid #ebeef5;
                    border-bottom: 2px solid #ebeef5;
                }

                th {
                    color: #363636 !important;
                    border-right: 0 !important;
                }
            }

            .table_7 {
                /* page-break-before: always; */
            }

            .table7 {

                th,
                td {
                    font-size: 12px !important;
                    padding: 8px 9px !important;
                }
            }

            .echarts {
                justify-content: center !important;
                box-shadow: unset !important;
                margin: 0 !important;

                .echart {
                    width: 100% !important;
                    min-width: 100% !important;
                }
            }
        }
    </style>
</head>

<body>
    <div class="common-layout">
        <div class="header no_print">
            <div class="title">***报告</div>
            <div class="header-content">
                <div class="common-">
                    <span class="iconfont icon-human1"></span><span>客户单位:XX科学院</span>
                </div>
            </div>
        </div>
        <div class="el-container">
            <div class="aside no_print">
                <div class="nav">
                    <p>目录</p>
                    <div id="navList"></div>
                </div>
            </div>
            <div class="main">
                <div class="ref_container" id="content">
                    <div>
                        <div class="content_cover">
                            <div class="before">
                                <div class="logo"><img src="image/1.png"></div>
                                <div class="title">
                                    <h1>项目结题报告</h1>
                                    <h4>测序报告</h4>
                                    <h4>客户单位:XX科学院</h4>
                                </div>
                                <div class="footer">
                                    <p>***有限公司</p>
                                    <p>服务热线:***</p>
                                </div>
                            </div>
                            <div class="behind"><img src="image/2.png" alt=""></div>
                        </div>
                        <div class="content" style="page-break-after: always;">
                            <div class="content_first" id="id1">
                                <h3>1.项目概况</h3>
                                <img src="image/report/1.png" alt="" title="">
                            </div>
                            <div class="content_first">
                                <h3 id="id2">2.流程说明</h3>
                                <div class="content_second">
                                    <h4 id="id21">2.1.实验流程</h4>
                                    <div>
                                        <img src="image/report/2.1.png" alt="">
                                        <div id="id211">
                                            <h5>2.1.1.aa</h5>
                                            <p class="cont">************</p>
                                        </div>
                                        <div id="id212">
                                            <h5>2.1.2.bb</h5>
                                            <div class="cont">************
                                            </div>
                                        </div>
                                        <div id="id213">
                                            <h5>2.1.3.cc</h5>
                                            <div class="cont">************************************************</div>
                                        </div>
                                        <div id="id214">
                                            <h5>2.1.4.dd</h5>
                                            <p class="cont">************************************************************************************************</p>
                                        </div>
                                        <div id="id215">
                                            <h5>2.1.5.ee</h5>
                                            <div class="cont">************************************************************************************************
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="content_second" id="id22">
                                    <h4>2.2.信息分析流程</h4>
                                    <p class="cont">************************************************************************************************
                                    </p>
                                    <img src="image/report/2.2.png" alt="">
                                </div>
                            </div>
                            <div class="content_first">
                                <h3 id="id3">3.数据质控</h3>
                                <div class="content_second">
                                    <div id="id31">
                                        <h4>3.1 测序数据统计</h4>
                                        <div>
                                            <p class="cont">结果见表1</p>
                                            <h6 class="table_1">1 ***</h6>
                                            <div class="table_container table1">
                                                <table>
                                                    <thead class="thead">
                                                        <tr>
                                                            <th>Sample</th>
                                                            <th>Raw reads</th>
                                                            <th>Raw bases</th>
                                                            <th>Q30(%)</th>
                                                            <th>GC(%)</th>
                                                            <th>Duplication(%)</th>
                                                        </tr>
                                                    </thead>
                                                    <tbody class="no_print">
                                                        <tr>
                                                            <td>S1</td>
                                                            <td>2</td>
                                                            <td>3</td>
                                                            <td>3</td>
                                                            <td>3</td>
                                                            <td>3</td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </div>

                                            <div class="tips">
                                                <p class="tip">注:</p>
                                                <p class="tip">************</p>
                                                <p class="tip">************</p>
                                                <p class="tip">************</p>
                                                <p class="tip">************</p>
                                                <p class="tip">************</p>
                                                <p class="tip">************</p>
                                            </div>
                                        </div>
                                    </div>

                                    <h4 id="id32">3.2.质量控制</h4>
                                    <div id="id321">
                                        <h5>3.2.1.质量分布</h5>
                                        <div>
                                            <div class="cont">************结果见图1</div>
                                            <div class="echarts">
                                                <div class="no_print" style="font-size: 16px;margin: 40px 0 0 20px;">
                                                    <select name="cars" id="select1"
                                                        onchange="selectChange('select1','iframe1','fig1_quality_boxplot')">
                                                    </select>
                                                </div>
                                                <div class="echart">
                                                    <iframe id="iframe1"
                                                        src="public/fig1_quality_boxplot/9-16_quality_boxplot.html"
                                                        width="100%" height="600px" scrolling="no" frameborder="0">
                                                    </iframe>
                                                </div>
                                            </div>
                                            <h6 class="h62">1 </h6>
                                            <div class="tips">
                                                <p class="tip">注:</p>
                                                <p class="tip">************</p>
                                                <p class="tip">************</p>
                                                <p class="tip">************</p>
                                            </div>
                                        </div>
                                    </div>
                                    <div id="id322">
                                        <h5>3.2.2.Base Content分布</h5>
                                        <div>
                                            <div class="cont">************</div>
                                            <div class="echarts" id="echart2">
                                                <div class="no_print" style="font-size: 16px;margin: 40px 0 0 20px;">
                                                    <select id="select2" name="cars"
                                                        onchange="selectChange2('select2','fig2_base_content')">
                                                        <option value="16-122" selected>16-122</option>
                                                        <option value="16-146">16-146</option>
                                                        <option value="16-161">16-161</option>
                                                        <option value="16-176">16-176</option>
                                                        <option value="16-182">16-182</option>
                                                        <option value="16-183">16-183</option>
                                                        <option value="16-200">16-200</option>
                                                        <option value="16-201">16-201</option>
                                                        <option value="16F">16F</option>
                                                        <option value="16M">16M</option>
                                                    </select>
                                                </div>
                                                <div class="echart echart2">
                                                    <iframe id="iframe21"
                                                        src="public/fig2_base_content/16-122_read1_base_content.html"
                                                        width="100%" height="600px" scrolling="no" frameborder="0">
                                                    </iframe>
                                                    <iframe id="iframe22"
                                                        src="public/fig2_base_content/16-122_read2_base_content.html"
                                                        width="100%" height="600px" scrolling="no" frameborder="0">
                                                    </iframe>
                                                </div>
                                            </div>
                                            <h6 class="h62">2 </h6>
                                            <div class="tips">
                                                <p class="tip">注:</p>
                                                <p class="tip">************</p>
                                                <p class="tip">************</p>
                                                <p class="tip">************</p>
                                            </div>
                                        </div>
                                    </div>
                                    <div id="id33">
                                        <h4>3.3.过滤数据统计</h4>
                                        <div>
                                            <div class="cont">************</div>
                                            <p class="cont">1)************</p>
                                            <p class="cont">2)************</p>
                                            <div class="cont">************数据处理的步骤如下:
                                            </div>
                                            <p class="cont">1)************</p>
                                            <p class="cont">2)************</p>
                                            <p class="cont">3)************
                                            </p>
                                            <div class="cont">数据过滤的基本情况见表2</div>
                                            <h6 class="h61">2 </h6>
                                            <div class="table_container table2">
                                                <table>
                                                    <thead>
                                                        <tr>
                                                            <th>Sample</th>
                                                            <th>Clean reads</th>
                                                            <th>Clean bases</th>
                                                            <th>Clean reads(%)</th>
                                                            <th>Clean bases(%)</th>
                                                        </tr>
                                                    </thead>
                                                    <tbody class="no_print">
                                                        <tr>
                                                            <td>S1</td>
                                                            <td>70367889</td>
                                                            <td>5595586</td>
                                                            <td>0.838</td>
                                                            <td>1</td>
                                                        </tr>
                                                        <tr>
                                                            <td>S1</td>
                                                            <td>70367889</td>
                                                            <td>5595586</td>
                                                            <td>0.838</td>
                                                            <td>1</td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </div>
                                            <div class="tips">
                                                <p class="tip">注:</p>
                                                <p class="tip">************</p>
                                                <p class="tip">************</p>
                                                <p class="tip">************</p>
                                                <p class="tip">************</p>
                                                <p class="tip">************</p>
                                            </div>
                                            <div>
                                                <div class="echarts">
                                                    <div class="no_print"
                                                        style="font-size: 16px;margin: 40px 0 0 20px;">
                                                        <select name="cars" id="select3"
                                                            onchange="selectChange('select3','iframe3','fig3_piecharts')">
                                                        </select>
                                                    </div>
                                                    <div class="echart">
                                                        <iframe id="iframe3" src="public/fig3_piecharts/9-3_pie.html"
                                                            width="100%" height="600px" scrolling="no" frameborder="0">
                                                        </iframe>
                                                    </div>
                                                </div>
                                            </div>
                                            <h6 class="h62">3 数据过滤统计</h6>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
    </script>
</body>

<script>
    let navList = [
        {
            'id': 'id1',
            'title': '1. 项目概况'
        },
        {
            'id': 'id2',
            'title': '2. 流程说明',
            'children': [
                {
                    'id': 'id21',
                    'title': '2.1 实验流程',
                    'children': [
                        {
                            'id': 'id211',
                            'title': '2.1.1 aa'
                        },
                        {
                            'id': 'id212',
                            'title': '2.1.2 bb'
                        },
                        {
                            'id': 'id213',
                            'title': '2.1.3 cc'
                        },
                        {
                            'id': 'id214',
                            'title': '2.1.4 dd'
                        },
                        {
                            'id': 'id215',
                            'title': '2.1.5 ee'
                        }
                    ]
                },
                {
                    'id': 'id22',
                    'title': '2.2 信息分析流程'
                }
            ]
        },
        {
            'id': 'id3',
            'title': '3. 数据质控',
            'children': [
                {
                    'id': 'id31',
                    'title': '3.1 测序数据统计'
                },
                {
                    'id': 'id32',
                    'title': '3.2 质量控制',
                    'children': [
                        {
                            'id': 'id321',
                            'title': '3.2.1 质量分布'
                        },
                        {
                            'id': 'id322',
                            'title': '3.2.2 Base Content分布'
                        }
                    ]
                },
                {
                    'id': 'id33',
                    'title': '3.3 过滤数据统计'
                }
            ]
        }
    ]
    //生成目录
    const titles = []
    function nav(list, id) {
        let divElement = document.getElementById(id);
        list.forEach((item, index) => {
            let div = document.createElement('div');
            let a = document.createElement('a');
            a.textContent = item.title;
            a.href = '#' + item.id;
            a.className = 'box';
            div.id = item.id + '_';
            div.className = 'list_item';
            divElement.appendChild(div);
            div.appendChild(a)
            titles.push(item)
            if (item.children) {
                nav(item.children, div.id)
            }
        });
    }
    //下拉选择改变后 iframe中的图改变
    function selectChange(id, iframeId, url) {
        let selectedValue = document.getElementById(id).value
        document.getElementById(iframeId).src = 'public/' + url + '/' + selectedValue + '.html';
    }
    function selectChange2(id, url) {
        let selectedValue = document.getElementById(id).value
        document.getElementById('iframe21').src = 'public/' + url + '/' + selectedValue + '_read1_base_content.html';
        document.getElementById('iframe22').src = 'public/' + url + '/' + selectedValue + '_read2_base_content.html';

    }
    //给每个下拉选择赋值
    function ceratdOption() {
        let options = [
            { value: '9-3', text: '9-3' },
            { value: '9-5', text: '9-5' },
            { value: '9-6', text: '9-6' },
            { value: '9-16', text: '9-16' },
            { value: '9-20', text: '9-20' },
            { value: '9-21', text: '9-21' },
            { value: '9-26', text: '9-26' },
            { value: '9-51', text: '9-51' },
            { value: '9-55', text: '9-55' },
            { value: '9-56', text: '9-56' }
        ]
        options.forEach(function (option, index) {
            document.getElementById('select1').add(new Option(option.text + '_quality_boxplot', option.value + '_quality_boxplot'))
            document.getElementById('select3').add(new Option(option.text + '_pie', option.value + '_pie'))
            document.getElementById('select4').add(new Option(option.text + '_coverage', option.value + '_coverage'))
            document.getElementById('select5').add(new Option(option.text + '_snp_anno_pie', option.value + '_snp_anno_pie'))
            document.getElementById('select6').add(new Option(option.text + '_indel_anno_pie', option.value + '_indel_anno_pie'))
        });
    }
    //点击菜单高亮
    const menu = document.getElementById('navList')
    menu.addEventListener('click', (e) => {
        highlight(e.target)
    })
    // 设置当前菜单高亮
    function highlight(id) {
        document.querySelectorAll('.box').forEach(a =>
            a.classList.remove('active')
        );
        // 如果传递的是一个元素
        if (id instanceof HTMLElement) {
            id.classList.add('active')
            return
        }
        if (id.startsWith('#')) {
            id = id.substring(1)
        }
        document.querySelector(`a[href="#${id}"]`).classList.add('active')
    }
    // 锚点滚动 菜单高亮
    const handScroll = () => {
        for (let i = 0; i < titles.length; i++) {
            // 获取锚点对应内容元素的位置
            const rect = document.getElementById(titles[i].id).getBoundingClientRect()
            // rect.top 当前元素距离页面顶部的距离 rect.bottom 当前元素底部距离页面顶部的距离
            if ((rect.top >= 70 && rect.top < 100) || (rect.bottom > 90 && rect.bottom < 120)) {
                highlight(`#${titles[i].id}`)
                break;
            }
        }
    }
    const contentele = document.getElementById('content')
    contentele.addEventListener('scroll', handScroll)
    window.onload = function () {
        nav(navList, 'navList'); // 页面加载完成后调用函数
        console.log('onload', titles)
        ceratdOption()
    }

</script>

</html>

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

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

相关文章

共绘智慧升级,看永洪科技助力由由集团起航智慧征途

在数字化洪流汹涌澎湃的当下&#xff0c;企业如何乘风破浪&#xff0c;把握转型升级的黄金机遇&#xff0c;已成为所有企业必须直面的时代命题。由由集团&#xff0c;作为房地产的领航者&#xff0c;始终以前瞻视野引领变革&#xff0c;坚决拥抱数字化浪潮&#xff0c;携手数字…

自学嵌入式第27天------TCP和UDP,URL爬虫

1. TCP和UDP区别 **TCP&#xff08;传输控制协议&#xff09;和UDP&#xff08;用户数据报协议&#xff09;**是两种主要的传输层协议&#xff0c;它们在数据传输方式上有显著区别&#xff1a; 连接性&#xff1a; TCP是面向连接的协议&#xff0c;通信前需通过三次握手建立连…

三维建模与视频融合(3D-Video Integration)技术初探。

三维建模与视频融合&#xff08;3D-Video Integration&#xff09;是一种将虚拟三维模型无缝嵌入实拍视频场景的技术&#xff0c;广泛应用于影视特效、增强现实&#xff08;AR&#xff09;、游戏开发、广告制作 、视频监控 等领域。 一、技术核心流程 三维建模与动画 使用工具…

分布式存储学习——HBase概述

1.1 HBase概述 1.1.1 理解大数据背景 1.1.2 HBase是什么 1.1.3 HBase与Hadoop的关系 1.1.4 HBase的核心功能模块 1.1.5 HBase的应用场景和经典案例 1.1.6 小结 本文参考于学校《HBase应用于开发》教材 1.1 HBase概述 本节将介绍大数据背景和HBase的基本概念&#xff0c…

LLM run

lmstudio lmstudio ollama ollama N 卡使用自带UI gpu加速推理 ,选择满足条件的&#xff0c; ds模型选择列表 https://ollama.com/library/deepseek-r1 a卡当前支持的显卡型号 I卡 gpu加速配置 2025.3 intel Official project optimization https://www.modelscope.cn/m…

【大模型基础_毛玉仁】2.2 大语言模型架构概览

【大模型基础_毛玉仁】2.2 大语言模型架构概览 2.2 大语言模型架构概览2.2.1 主流模型架构的类别1&#xff09;Encoder-only 架构2&#xff09;Encoder-Decoder 架构3&#xff09;Decoder-only 架构 2.2.2 模型架构的功能对比1&#xff09;注意力矩阵2&#xff09;适用任务 2.2…

pt-archiver删除数据库的数据表/各种报错类型

这篇帖子是前面文的一部分延申 mysqlimport导入一亿数据的csv文件/一行命令删除表-CSDN博客 如需转载&#xff0c;标记出处 目录 pt-archiver命令格式 如果执行后出现下面报错 1&#xff09;Cannot find an ascendable index in table at /usr/bin/pt-archiver line 3233. …

LLM 学习(一 序言)

文章目录 LLM 学习&#xff08;一 序言&#xff09;知识点1&#xff1a;“Embedding” 在人工智能领域&#xff1a;知识点2&#xff1a;Embedding 引入位置信息的原因知识点3&#xff1a;在 Transformer 的 Decoder 翻译第 i 个单词时进行 Mask 第 i1 个单词的操作 LLM 学习&am…

STM32-HAL库初始化时钟

使能和失能外设GPIOA 时钟信号初始化函数 HAL_RCC_OscConfig函数&#xff1a; HAL_StatusTypeDef是该函数的返回值类型,最顶上的那句话只是这个函数的原型 HAL_RCC_ClockConfig函数&#xff1a; 因为FLASH实际上只能支持24MHz的时钟信号所以如果用高于24MHz的信号输入则要用到等…

批量将 Word 拆分成多个文件

当一个 Word 文档太大的时候&#xff0c;我们通常会将一个大的 Word 文档拆分成多个小的 Word 文档&#xff0c;在 Office 中拆分 Word 文档是比较麻烦的&#xff0c;我们需要将 Word 文档的页面复制到另外一个 Word 文档中去&#xff0c;然后删除原 Word 文档中的内容。当然也…

【算法系列】桶排序算法介绍及实现

文章目录 桶排序算法介绍及实现桶排序的基本原理算法实现步骤Java代码实现性能优化结论 桶排序算法介绍及实现 桶排序的基本原理 桶排序&#xff08;Bucket Sort&#xff09;是一种基于分组的排序算法&#xff0c;其核心思想是将一组数据按某种 规则分配到多个桶中&#xff0…

13.数据结构(软考)

13.数据结构&#xff08;软考&#xff09; 13.1:线性表 13.1.1 顺序表 顺序存储方式:数组的内存是连续分配的并且是静态分配的&#xff0c;即在使用数组之前需要分配固定大小的空间。 时间复杂度&#xff1a; 读&#xff1a;O(1) 查询&#xff1a;1&#xff0c;(n1)/2&#x…

拉拉扯扯adfda

read -p "请输入一个成绩&#xff1a;" sorce if [ "$sorce" -ge 90 -a "$sorce" -le 100 ] thenecho A elif [ "$sorce" -ge 80 -a "$sorce" -lt 90 ] thenecho B elif [ "$sorce" -ge 70 -a "$sorce"…

【计算机网络】TCP

1.基本概念及报文格式 基本概念&#xff1a; TCP的中文全称为传输控制协议&#xff08;Transmission Control Protocol&#xff09;&#xff0c;是一种可靠的&#xff0c;面向连接的&#xff0c;基于字节流的传输层通信协议。 报文格式&#xff1a; 序号 &#xff1a;占32⽐…

关于tomcat使用中浏览器打开index.jsp后中文显示不正常是乱码,但英文正常的问题

如果是jsp文件就在首行加 “<% page language"java" contentType"text/html; charsetUTF-8" pageEncoding"UTF-8" %>” 如果是html文件 在head标签加入&#xff1a; <meta charset"UTF-8"> 以jsp为例子&#xff0c;我们…

pytest结合allure

Allure 一、文档二、指令三、装饰器3.1 allure.step装饰器3.2 allure.description装饰器3.3 allure.title装饰器3.4 allure.link、allure.issue 和 allure.testcase装饰器3.5 allure.epic、allure.feature 和 allure.story装饰器3.6 allure.severity装饰器 一、文档 allure文档…

vue2升vue3,uniapp兼容鸿蒙app踩坑记录

前提&#xff1a;最近鸿蒙势头很好&#xff0c;公司的 uniapp vue2 项目&#xff0c;要兼容鸿蒙app。就开始了我的uniapp转鸿蒙踩坑之旅&#xff0c;请看下文&#xff08;注意下文都是在uniapp开发基础上&#xff09; 1. 首先鸿蒙开发只支持Vue3&#xff0c;不支持Vue2、不支持…

DeepSeek × 豆包深度整合指南:工作流全解析

DeepSeek 豆包深度整合指南&#xff1a;工作流全解析 前些天发现了一个巨牛的人工智能学习网站&#xff0c;通俗易懂&#xff0c;风趣幽默&#xff0c;可以分享一下给大家。点击跳转到网站。 https://www.captainbed.cn/ccc 文章目录 DeepSeek 豆包深度整合指南&#xff1a;工…

海思Hi3516DV300交叉编译opencv

OpenCV是一个开源的跨平台计算机视觉库&#xff0c;支持C、Python等多种语言&#xff0c;适用于图像处理、目标检测、机器学习等任务。其核心由C编写&#xff0c;高效轻量&#xff0c;提供实时视觉处理功能&#xff0c;广泛应用于工业自动化、医疗影像等领域。 1 环境准备 1…

[FE] React 初窥门径(五):React 组件的加载过程(commit 阶段)

1. 回顾 前一篇文章我们看到&#xff0c;ReactDOM.render 总共包含这些步骤&#xff0c; 然后介绍了 performSyncWorkOnRoot 做的事情&#xff0c;它主要做了两件事&#xff0c; renderRootSync 可称之为 render 阶段&#xff1a;创建了一颗 Fiber Tree&#xff08;包含 html …