<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>清弦子@博客</title>
        <link>https://tangly1024.com/</link>
        <description>一个NotionNext搭建的博客</description>
        <lastBuildDate>Fri, 07 Aug 2026 10:35:09 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh_CN</language>
        <copyright>All rights reserved 2026, 清弦子</copyright>
        <item>
            <title><![CDATA[固件库]]></title>
            <link>https://tangly1024.com/单片机技术/stm32_01</link>
            <guid>https://tangly1024.com/单片机技术/stm32_01</guid>
            <pubDate>Fri, 10 Apr 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[stm32固件库知识]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-33e9995fc21f80709ee5cfd70c066b2c"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3629995fc21f80df864fdbdc21821e1d" data-id="3629995fc21f80df864fdbdc21821e1d"><span><div id="3629995fc21f80df864fdbdc21821e1d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3629995fc21f80df864fdbdc21821e1d" title="核心心法：如何阅读手册中的寄存器表格？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red"><b>核心心法：如何阅读手册中的寄存器表格？</b></span></span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3629995fc21f801eb28afdb73c1653da"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:768px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0315dad0-def4-4368-98d2-921ff39568fd%3Aimage.png?table=block&amp;id=3629995f-c21f-801e-b28a-fdb73c1653da&amp;t=3629995f-c21f-801e-b28a-fdb73c1653da" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3629995fc21f80baaf73f529e42e4cb4" data-id="3629995fc21f80baaf73f529e42e4cb4"><span><div id="3629995fc21f80baaf73f529e42e4cb4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3629995fc21f80baaf73f529e42e4cb4" title="STM32F1系列下的不同产品子系列"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red"><b>STM32F1系列下的不同产品子系列</b></span></span></span></h2><ul class="notion-list notion-list-disc notion-block-3629995fc21f80f283f9cffbd5941ec6"><li><b>基础/增强型</b>：<code class="notion-inline-code">STM32F10X_LD</code> / <code class="notion-inline-code">_MD</code> / <code class="notion-inline-code">_HD</code>。这是最常用的分类，根据Flash容量大小划分-。<code class="notion-inline-code"><b>STM32F103C8T6</b></code><b> 就属于这个类别，对应 </b><code class="notion-inline-code"><b>STM32F10X_MD</b></code>。</li></ul><ul class="notion-list notion-list-disc notion-block-3629995fc21f803685b7fa3ec810336c"><li><b>互联型</b>：<code class="notion-inline-code">STM32F10X_CL</code> (Connectivity Line)。指集成了更丰富外设（如以太网、USB OTG）的STM32F105/107系列。</li></ul><ul class="notion-list notion-list-disc notion-block-3629995fc21f805581f8d8b40ea0fb5c"><li><b>超值型</b>：<code class="notion-inline-code">STM32F10X_LD_VL</code> / <code class="notion-inline-code">_MD_VL</code> / <code class="notion-inline-code">_HD_VL</code> (Value Line)。专指性价比高、成本敏感的STM32F100系列。</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3629995fc21f804cb986dbf84693c4bb" data-id="3629995fc21f804cb986dbf84693c4bb"><span><div id="3629995fc21f804cb986dbf84693c4bb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3629995fc21f804cb986dbf84693c4bb" title="频率和秒的知识点"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">频率和秒的知识点</span></span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3629995fc21f8062a76fd34cf22f0587"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A56b57527-ea85-4d63-88b8-21629d35f698%3Aimage.png?table=block&amp;id=3629995f-c21f-8062-a76f-d34cf22f0587&amp;t=3629995f-c21f-8062-a76f-d34cf22f0587" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3629995fc21f80a881ceec957a2a47a0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Affcb3c31-7030-4ef8-b57a-4e61c44ec0be%3Aimage.png?table=block&amp;id=3629995f-c21f-80a8-81ce-ec957a2a47a0&amp;t=3629995f-c21f-80a8-81ce-ec957a2a47a0" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3629995fc21f80e68617f4c0a246c80a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A51ea33b5-373b-4138-a44a-d10eacc2a501%3Aimage.png?table=block&amp;id=3629995f-c21f-80e6-8617-f4c0a246c80a&amp;t=3629995f-c21f-80e6-8617-f4c0a246c80a" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3679995fc21f80f88662ed24262b86dc" data-id="3679995fc21f80f88662ed24262b86dc"><span><div id="3679995fc21f80f88662ed24262b86dc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3679995fc21f80f88662ed24262b86dc" title="格式化输出符号"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">格式化输出符号</span></span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3789995fc21f8090a6e9c14c80a2300e" data-id="3789995fc21f8090a6e9c14c80a2300e"><span><div id="3789995fc21f8090a6e9c14c80a2300e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3789995fc21f8090a6e9c14c80a2300e" title="C语言常用转义字符"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">C语言常用转义字符</span></span></span></h2><ul class="notion-list notion-list-disc notion-block-3789995fc21f805d88f5e49f8ff92635"><li>转义字符以<code class="notion-inline-code">\</code>开头，用来表示<b>无法直接输入 / 显示的特殊字符</b>，或解决<code class="notion-inline-code">\</code>、<code class="notion-inline-code">&quot;</code>这类符号的冲突问题。</li></ul><table class="notion-simple-table notion-block-3789995fc21f80c1bf60d8fe7dd6d9d6"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3789995fc21f80df9fc4c3329a2023ea"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">转义字符</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">ASCII 码（十进制 / 十六进制）</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">功能说明</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">串口 / 终端常见场景</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80a196dae215d01fe289"><td class="" style="width:176.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">\0</code></div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">0 / 0x00</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">字符串结束标志</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">C 语言中<code class="notion-inline-code">char[]</code>的终止符，<code class="notion-inline-code">while(*str != &#x27;\0&#x27;)</code>就是靠它判断字符串结束</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80219e7dcb76b85ce3fb"><td class="" style="width:176.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">\n</code></div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">10 / 0x0A</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">换行（Line Feed）</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">光标移到下一行，但<b>不回到行首</b></div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f802e86a5d4abef03145e"><td class="" style="width:176.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">\r</code></div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">13 / 0x0D</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">回车（Carriage Return）</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">光标回到当前行的<b>行首</b>，但不换行</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f8033ab69f654ecbc8011"><td class="" style="width:176.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">\r\n</code></div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">13+10 / 0x0D 0x0A</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">Windows 标准换行</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">同时实现「回到行首 + 换行」，串口助手里按回车就会发送这两个字节</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f8092aa65dbe7800d97f8"><td class="" style="width:176.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">\t</code></div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">9 / 0x09</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">水平制表符（Tab）</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">光标跳到下一个 Tab 位置，用来对齐文本</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f801ba92eee54846f0cf1"><td class="" style="width:176.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">\b</code></div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">8 / 0x08</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">退格（Backspace）</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">光标回退一格，删除前一个字符</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80c282c0c9fa7afe6a5e"><td class="" style="width:176.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">\f</code></div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">12 / 0x0C</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">换页（Form Feed）</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">在 Windows 超级终端 / 串口助手发送<code class="notion-inline-code">\f</code>（即<code class="notion-inline-code">0x0C</code>）可实现清屏</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f807188a0e40faba79ff3"><td class="" style="width:176.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">\\</code></div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">92 / 0x5C</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">反斜杠本身</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">因为<code class="notion-inline-code">\</code>是转义起始符，要输出单个<code class="notion-inline-code">\</code>必须写两个<code class="notion-inline-code">\\</code></div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f805a9443f1a1daa70253"><td class="" style="width:176.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">\&#x27;</code></div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">39 / 0x27</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">单引号</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">解决 C 语言中<code class="notion-inline-code">&#x27;</code>作为字符边界的冲突</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80ecba6deb5492232905"><td class="" style="width:176.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">\&quot;</code></div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">34 / 0x22</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">双引号</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">解决 C 语言中<code class="notion-inline-code">&quot;</code>作为字符串边界的冲突</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80dc8439e0c6082e90bc"><td class="" style="width:176.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">\ddd</code></div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">8 进制表示的字符</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">用 1-3 位 8 进制数表示 ASCII 字符</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">比如<code class="notion-inline-code">\012</code>等价于<code class="notion-inline-code">\n</code>（8 进制 12 = 十进制 10）</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80f2b78ad26056b2d282"><td class="" style="width:176.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">\xhh</code></div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">16 进制表示的字符</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">用 1-2 位 16 进制数表示 ASCII 字符</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">比如<code class="notion-inline-code">\x0A</code>等价于<code class="notion-inline-code">\n</code>，<code class="notion-inline-code">\x0D</code>等价于<code class="notion-inline-code">\r</code></div></td></tr></tbody></table><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3789995fc21f80bcad58cae461ce731a" data-id="3789995fc21f80bcad58cae461ce731a"><span><div id="3789995fc21f80bcad58cae461ce731a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3789995fc21f80bcad58cae461ce731a" title="ANSI 终端控制码（彩色文本 + 格式控制）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">ANSI 终端控制码（彩色文本 + 格式控制）</span></span></span></h2><ul class="notion-list notion-list-disc notion-block-3789995fc21f80d187cef99e4d35cf80"><li>NSI 控制码以<code class="notion-inline-code">\033[</code>（即<code class="notion-inline-code">ESC[</code>，<code class="notion-inline-code">\033</code>是 ESC 的 8 进制表示）开头，用来控制终端的文本颜色、格式，支持大部分串口助手（如 DYS 串口助手、Xshell、PuTTY）</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3789995fc21f805e9e7fc7ad2dcd65f5" data-id="3789995fc21f805e9e7fc7ad2dcd65f5"><span><div id="3789995fc21f805e9e7fc7ad2dcd65f5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3789995fc21f805e9e7fc7ad2dcd65f5" title="（1）基础格式控制码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">（1）基础格式控制码</span></span></span></h3><table class="notion-simple-table notion-block-3789995fc21f80438f62e9a788892a48"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3789995fc21f80888abcc0438d512d3e"><td class="" style="width:141.4px"><div class="notion-simple-table-cell">开启码</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">对应关闭码</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">功能说明</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">杜洋串口助手 V1 支持情况</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">备注</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80e5ab4fed6c6e76f7fd"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">0</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">无（全局重置）</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><b>恢复所有默认设置</b>（黑底白字，关闭所有格式）</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">✅ 完美支持</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">最常用！所有格式输出后必须加这个，否则后续文字都会带格式</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80e3afd2cbe131ed7024"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">1</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">22</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">高亮 / 加粗显示</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">✅ 完美支持</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">最常用！让文字更醒目，调试信息必备</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f803a82fdcc0c3fbe2503"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">2</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">22</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">暗淡 / 低亮度显示</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">❌ 不支持</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">绝大多数串口助手都不支持</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80ac9a21d8d69964ae6c"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">3</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">23</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">斜体显示</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">❌ 不支持</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">只有 Xshell、SecureCRT 等专业终端支持</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80b2a87de07d8dcb1ab0"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">4</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">24</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">下划线</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">✅ 完美支持</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">可以用来标记重要标题</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80f4bd25f5d3eb2ebaec"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">5</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">25</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">慢速闪烁（&lt;150 次 / 分钟）</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">⚠️ 部分支持</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">杜洋串口助手会显示为高亮，不会真的闪烁</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80088f32c026fd298313"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">6</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">25</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">快速闪烁（&gt;150 次 / 分钟）</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">❌ 不支持</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">几乎没有终端支持</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f8083acbcdc7644b06dbd"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">7</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">27</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">反白显示（前景色和背景色互换）</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">✅ 完美支持</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">用来突出显示警告信息</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f808e8b16f48a113292d6"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">8</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">28</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">隐藏 / 不可见</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">❌ 不支持</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">杜洋串口助手会显示为黑色文字</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f8026893bd696c43f4907"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">9</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">29</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">删除线 / 划除线</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">❌ 不支持</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">只有现代终端支持</div></td></tr></tbody></table><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3789995fc21f80fa9575c6518e073594" data-id="3789995fc21f80fa9575c6518e073594"><span><div id="3789995fc21f80fa9575c6518e073594" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3789995fc21f80fa9575c6518e073594" title="（2）前景 / 背景颜色对照表"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">（2）前景 / 背景颜色对照表</span></span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3789995fc21f80149616deec9ee53c48" data-id="3789995fc21f80149616deec9ee53c48"><span><div id="3789995fc21f80149616deec9ee53c48" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3789995fc21f80149616deec9ee53c48" title="（2.1）基础8色（所有终端通用）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">（2.1）基础8色（所有终端通用）</span></span></span></h4><table class="notion-simple-table notion-block-3789995fc21f80139f9ed748c041cafc"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3789995fc21f803ab4c6c8d0955bee4e"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">前景色代码</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">背景色代码</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">颜色名称</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">效果</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f802ebb5dc700c2e71158"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">30</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">40</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">黑色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深黑色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80049c7dda035e93be2c"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">31</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">41</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">红色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深红色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f8033b8d9c423e98f05a3"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">32</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">42</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">绿色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深绿色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f806fa85ecc6caffd8518"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">33</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">43</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">黄色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深黄色（偏棕）</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f801080cac8b73c4d1d30"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">34</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">44</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">蓝色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深蓝色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f8060afc2fc63c53dd9e1"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">35</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">45</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">紫红色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深紫色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80cc81f6e8073b61d565"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">36</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">46</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">青蓝色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深青色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80b9b876caa54f47350d"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">37</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">47</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">白色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">浅灰色（标准白色）</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3789995fc21f80068614d54b718d5ad7" data-id="3789995fc21f80068614d54b718d5ad7"><span><div id="3789995fc21f80068614d54b718d5ad7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3789995fc21f80068614d54b718d5ad7" title="（2.2）16 色（绝大多数串口助手支持，推荐使用）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">（2.2）16 色（绝大多数串口助手支持，推荐使用）</span></span></span></h4><ul class="notion-list notion-list-disc notion-block-3789995fc21f8004ad15eb051f2b6b66"><li>在基础 8 色的基础上，增加了<b>高亮版本</b>，通过在颜色代码前加<code class="notion-inline-code">1;</code>（高亮属性）实现，颜色更鲜艳、更清晰</li></ul><table class="notion-simple-table notion-block-3789995fc21f8078b450ff13c4169548"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3789995fc21f8081b14fc211d9b5b3ca"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">前景色代码</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">背景色代码</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">颜色名称</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">效果</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f801c8ab5d0b184d44e8a"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">30</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">40</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">黑色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深黑色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f8024ac49f7f59f9bc4d6"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">90</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">100</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">亮黑色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深灰色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f800287b3cbb0b3c08ace"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">31</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">41</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">红色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深红色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f801ab25eeb8f253a5963"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">91</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">101</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">亮红色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">鲜红色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f802a8662e52a3250cde2"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">32</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">42</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">绿色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深绿色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f8016a444f17225c95348"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">92</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">102</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">亮绿色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">鲜绿色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f8084a5e7d06270555b6a"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">33</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">43</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">黄色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深黄色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f809dadd6de05a22dcaf0"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">93</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">103</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">亮黄色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">纯黄色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f803aac6afbe75b29de0c"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">34</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">44</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">蓝色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深蓝色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f805e84a9d8025f450720"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">94</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">104</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">亮蓝色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">天蓝色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f8083ab1dfc4056b2ff1c"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">35</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">45</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">紫红色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深紫色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80dd9052eb5da9cbf241"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">95</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">105</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">亮紫红色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">洋红色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f805cb747ff2db1142ad6"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">36</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">46</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">青蓝色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">深青色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80cb8d3efc459fe18c8f"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">96</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">106</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">亮青蓝色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">天青色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f808f9b57db4dacde9b23"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">37</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">47</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">白色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">浅灰色</div></td></tr><tr class="notion-simple-table-row notion-block-3789995fc21f80f68091d3df84aa6b9e"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">97</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">107</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">亮白色</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">纯白色</div></td></tr></tbody></table><ul class="notion-list notion-list-disc notion-block-3789995fc21f800a843af0491b389578"><li>示例（STM32）：</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3789995fc21f803c96fed4fa5538c860" data-id="3789995fc21f803c96fed4fa5538c860"><span><div id="3789995fc21f803c96fed4fa5538c860" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3789995fc21f803c96fed4fa5538c860" title="（2.3）256 色（部分高级串口助手支持）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">（2.3）256 色（部分高级串口助手支持）</span></span></span></h4><ul class="notion-list notion-list-disc notion-block-3789995fc21f80c09d33f7775463297a"><li>支持 Xshell、SecureCRT、MobaXterm 等专业终端</li></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f80bd809fed41f1727ce3"><li>格式：</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80bd809fed41f1727ce3"><li>前景色：<code class="notion-inline-code">38;5;颜色编号</code></li><li>背景色：<code class="notion-inline-code">48;5;颜色编号</code></li></ul></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f8061ad57e9871cf81fe8"><li>颜色编号范围：<code class="notion-inline-code">0~255</code>，分为 3 个区域：</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f8061ad57e9871cf81fe8"><li><code class="notion-inline-code">0~15</code>：对应上面的 16 色</li><li><code class="notion-inline-code">16~231</code>：216 种 RGB 颜色（6×6×6 色板）</li><li><code class="notion-inline-code">232~255</code>：24 级灰度（从黑到白）</li></ul></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f80059cb9c4875cbb4c9b"><li>示例：</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3789995fc21f80fe9ae1d8861d9005c9" data-id="3789995fc21f80fe9ae1d8861d9005c9"><span><div id="3789995fc21f80fe9ae1d8861d9005c9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3789995fc21f80fe9ae1d8861d9005c9" title="（2.4）24 位真彩色（仅专业终端支持）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">（2.4）24 位真彩色（仅专业终端支持）</span></span></span></h4><ul class="notion-list notion-list-disc notion-block-3789995fc21f8017bcc3e9f309668552"><li>支持 Xshell 7+、SecureCRT 9+、Windows Terminal 等现代终端，<b>绝大多数串口助手不支持</b></li></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f80c3bd4edf56a53f6a51"><li>格式：</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80c3bd4edf56a53f6a51"><li>前景色：<code class="notion-inline-code">38;2;R;G;B</code></li><li>背景色：<code class="notion-inline-code">48;2;R;G;B</code></li></ul></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f80bc9212de9efabe13c7"><li>其中 R、G、B 的范围是<code class="notion-inline-code">0~255</code></li></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f8061ab5be49169976993"><li>示例：</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3789995fc21f8011910cf452cf5b811f" data-id="3789995fc21f8011910cf452cf5b811f"><span><div id="3789995fc21f8011910cf452cf5b811f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3789995fc21f8011910cf452cf5b811f" title="（3）控制码格式与示例"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">（3）控制码格式与示例</span></span></span></h3><ul class="notion-list notion-list-disc notion-block-3789995fc21f80edbc2bd938870aaca7"><li>格式：<code class="notion-inline-code">\033[&lt;格式&gt;;&lt;背景&gt;;&lt;前景&gt;m</code>，用<code class="notion-inline-code">\033[0m</code>结束控制序列</li></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f805e91e4df7f38ce87b0"><li>示例 1：黑底绿色高亮文字</li></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f80df8b18d5ba39c90c54"><li><code class="notion-inline-code">\033[1;40;32m</code>：开启高亮、黑背景、绿前景</li></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f801b86cac7be49c4c519"><li><code class="notion-inline-code">\033[0m</code>：恢复默认格式，避免后续文本也带颜色</li></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f80f8942be2a367d5f451"><li>示例 2：红色闪烁文字</li></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f80f5a876d124c21455c4"><li>示例 3：带背景的蓝色文字</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3629995fc21f8013bb1cdefedce3ef44" data-id="3629995fc21f8013bb1cdefedce3ef44"><span><div id="3629995fc21f8013bb1cdefedce3ef44" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3629995fc21f8013bb1cdefedce3ef44" title="存储器映像"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">存储器映像</span></span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3629995fc21f80faba48c6418a3ef261"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:320px"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aea16250b-13f6-494f-9610-41d185621e2d%3Ae7ec2670-71d9-4975-b190-8246375972b9.png?table=block&amp;id=3629995f-c21f-80fa-ba48-c6418a3ef261&amp;t=3629995f-c21f-80fa-ba48-c6418a3ef261" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-3629995fc21f8093a447e1c6a256e1c5"> </div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3629995fc21f80888f0dcb167e7ee43c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:320px"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acee4c851-3a16-4f85-8c29-1e37048085b9%3A30a145b5-4f3d-4f48-95d2-035eeeb3cb5e.png?table=block&amp;id=3629995f-c21f-8088-8f0d-cb167e7ee43c&amp;t=3629995f-c21f-8088-8f0d-cb167e7ee43c" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3629995fc21f8012b857fedbc76264d0" data-id="3629995fc21f8012b857fedbc76264d0"><span><div id="3629995fc21f8012b857fedbc76264d0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3629995fc21f8012b857fedbc76264d0" title="STM32F103xx增强型模块框图（后续设置SYSCLK、AHB、APB1、APB2等都需要查看这幅图）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">STM32F103xx增强型模块框图（后续设置SYSCLK、AHB、APB1、APB2等都需要查看这幅图）</span></span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3629995fc21f80dc8a4bc7ac8c663c8f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:320px"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9177c505-306a-4314-b933-4847ddfc2275%3A7d3d5709-fa03-452f-96d2-4799a71cccb1.png?table=block&amp;id=3629995f-c21f-80dc-8a4b-c7ac8c663c8f&amp;t=3629995f-c21f-80dc-8a4b-c7ac8c663c8f" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3629995fc21f807098b5ca5320813228" data-id="3629995fc21f807098b5ca5320813228"><span><div id="3629995fc21f807098b5ca5320813228" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3629995fc21f807098b5ca5320813228" title="时钟树（后续设置SYSCLK、AHB、APB1、APB2等都需要查看这幅图）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">时钟树（后续设置SYSCLK、AHB、APB1、APB2等都需要查看这幅图）</span></span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3629995fc21f80c09e55fb538ea6235e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:320px"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A88b86e85-600e-4233-a50e-26d085e1eb9b%3A83fd6fcf-cbc0-4932-9c51-28661264f9b5.png?table=block&amp;id=3629995f-c21f-80c0-9e55-fb538ea6235e&amp;t=3629995f-c21f-80c0-9e55-fb538ea6235e" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3979995fc21f80bf8557c85429836701" data-id="3979995fc21f80bf8557c85429836701"><span><div id="3979995fc21f80bf8557c85429836701" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3979995fc21f80bf8557c85429836701" title="单片机内部电路常见的四种模式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red"><b>单片机内部电路常见的四种模式</b></span></span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3979995fc21f8028b2b5ff988d4c0b94" data-id="3979995fc21f8028b2b5ff988d4c0b94"><span><div id="3979995fc21f8028b2b5ff988d4c0b94" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3979995fc21f8028b2b5ff988d4c0b94" title="51单片机识别模式方式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red"><b>51单片机识别模式方式</b></span></span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3979995fc21f80ed9b4ac2afb29739c0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A27508db1-328a-4cdb-88cd-a37170d178f2%3Aimage.png?table=block&amp;id=3979995f-c21f-80ed-9b4a-c2afb29739c0&amp;t=3979995f-c21f-80ed-9b4a-c2afb29739c0" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3979995fc21f8061a773f495b058ed35" data-id="3979995fc21f8061a773f495b058ed35"><span><div id="3979995fc21f8061a773f495b058ed35" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3979995fc21f8061a773f495b058ed35" title="双向模式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">双向模式</span></span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3979995fc21f805d91c0d9635a6b4e8a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7b5c81d0-4d36-44dd-8f16-2ae1fe6a8c20%3Aimage.png?table=block&amp;id=3979995f-c21f-805d-91c0-d9635a6b4e8a&amp;t=3979995f-c21f-805d-91c0-d9635a6b4e8a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3979995fc21f80b7adccdd60051d96de"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7fecba95-efd8-4fd3-b95d-4b0d65d78ec7%3Aimage.png?table=block&amp;id=3979995f-c21f-80b7-adcc-dd60051d96de&amp;t=3979995f-c21f-80b7-adcc-dd60051d96de" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3979995fc21f8092a00afb36f3d6a23a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abcfd413d-6ecd-403d-b378-825cf8fb7588%3Aimage.png?table=block&amp;id=3979995f-c21f-8092-a00a-fb36f3d6a23a&amp;t=3979995f-c21f-8092-a00a-fb36f3d6a23a" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3979995fc21f805e9e8ad532cc13b021" data-id="3979995fc21f805e9e8ad532cc13b021"><span><div id="3979995fc21f805e9e8ad532cc13b021" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3979995fc21f805e9e8ad532cc13b021" title="开漏模式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">开漏模式</span></span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3979995fc21f8000abcde4a8cb17acaa"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab3472f4c-20ab-4632-b8b5-5bb9f76fac84%3Aimage.png?table=block&amp;id=3979995f-c21f-8000-abcd-e4a8cb17acaa&amp;t=3979995f-c21f-8000-abcd-e4a8cb17acaa" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3979995fc21f8050a960d2f76516904c" data-id="3979995fc21f8050a960d2f76516904c"><span><div id="3979995fc21f8050a960d2f76516904c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3979995fc21f8050a960d2f76516904c" title="推挽模式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">推挽模式</span></span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3979995fc21f80a5a2e6c1f07c1d62d0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa923c779-2a66-4246-8d28-ae8e061d32f8%3Aimage.png?table=block&amp;id=3979995f-c21f-80a5-a2e6-c1f07c1d62d0&amp;t=3979995f-c21f-80a5-a2e6-c1f07c1d62d0" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3979995fc21f80a985d0c99ba69f6d19"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acb187818-6915-4b92-8d06-100c312a7a10%3Aimage.png?table=block&amp;id=3979995f-c21f-80a9-85d0-c99ba69f6d19&amp;t=3979995f-c21f-80a9-85d0-c99ba69f6d19" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3979995fc21f80f8857fd60e82a713c2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6bcf035b-ef53-46a5-8d9a-e803db96af05%3Aimage.png?table=block&amp;id=3979995f-c21f-80f8-857f-d60e82a713c2&amp;t=3979995f-c21f-80f8-857f-d60e82a713c2" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3979995fc21f80649c42e5028c0b221a"><li>上方MOS管：PMOS管，下方MOS管：NMOS管</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3979995fc21f809fae85cff2a6708d93"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad4c710ac-d1ba-48f1-bb97-ee7812308814%3A088b55c6e7edfbf74f7395aee3cb2232.jpg?table=block&amp;id=3979995f-c21f-809f-ae85-cff2a6708d93&amp;t=3979995f-c21f-809f-ae85-cff2a6708d93" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-3979995fc21f803dbe06cb0734ef8edf">左边NMOS管：高电平导通</div><div class="notion-text notion-block-3979995fc21f803aa228d94fe2db575e">右边PMOS管：低电平导通</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3979995fc21f808d9571c9a5afa6a6ef" data-id="3979995fc21f808d9571c9a5afa6a6ef"><span><div id="3979995fc21f808d9571c9a5afa6a6ef" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3979995fc21f808d9571c9a5afa6a6ef" title="浮空模式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">浮空模式</span></span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3979995fc21f80f08e19d5edf1164226"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9ccb16c5-ea58-404c-a529-4b764db8e670%3Aimage.png?table=block&amp;id=3979995f-c21f-80f0-8e19-d5edf1164226&amp;t=3979995f-c21f-80f0-8e19-d5edf1164226" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3489995fc21f80d58ea0fc86d9679cd7" data-id="3489995fc21f80d58ea0fc86d9679cd7"><span><div id="3489995fc21f80d58ea0fc86d9679cd7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3489995fc21f80d58ea0fc86d9679cd7" title="一、四种方法实现的LED闪灯程序文件分析"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一、四种方法实现的LED闪灯程序文件分析</span></span></h2><div class="notion-text notion-block-3489995fc21f80cba017f64179fed548"><span class="notion-red"><span class="notion-blue_background"><b>main.c文件代码：</b></span></span></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-34f9995fc21f801b9816c0b784f47dd7" data-id="34f9995fc21f801b9816c0b784f47dd7"><span><div id="34f9995fc21f801b9816c0b784f47dd7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f9995fc21f801b9816c0b784f47dd7" title="1.1 RCC_Configuration(void)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.1 RCC_Configuration(void)</span></span></h3><div class="notion-text notion-block-34f9995fc21f80dbb859cb5db6ff50e5"><span class="notion-red"><span class="notion-blue_background"><b>sys.c文件部分代码：</b></span></span></div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3569995fc21f80f0968bea24dad8dd24" data-id="3569995fc21f80f0968bea24dad8dd24"><span><div id="3569995fc21f80f0968bea24dad8dd24" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3569995fc21f80f0968bea24dad8dd24" title="① 宏观目的"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">① 宏观目的</span></span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3559995fc21f80a1ba07d7147b085370"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abab5f421-6dd8-4094-808b-b099c55322d3%3Aimage.png?table=block&amp;id=3559995f-c21f-80a1-ba07-d7147b085370&amp;t=3559995f-c21f-80a1-ba07-d7147b085370" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3569995fc21f8067baacc7a1d2c58b6f" data-id="3569995fc21f8067baacc7a1d2c58b6f"><span><div id="3569995fc21f8067baacc7a1d2c58b6f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3569995fc21f8067baacc7a1d2c58b6f" title="② 编写者视角🚀"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">② 编写者视角🚀</span></span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f800dafced3bea83d4549"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8107b446-48da-45fb-bee2-8f7f7bf34cea%3Aimage.png?table=block&amp;id=3569995f-c21f-800d-afce-d3bea83d4549&amp;t=3569995f-c21f-800d-afce-d3bea83d4549" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35a9995fc21f80b7a90ac9b1e218c95d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A19bffefe-feab-4c71-8873-8b29671f4d26%3Aimage.png?table=block&amp;id=35a9995f-c21f-80b7-a90a-c9b1e218c95d&amp;t=35a9995f-c21f-80b7-a90a-c9b1e218c95d" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-35a9995fc21f8083be84c298a55a7020" data-id="35a9995fc21f8083be84c298a55a7020"><span><div id="35a9995fc21f8083be84c298a55a7020" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35a9995fc21f8083be84c298a55a7020" title="③ RCC时钟是什么？为什么要从HSI设置为HSE+PLL？为什么需要外设时钟？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">③ RCC时钟是什么？为什么要从HSI设置为HSE+PLL？为什么需要外设时钟？</span></span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35a9995fc21f804bb8e8fe1e68da08da"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af270fe08-b915-44a2-a92e-9e820ea0602d%3Aimage.png?table=block&amp;id=35a9995f-c21f-804b-b8e8-fe1e68da08da&amp;t=35a9995f-c21f-804b-b8e8-fe1e68da08da" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35a9995fc21f802fb51cf9a081186dcc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A45d05bb7-c9ba-46e8-910a-8f3814dc0f22%3Aimage.png?table=block&amp;id=35a9995f-c21f-802f-b51c-f9a081186dcc&amp;t=35a9995f-c21f-802f-b51c-f9a081186dcc" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35a9995fc21f8061bd14cf8806df3662"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A52142c2c-76d7-40f2-99db-dae62daebefe%3Aimage.png?table=block&amp;id=35a9995f-c21f-8061-bd14-cf8806df3662&amp;t=35a9995f-c21f-8061-bd14-cf8806df3662" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35a9995fc21f80f39a6af13e1ce9667b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aeb0d1275-c25d-4767-a459-b6cfb48ee3ed%3Aimage.png?table=block&amp;id=35a9995f-c21f-80f3-9a6a-f13e1ce9667b&amp;t=35a9995f-c21f-80f3-9a6a-f13e1ce9667b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-34f9995fc21f80ebabc2ed0c8d44746e"><span class="notion-purple"><b>【代码解释】：</b></span></div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-34f9995fc21f80dda8bef8e2023dcd36" data-id="34f9995fc21f80dda8bef8e2023dcd36"><span><div id="34f9995fc21f80dda8bef8e2023dcd36" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f9995fc21f80dda8bef8e2023dcd36" title="ErrorStatus HSEStartUpStatus"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>ErrorStatus HSEStartUpStatus</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-34f9995fc21f80f4af9ad66250402d57"><li>出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3509995fc21f80348fecef6a90d2e4bf"><li>含义：定义状态变量</li></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f80bd88d4f0d08a546953"><li><b>我写这行的想法</b>：定义一个叫 <code class="notion-inline-code">HSEStartUpStatus</code> 的变量，它的类型是 <code class="notion-inline-code">ErrorStatus</code>。我查到 <code class="notion-inline-code">ErrorStatus</code> 只有两个值：<code class="notion-inline-code">SUCCESS</code> 和 <code class="notion-inline-code">ERROR</code>。我用它来存“等待外部晶振”的结果：成功了还是失败了。</li></ul><ul class="notion-list notion-list-disc notion-block-3509995fc21f8002b4caefe928f47325"><li>stm32f10x.h文件中ErrorStatus类型的定义代码：</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3509995fc21f804eb9d8f4dfb925e9f8" data-id="3509995fc21f804eb9d8f4dfb925e9f8"><span><div id="3509995fc21f804eb9d8f4dfb925e9f8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3509995fc21f804eb9d8f4dfb925e9f8" title="RCC_DeInit( )"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_DeInit( )</span></span></h4><ul class="notion-list notion-list-disc notion-block-3509995fc21f8098acbdd5689dd16130"><li>编写这行代码之前，芯片的时钟系统被人动过什么手脚（可能别的代码改过、或者系统从某个异常状态恢复）。我不能冒险在一个不确定的状态上直接配置，万一某个寄存器里还残留着上次的“半吊子”设置，我的配置加上去可能就乱了。所以我的第一件事是：<span class="notion-red"><b>全部清零，重新来过</b></span>。</li></ul><ul class="notion-list notion-list-disc notion-block-3509995fc21f80e2870aff864ad09974"><li>含义：恢复出厂时钟设置</li></ul><ul class="notion-list notion-list-disc notion-block-35a9995fc21f8021addef71a9459364b"><li><b>设计意图</b>：这是一个“<b>回到原点</b>”的操作。它不假定任何硬件状态，强制把时钟系统拨回最原始的上电默认值。这样我后续的配置就是从一张白纸开始，不会出现“旧配置残留导致异常”的棘手Bug。</li></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f80bb97b3c112a9e651e7"><li><b>我写这行的想法</b>：先把时钟系统“恢复出厂设置”。为什么第一件事要做这个？因为我不知道之前系统被谁动过、处于什么状态。直接配置可能出乱子。所以我调用 <code class="notion-inline-code">RCC_DeInit</code>，它帮我把所有时钟寄存器拨回到上电默认值（系统切回内部8MHz时钟，关掉外部晶振和PLL）。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f8030aeccfa01046be364"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4cc8f50a-2a36-4b6e-bcfc-d158d05060fa%3Aimage.png?table=block&amp;id=3569995f-c21f-8030-aecc-fa01046be364&amp;t=3569995f-c21f-8030-aecc-fa01046be364" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3509995fc21f806bbf18e7aee84ae750"><li>出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3509995fc21f80f1a92ac37277b77472"><li>stm32f10x_rcc.c文件中RCC_DeInit函数代码：</li></ul><details class="notion-toggle notion-block-3509995fc21f8018a560d64f4329f7b4"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（1）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>RCC-&gt;CR |= 0x01</b></code></span></span><span class="notion-red"><span class="notion-blue_background"><b> </b></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3509995fc21f80b9bb86c79b1281232a"><li>RCC_CR时钟控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第60~61页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3509995fc21f8048a027f4ebf0248b03"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A493afc59-80b2-4436-bfde-46ca4d996095%3Aimage.png?table=block&amp;id=3509995f-c21f-8048-a027-f4ebf0248b03&amp;t=3509995f-c21f-8048-a027-f4ebf0248b03" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3509995fc21f80f5b9e1f93d63bcf52e"><li>其中与0x01或运算，代表将<span class="notion-red"><b>HSION置为1，其余不变</b></span>（在或运算中，0代表位的值不变，1代表将改位置为1）</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3509995fc21f804caf00c77d4dffbaf6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0f9465f2-b709-490f-9274-7991cab82117%3Aimage.png?table=block&amp;id=3509995f-c21f-804c-af00-c77d4dffbaf6&amp;t=3509995f-c21f-804c-af00-c77d4dffbaf6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3509995fc21f801ba417fd12789cfeba"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:320px"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9c5748df-daa7-4237-9b90-5aa54b92cbcb%3Aimage.png?table=block&amp;id=3509995f-c21f-801b-a417-fd12789cfeba&amp;t=3509995f-c21f-801b-a417-fd12789cfeba" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3509995fc21f80318ceaef2a011c6204"><li><span class="notion-red"><b>至于CR寄存器的其他位为什么不清零？</b></span></li></ul><table class="notion-simple-table notion-block-3509995fc21f805a91d7f389d21480b8"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3509995fc21f80a3af08d2204b78ce69"><td class="" style="width:90.19552612304688px"><div class="notion-simple-table-cell"><b>位</b></div></td><td class="" style="width:113.19552612304688px"><div class="notion-simple-table-cell"><b>名称</b></div></td><td class="" style="width:103.19552612304688px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:83.19552612304688px"><div class="notion-simple-table-cell"><b>复位值</b></div></td><td class="" style="width:350.1875305175781px"><div class="notion-simple-table-cell"><b>描述</b></div></td></tr><tr class="notion-simple-table-row notion-block-3509995fc21f80cfae3cc2ec68eb014b"><td class="" style="width:90.19552612304688px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:113.19552612304688px"><div class="notion-simple-table-cell"><b>HSION</b></div></td><td class="" style="width:103.19552612304688px"><div class="notion-simple-table-cell"><b>控制位</b></div></td><td class="" style="width:83.19552612304688px"><div class="notion-simple-table-cell">1</div></td><td class="" style="width:350.1875305175781px"><div class="notion-simple-table-cell">内部高速时钟使能。复位后默认<b>开</b>。</div></td></tr><tr class="notion-simple-table-row notion-block-3509995fc21f80029888c62a4fc89f64"><td class="" style="width:90.19552612304688px"><div class="notion-simple-table-cell">1</div></td><td class="" style="width:113.19552612304688px"><div class="notion-simple-table-cell"><b>HSIRDY</b></div></td><td class="" style="width:103.19552612304688px"><div class="notion-simple-table-cell"><b>状态位</b></div></td><td class="" style="width:83.19552612304688px"><div class="notion-simple-table-cell">?</div></td><td class="" style="width:350.1875305175781px"><div class="notion-simple-table-cell"><span class="notion-red"><b>硬件自动管理</b></span>。HSI稳定后由硬件置1。</div></td></tr><tr class="notion-simple-table-row notion-block-3509995fc21f80bc8fdac98005547fe3"><td class="" style="width:90.19552612304688px"><div class="notion-simple-table-cell">7:3</div></td><td class="" style="width:113.19552612304688px"><div class="notion-simple-table-cell"><b>HSITRIM</b></div></td><td class="" style="width:103.19552612304688px"><div class="notion-simple-table-cell"><b>控制位</b></div></td><td class="" style="width:83.19552612304688px"><div class="notion-simple-table-cell">16</div></td><td class="" style="width:350.1875305175781px"><div class="notion-simple-table-cell">HSI频率微调，默认值16对应8MHz。</div></td></tr><tr class="notion-simple-table-row notion-block-3509995fc21f80858a69e1994b352e7f"><td class="" style="width:90.19552612304688px"><div class="notion-simple-table-cell">15:8</div></td><td class="" style="width:113.19552612304688px"><div class="notion-simple-table-cell"><b>HSICAL</b></div></td><td class="" style="width:103.19552612304688px"><div class="notion-simple-table-cell"><b>校准值</b></div></td><td class="" style="width:83.19552612304688px"><div class="notion-simple-table-cell">?</div></td><td class="" style="width:350.1875305175781px"><div class="notion-simple-table-cell">这是芯片出厂时校准好的，保证HSI频率精准的。你要是改了它，8MHz就不准了，<span class="notion-red"><b>千万别改</b></span>。</div></td></tr><tr class="notion-simple-table-row notion-block-3509995fc21f8036b3a7d86236893073"><td class="" style="width:90.19552612304688px"><div class="notion-simple-table-cell">16</div></td><td class="" style="width:113.19552612304688px"><div class="notion-simple-table-cell"><b>HSEON</b></div></td><td class="" style="width:103.19552612304688px"><div class="notion-simple-table-cell"><b>控制位</b></div></td><td class="" style="width:83.19552612304688px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:350.1875305175781px"><div class="notion-simple-table-cell">外部高速时钟使能。复位后默认<b>关</b>。<span class="notion-red"><b>【当系统已经安全切回HSI，才能关闭；意思是先设置CFGR寄存器】</b></span></div></td></tr><tr class="notion-simple-table-row notion-block-3509995fc21f80798300f4ab094adc42"><td class="" style="width:90.19552612304688px"><div class="notion-simple-table-cell">17</div></td><td class="" style="width:113.19552612304688px"><div class="notion-simple-table-cell"><b>HSERDY</b></div></td><td class="" style="width:103.19552612304688px"><div class="notion-simple-table-cell"><b>状态位</b></div></td><td class="" style="width:83.19552612304688px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:350.1875305175781px"><div class="notion-simple-table-cell"><span class="notion-red"><b>硬件自动管理</b></span>。HSE稳定后由硬件置1。</div></td></tr><tr class="notion-simple-table-row notion-block-3509995fc21f80f5adede81ba968873e"><td class="" style="width:90.19552612304688px"><div class="notion-simple-table-cell">18</div></td><td class="" style="width:113.19552612304688px"><div class="notion-simple-table-cell"><b>HSEBYP</b></div></td><td class="" style="width:103.19552612304688px"><div class="notion-simple-table-cell"><b>控制位</b></div></td><td class="" style="width:83.19552612304688px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:350.1875305175781px"><div class="notion-simple-table-cell">外部时钟旁路选择。<span class="notion-red"><b>【当系统已经安全切回HSI，才能关闭；意思是先设置CFGR寄存器】</b></span></div></td></tr><tr class="notion-simple-table-row notion-block-3509995fc21f806fb385f0b4a3f52064"><td class="" style="width:90.19552612304688px"><div class="notion-simple-table-cell">19</div></td><td class="" style="width:113.19552612304688px"><div class="notion-simple-table-cell"><b>CSSON</b></div></td><td class="" style="width:103.19552612304688px"><div class="notion-simple-table-cell"><b>控制位</b></div></td><td class="" style="width:83.19552612304688px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:350.1875305175781px"><div class="notion-simple-table-cell">时钟安全系统使能。<span class="notion-red"><b>【当系统已经安全切回HSI，才能关闭；意思是先设置CFGR寄存器】</b></span></div></td></tr><tr class="notion-simple-table-row notion-block-3509995fc21f800f838aee88d33854ca"><td class="" style="width:90.19552612304688px"><div class="notion-simple-table-cell">24</div></td><td class="" style="width:113.19552612304688px"><div class="notion-simple-table-cell"><b>PLLON</b></div></td><td class="" style="width:103.19552612304688px"><div class="notion-simple-table-cell"><b>控制位</b></div></td><td class="" style="width:83.19552612304688px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:350.1875305175781px"><div class="notion-simple-table-cell">PLL使能。复位后默认<b>关</b>。<span class="notion-red"><b>【当系统已经安全切回HSI，才能关闭；意思是先设置CFGR寄存器】</b></span></div></td></tr><tr class="notion-simple-table-row notion-block-3509995fc21f80758eceddf64431273a"><td class="" style="width:90.19552612304688px"><div class="notion-simple-table-cell">25</div></td><td class="" style="width:113.19552612304688px"><div class="notion-simple-table-cell"><b>PLLRDY</b></div></td><td class="" style="width:103.19552612304688px"><div class="notion-simple-table-cell"><b>状态位</b></div></td><td class="" style="width:83.19552612304688px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:350.1875305175781px"><div class="notion-simple-table-cell"><span class="notion-red"><b>硬件自动管理</b></span>。PLL锁定后由硬件置1。</div></td></tr></tbody></table></div></details><details class="notion-toggle notion-block-3519995fc21f80e493a4db2f86d36123"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（2）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>RCC-&gt;CFGR &amp;= (uint32_t)0xF8FF000</b></code></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3519995fc21f80b1b6e6cac0c010519b"><li>因为使用的是STM32F103C8T6芯片，所以是非互联型，因此条件判断为不是STM32F10X_CL。</li></ul><ul class="notion-list notion-list-disc notion-block-3519995fc21f80da8729f03d0f2b9d55"><li>根据这行代码，表示位<span class="notion-red"><b>0~15位清零，24~26位清零，其余位不变</b></span>（在与运算中，0代表位的值清零，1代表不变）</li></ul><ul class="notion-list notion-list-disc notion-block-3519995fc21f80fea20afe6f3ed3dea0"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f808094d4ed8a2d85fc60"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A75318e69-edcf-4983-926b-ecc412fdd55b%3Aimage.png?table=block&amp;id=3519995f-c21f-8080-94d4-ed8a2d85fc60&amp;t=3519995f-c21f-8080-94d4-ed8a2d85fc60" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80d18d79f139f58e6d0c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:672px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae9589239-f3b9-4564-b0a9-ae0a4c11bdfd%3Aimage.png?table=block&amp;id=3519995f-c21f-80d1-8d79-f139f58e6d0c&amp;t=3519995f-c21f-80d1-8d79-f139f58e6d0c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80be9078ddb34c3ebca3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:672px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac8a8d32d-c5d8-435b-8a53-89dde1102d4f%3Aimage.png?table=block&amp;id=3519995f-c21f-80be-9078-ddb34c3ebca3&amp;t=3519995f-c21f-80be-9078-ddb34c3ebca3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f8031a859f3feb5f3f639"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:672px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A023a2a1c-fc74-4eab-92da-4e91fe137838%3Aimage.png?table=block&amp;id=3519995f-c21f-8031-a859-f3feb5f3f639&amp;t=3519995f-c21f-8031-a859-f3feb5f3f639" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80259b25c1afb696ac09"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8bf7b106-a1b4-4e7e-b285-f6cc5b6d2e39%3Aimage.png?table=block&amp;id=3519995f-c21f-8025-9b25-c1afb696ac09&amp;t=3519995f-c21f-8025-9b25-c1afb696ac09" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f8013ae78c01fda93fc01"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9effb5ad-4045-43cc-9103-3b8b373d11d5%3Aimage.png?table=block&amp;id=3519995f-c21f-8013-ae78-c01fda93fc01&amp;t=3519995f-c21f-8013-ae78-c01fda93fc01" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f802e94fffa46e1116212"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae32061a4-840e-4e83-9d14-66d836fff604%3Aimage.png?table=block&amp;id=3519995f-c21f-802e-94ff-fa46e1116212&amp;t=3519995f-c21f-802e-94ff-fa46e1116212" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3519995fc21f809a9cf1f6294f9d1f2b"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（3）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>RCC-&gt;CR &amp;= (uint32_t)0xFEF6FFFF</b></code></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3519995fc21f80a6bfa9ea033a647eca"><li>RCC_CR时钟控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第60~61页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f801abc4fe65b29c3270a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A11791cc6-8bb9-4fb1-9320-da09212fc1c7%3Aimage.png?table=block&amp;id=3519995f-c21f-801a-bc4f-e65b29c3270a&amp;t=3519995f-c21f-801a-bc4f-e65b29c3270a" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3519995fc21f80dc8010deab1d44060b"><li>根据这行代码，表示<span class="notion-red"><b>第16、19、24位清零，其余不变</b></span></li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f809f976efeb365e0f881"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2f5f84e9-efdd-4eee-946f-c75cae0392ba%3Aimage.png?table=block&amp;id=3519995f-c21f-809f-976e-feb365e0f881&amp;t=3519995f-c21f-809f-976e-feb365e0f881" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80e29ae5f58dead9b457"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A04b2b6f4-87ff-4347-94d4-487f9b02d445%3Aimage.png?table=block&amp;id=3519995f-c21f-80e2-9ae5-f58dead9b457&amp;t=3519995f-c21f-80e2-9ae5-f58dead9b457" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80fbae7ad29a5b7ba701"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9863643a-962e-4afb-8f70-66ff6e895db7%3Aimage.png?table=block&amp;id=3519995f-c21f-80fb-ae7a-d29a5b7ba701&amp;t=3519995f-c21f-80fb-ae7a-d29a5b7ba701" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f807690bce686e3fc22a7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab2cc761c-38bc-454b-bc52-fe3a565ea98a%3Aimage.png?table=block&amp;id=3519995f-c21f-8076-90bc-e686e3fc22a7&amp;t=3519995f-c21f-8076-90bc-e686e3fc22a7" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3519995fc21f802581e5c104515f89f2"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（4）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>RCC-&gt;CR &amp;= (uint32_t)0xFFFBFFFF</b></code></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3519995fc21f80d48a5edad70eca4a63"><li>RCC_CR时钟控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第60~61页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80d39b3fcc25ced230b6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A11791cc6-8bb9-4fb1-9320-da09212fc1c7%3Aimage.png?table=block&amp;id=3519995f-c21f-80d3-9b3f-cc25ced230b6&amp;t=3519995f-c21f-80d3-9b3f-cc25ced230b6" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3519995fc21f807099c4e5f11a8c34e4"><li>这行代码表示<span class="notion-red"><b>第18位清零，其余不变</b></span><span class="notion-default">（旁路模式是用来接外部方波时钟的，我们用的是晶振，所以这个模式必须关掉。）</span></li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80328c3eda7efb5bc45f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af2f4a1c4-8e1e-435e-8a13-2de34f8b8143%3Aimage.png?table=block&amp;id=3519995f-c21f-8032-8c3e-da7efb5bc45f&amp;t=3519995f-c21f-8032-8c3e-da7efb5bc45f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f809c808fdc9b271f53a3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac5863425-5ae9-4f97-8769-83ad2b6d8c04%3Aimage.png?table=block&amp;id=3519995f-c21f-809c-808f-dc9b271f53a3&amp;t=3519995f-c21f-809c-808f-dc9b271f53a3" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-3529995fc21f80888d3eca344855f1db"> </div></div></details><details class="notion-toggle notion-block-3519995fc21f8009bce7d68c1011d984"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（5）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>RCC-&gt;CFGR &amp;= (uint32_t)0xFF80FFFF</b></code></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3519995fc21f8022b69de9523ef94b28"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><ul class="notion-list notion-list-disc notion-block-3519995fc21f802e8b8af565b2bc50a5"><li>这行代码表示<span class="notion-red"><b>第16~22位清零，其余不变</b></span></li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80bb99c5c4e544a55624"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3caa03df-bc6e-4aea-a2f7-fe6693b7358b%3Aimage.png?table=block&amp;id=3519995f-c21f-80bb-99c5-c4e544a55624&amp;t=3519995f-c21f-80bb-99c5-c4e544a55624" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80b8b66cfc4f8080fdff"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:624px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1f8112ae-d36a-40c9-a2af-92a9a177412c%3Aimage.png?table=block&amp;id=3519995f-c21f-80b8-b66c-fc4f8080fdff&amp;t=3519995f-c21f-80b8-b66c-fc4f8080fdff" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80119c06d59ae038166b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:864px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A266cb536-8bd3-4c65-81ca-82b3f9bdcee1%3Aimage.png?table=block&amp;id=3519995f-c21f-8011-9c06-d59ae038166b&amp;t=3519995f-c21f-8011-9c06-d59ae038166b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f8071970dc8dc01bf01a0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A01832274-a92f-4661-b142-7c9ab5790992%3Aimage.png?table=block&amp;id=3519995f-c21f-8071-970d-c8dc01bf01a0&amp;t=3519995f-c21f-8071-970d-c8dc01bf01a0" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3519995fc21f80e8bb11e2775b7baf8a"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（6）最后的条件编译</b></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3519995fc21f805e90e5e3301f74237e"><li>有关参考手册内容，在本小节后面部分有图片显示</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80bcb073c359dafc1e2c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A42758604-9d64-4c39-bd3a-009121a6d636%3Aimage.png?table=block&amp;id=3519995f-c21f-80bc-b073-c359dafc1e2c&amp;t=3519995f-c21f-80bc-b073-c359dafc1e2c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f8072a82dc18930c403cf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A607852a9-fa47-493c-9dbb-5396ca925da5%3Aimage.png?table=block&amp;id=3519995f-c21f-8072-a82d-c18930c403cf&amp;t=3519995f-c21f-8072-a82d-c18930c403cf" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80ac92f8db1f9769a717"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A550738d0-a4a1-425a-abe1-79d86a225958%3Aimage.png?table=block&amp;id=3519995f-c21f-80ac-92f8-db1f9769a717&amp;t=3519995f-c21f-80ac-92f8-db1f9769a717" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80de8eafff371de8d8a9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:864px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2794073f-7dbd-4cd8-9902-23a3ee15c994%3Aimage.png?table=block&amp;id=3519995f-c21f-80de-8eaf-ff371de8d8a9&amp;t=3519995f-c21f-80de-8eaf-ff371de8d8a9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f806fb966ec8aa953f5db"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:864px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5141e73f-a75f-465d-a452-29da0748b246%3Aimage.png?table=block&amp;id=3519995f-c21f-806f-b966-ec8aa953f5db&amp;t=3519995f-c21f-806f-b966-ec8aa953f5db" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f808c8cafdec1976c9e25"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:816px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A55b6abca-4f36-4523-9302-a42c30da24e5%3Aimage.png?table=block&amp;id=3519995f-c21f-808c-8caf-dec1976c9e25&amp;t=3519995f-c21f-808c-8caf-dec1976c9e25" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f806eb979c1869a60f174"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:960px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A47ef9f2d-49e3-4f33-95c7-d49f09410f7b%3Aimage.png?table=block&amp;id=3519995f-c21f-806e-b979-c1869a60f174&amp;t=3519995f-c21f-806e-b979-c1869a60f174" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80f291b0e2548735e618"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:864px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9d08fe96-8126-4f5f-98c7-98cc9cd15349%3Aimage.png?table=block&amp;id=3519995f-c21f-80f2-91b0-e2548735e618&amp;t=3519995f-c21f-80f2-91b0-e2548735e618" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80de8377e7e238fd55a6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A922bfa4d-63fa-4b94-af6d-a9c542736e07%3Aimage.png?table=block&amp;id=3519995f-c21f-80de-8377-e7e238fd55a6&amp;t=3519995f-c21f-80de-8377-e7e238fd55a6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80c9b741cc87c178e374"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:320px"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A32d94086-591f-438a-8e76-d772a89eaaf5%3Aimage.png?table=block&amp;id=3519995f-c21f-80c9-b741-cc87c178e374&amp;t=3519995f-c21f-80c9-b741-cc87c178e374" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f804094e8ca1094c2748b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae3ee370e-3025-41c1-986b-3d7acb9c6708%3Aimage.png?table=block&amp;id=3519995f-c21f-8040-94e8-ca1094c2748b&amp;t=3519995f-c21f-8040-94e8-ca1094c2748b" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3519995fc21f80e1b767c304e5cd6594"><li><em><span class="notion-red"><b><span class="notion-inline-underscore">参考手册第85~86页</span></b></span></em></li></ul><div class="notion-text notion-block-3519995fc21f80788a86c2a7632bfaab">互联型：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80a09ea4d3e7d9c4fcbc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae6bfc8ce-27ed-46a6-a484-a10e34c1efca%3Aimage.png?table=block&amp;id=3519995f-c21f-80a0-9ea4-d3e7d9c4fcbc&amp;t=3519995f-c21f-80a0-9ea4-d3e7d9c4fcbc" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3519995fc21f80f3bff8c1ba4cd47577"><li><em><span class="notion-red"><b><span class="notion-inline-underscore">参考手册第63~65页</span></b></span></em></li></ul><div class="notion-text notion-block-3519995fc21f8048a45fc947a9e6c787">非互联型：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f806990dfd1da4a9d3b23"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aaa733f82-349a-42a5-bd0c-40eb8ac0ebe6%3Aimage.png?table=block&amp;id=3519995f-c21f-8069-90df-d1da4a9d3b23&amp;t=3519995f-c21f-8069-90df-d1da4a9d3b23" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3519995fc21f80dfb2f7cd6f1438d1fb"><li><em><span class="notion-red"><b><span class="notion-inline-underscore">参考手册第88~89页</span></b></span></em></li></ul><div class="notion-text notion-block-3519995fc21f80d78fe1d05aced77ea3">互联型：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80c08073e130b243367e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab682b3c5-66c9-4af0-b3b7-d1a061e3308c%3Aimage.png?table=block&amp;id=3519995f-c21f-80c0-8073-e130b243367e&amp;t=3519995f-c21f-80c0-8073-e130b243367e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80bd926bd98b860861ac"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aeece7d53-89ec-4dcf-bcf2-6496e66ab827%3Aimage.png?table=block&amp;id=3519995f-c21f-80bd-926b-d98b860861ac&amp;t=3519995f-c21f-80bd-926b-d98b860861ac" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3519995fc21f80089000cdb85a8fac16"><li><em><span class="notion-red"><b><span class="notion-inline-underscore">参考手册第101~102页</span></b></span></em></li></ul><div class="notion-text notion-block-3519995fc21f80f8ab28f7483939b02b">互联型：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f80edb105dceb4948bcd7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6cdcfb3b-9ae3-44b3-92af-cb4e59cfc704%3Aimage.png?table=block&amp;id=3519995f-c21f-80ed-b105-dceb4948bcd7&amp;t=3519995f-c21f-80ed-b105-dceb4948bcd7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3519995fc21f8062bbaaceabfc36ce3b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1ce0bf6e-e96d-4d84-b718-8de5f1418c30%3Aimage.png?table=block&amp;id=3519995f-c21f-8062-bbaa-ceabfc36ce3b&amp;t=3519995f-c21f-8062-bbaa-ceabfc36ce3b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-3529995fc21f80489115c4b123fc9b48"> </div></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3519995fc21f80d9ac12f3cac0ebb89f" data-id="3519995fc21f80d9ac12f3cac0ebb89f"><span><div id="3519995fc21f80d9ac12f3cac0ebb89f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3519995fc21f80d9ac12f3cac0ebb89f" title="RCC_HSEConfig(RCC_HSE_ON)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_HSEConfig(RCC_HSE_ON)</span></span></h4><ul class="notion-list notion-list-disc notion-block-35a9995fc21f807bb7ace78ab30df32a"><li><b>设计意图</b>：函数先把“开关”和“旁路”都关干净，然后再按需要打开。这是一种“先复位再设置”的模式，保证任何情况调这个函数都是安全可预期的。</li></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f8067a0aff2f73ce2dc74"><li><b>我写这行的想法</b>：现在要打开8MHz外部晶振了。<code class="notion-inline-code">RCC_HSE_ON</code> 是一个宏，值是 <code class="notion-inline-code">0x00010000</code>。我调用 <code class="notion-inline-code">RCC_HSEConfig</code> 函数，它里面会把这个值写到硬件寄存器里。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f8042aaf6ef83908d737f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A44dc89ff-4249-4106-8ae3-fa08f363b17b%3Aimage.png?table=block&amp;id=3569995f-c21f-8042-aaf6-ef83908d737f&amp;t=3569995f-c21f-8042-aaf6-ef83908d737f" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3529995fc21f8005a556fd8132d9ded0"><li>参数RCC_HSE_ON的值为((uint32_t)0x00010000)【0000 0000 0000 0001 0000 0000 0000 0000】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3559995fc21f8025b7c1ff379172dc87"><summary>RCC_CR（时钟控制寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3569995fc21f8074b3d3e417dc987e8f"><li>RCC_CR时钟控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第60~61页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3559995fc21f804a936cd585307fe54f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af2690351-2b4c-42dc-b4bf-a450086f73e1%3Aimage.png?table=block&amp;id=3559995f-c21f-804a-936c-d585307fe54f&amp;t=3559995f-c21f-804a-936c-d585307fe54f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3559995fc21f8005ae7dfbb5e359c20e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2ff2a808-ddf3-4922-a760-39c17604f55d%3Aimage.png?table=block&amp;id=3559995f-c21f-8005-ae7d-fbb5e359c20e&amp;t=3559995f-c21f-8005-ae7d-fbb5e359c20e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3559995fc21f80658d9af5389064a671"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acdb28b36-a77a-41e8-a897-c6ba7e82bc05%3Aimage.png?table=block&amp;id=3559995f-c21f-8065-8d9a-f5389064a671&amp;t=3559995f-c21f-8065-8d9a-f5389064a671" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3559995fc21f80739a1cd1e8c52cd0b3"><li>RCC_HSEConfig(RCC_HSE_ON)这个函数出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3559995fc21f804ea336e80f7d449b8b"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（1）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>RCC_CR &amp;= CR_HSEON_Reset</b></code></span></span><span class="notion-red"><span class="notion-blue_background"><b>和</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>RCC_CR &amp;= CR_HSEBYP_Reset</b></code></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3559995fc21f80da9e3efaa486e74069"><li>CR_HSEON_Reset的值为((uint32_t)0xFFFEFFFF)，CR_HSEBYP_Reset的值为((uint32_t)0xFFFBFFFF)，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3569995fc21f8050b8cbf99eb5135570"><summary>RCC_CR（时钟控制寄存器）- - - <span class="notion-teal"><b>与代码语句有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3569995fc21f805c90f2ec40ba188e08"><li>RCC_CR时钟控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第60~61页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f8039ae08d8e71ede3f87"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A90f77b04-c2b4-433f-a947-32b3c7bb5862%3Aimage.png?table=block&amp;id=3569995f-c21f-8039-ae08-d8e71ede3f87&amp;t=3569995f-c21f-8039-ae08-d8e71ede3f87" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f807b88b6d48a750c617f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A455eef15-6291-4204-b3d5-f9a6b7c143a1%3Aimage.png?table=block&amp;id=3569995f-c21f-807b-88b6-d48a750c617f&amp;t=3569995f-c21f-807b-88b6-d48a750c617f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f80df9eb5cc097572f1f6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9e3784a0-a04f-4f3b-9e12-9bf079c980a3%3Aimage.png?table=block&amp;id=3569995f-c21f-80df-9eb5-cc097572f1f6&amp;t=3569995f-c21f-80df-9eb5-cc097572f1f6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f80f4b778fb0bde8ea7bc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1719adbc-6605-4fce-b56f-dfede7b5a2bd%3Aimage.png?table=block&amp;id=3569995f-c21f-80f4-b778-fb0bde8ea7bc&amp;t=3569995f-c21f-80f4-b778-fb0bde8ea7bc" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3569995fc21f8097b1f5d3cdfb95c323"><li><span class="notion-red"><b>含义：</b></span>前者表示将HSEON这个16位进行清零操作，后者表示将HSEBYP这个18位进行清零操作，其余位不变（<span class="notion-red"><b>与运算，1表示不变，0表示清零</b></span>）</li></ul></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3529995fc21f8028bcd1c5b80ad2f840" data-id="3529995fc21f8028bcd1c5b80ad2f840"><span><div id="3529995fc21f8028bcd1c5b80ad2f840" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3529995fc21f8028bcd1c5b80ad2f840" title="HSEStartUpStatus = RCC_WaitForHSEStartUp( )"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">HSEStartUpStatus = RCC_WaitForHSEStartUp( )</span></span></h4><ul class="notion-list notion-list-disc notion-block-3529995fc21f800eb14fed09c8b5d3e4"><li>HSEStartUpStatus这个变量的类型在第一行有说明（ErrorStatus，有两值：ERROR（0）、SUCCESS（1））</li></ul><ul class="notion-list notion-list-disc notion-block-3529995fc21f80dabbb0c1f23456d510"><li>RCC_WaitForHSEStartUp( )的作用（大白话）：打开外部高速时钟(HSE)的开关之后，等着它“起床”，直到它彻底稳定，或者等了太久没反应就报错。</li></ul><ul class="notion-list notion-list-disc notion-block-35a9995fc21f80b89fa0ca77e00d3a56"><li><b>设计意图</b>：等待一个外部硬件事件，必须带超时机制。如果晶振坏了或者虚焊了，程序总不能在这里死循环一万年。等1280次还没好，就返回 <code class="notion-inline-code">ERROR</code>，让上层代码决策（比如降级用内部时钟跑，或者报错）。</li></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f80d3bd39da84c6537dc4"><li><b>我写这行的想法</b>：通电只是开始，晶振需要时间“抖稳”。在手册第60页查到 <code class="notion-inline-code">HSERDY</code> 位（第17位），它会在晶振稳定后被硬件自动置1。我调用 <code class="notion-inline-code">RCC_WaitForHSEStartUp</code> 函数，它会反复去查这个位，并把结果（成功或超时失败）存到 <code class="notion-inline-code">HSEStartUpStatus</code> 里。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f801ba78fc0168d3cd6e2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8ed4dcb0-cc85-45aa-962a-10496dab0a6f%3Aimage.png?table=block&amp;id=3569995f-c21f-801b-a78f-c0168d3cd6e2&amp;t=3569995f-c21f-801b-a78f-c0168d3cd6e2" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3529995fc21f803e80f8ffd9f8656040"><li>出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3539995fc21f80738a4bfad1a31faae1"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（1）</b></span></span><span class="notion-blue_background"><code class="notion-inline-code"><b>HSEStatus = RCC_GetFlagStatus(RCC_FLAG_HSERDY)</b></code></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b> </b></code></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3539995fc21f806b8653e80a67139be0"><li>HSEStatus是FlagStatus类型的变量，有两值：RESET（0）、SET（1）</li></ul><ul class="notion-list notion-list-disc notion-block-3559995fc21f80deb7d3eb4db2517057"><li>HSEStatus的值是随硬件而变化的</li></ul><ul class="notion-list notion-list-disc notion-block-3539995fc21f8018a365d95d6d482d20"><li>参数RCC_FLAG_HSERDY的值为((uint8_t)0x31)，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3539995fc21f80f4997beb80cefec371"><summary>RCC_CR（时钟控制寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3569995fc21f80c8ba71e6193f5bab58"><li>RCC_CR时钟控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第60~61页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3539995fc21f802390afdc4b4e337795"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A83759ec7-32a9-4774-8a75-5b871d6202b4%3Aimage.png?table=block&amp;id=3539995f-c21f-8023-90af-dc4b4e337795&amp;t=3539995f-c21f-8023-90af-dc4b4e337795" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3539995fc21f80c7b023f383c0c29c2f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac3c8b421-1b4c-420f-8bee-cfa381690ada%3Aimage.png?table=block&amp;id=3539995f-c21f-80c7-b023-f383c0c29c2f&amp;t=3539995f-c21f-80c7-b023-f383c0c29c2f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3539995fc21f80268f6fd068a41a4b11"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abc9835d0-ef4e-4a30-9d47-4868ab9e1ae1%3Aimage.png?table=block&amp;id=3539995f-c21f-8026-8f6f-d068a41a4b11&amp;t=3539995f-c21f-8026-8f6f-d068a41a4b11" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3539995fc21f809da724fcbba0991d0a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae1226aa8-a448-4043-a2f8-9fee30006d4b%3Aimage.png?table=block&amp;id=3539995f-c21f-809d-a724-fcbba0991d0a&amp;t=3539995f-c21f-809d-a724-fcbba0991d0a" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3539995fc21f80ecb251e73a7ed6104a"><summary>RCC_BDCR（备份域控制寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3569995fc21f8088a572c72710b50cda"><li>RCC_BDCR备份域控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第74页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3539995fc21f8025880ede67a1eeb032"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1732b96c-39a9-4459-845e-5170634e3fc1%3Aimage.png?table=block&amp;id=3539995f-c21f-8025-880e-de67a1eeb032&amp;t=3539995f-c21f-8025-880e-de67a1eeb032" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3539995fc21f802b8f50cb2c81648a60"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A62fce7d0-456d-4ba1-9790-2d46bbda4093%3Aimage.png?table=block&amp;id=3539995f-c21f-802b-8f50-cb2c81648a60&amp;t=3539995f-c21f-802b-8f50-cb2c81648a60" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3539995fc21f80c2bec9f9132dfca8b3"><summary>RCC_CSR（控制/状态寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3569995fc21f8023ae28d4dffc6b633d"><li>RCC_CSR控制/状态寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第75~76页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3539995fc21f8065ba65cca0540c95ca"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aae4ff086-75e1-4be0-9a73-56a90799a217%3Aimage.png?table=block&amp;id=3539995f-c21f-8065-ba65-cca0540c95ca&amp;t=3539995f-c21f-8065-ba65-cca0540c95ca" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3539995fc21f8031829cd87a26ff4176"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa010c7d3-9e3d-4a59-a390-59d07e5e0add%3Aimage.png?table=block&amp;id=3539995f-c21f-8031-829c-d87a26ff4176&amp;t=3539995f-c21f-8031-829c-d87a26ff4176" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3539995fc21f8021a3c6f44a697e3da9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A47cecf3c-9f52-4c69-8365-ce5e21bde033%3Aimage.png?table=block&amp;id=3539995f-c21f-8021-a3c6-f44a697e3da9&amp;t=3539995f-c21f-8021-a3c6-f44a697e3da9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3539995fc21f80ad89f2e9eed754b5f3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acd8f8798-3c26-4be6-ad0c-41359d6779cf%3Aimage.png?table=block&amp;id=3539995f-c21f-80ad-89f2-e9eed754b5f3&amp;t=3539995f-c21f-80ad-89f2-e9eed754b5f3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3539995fc21f800c8900fcc756217c17"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2129fbf3-650c-4bc0-ac7b-b55eb1988629%3Aimage.png?table=block&amp;id=3539995f-c21f-800c-8900-fcc756217c17&amp;t=3539995f-c21f-800c-8900-fcc756217c17" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3539995fc21f80febbbce37063ca4176"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afeece2a4-df86-4200-a1d4-573bf1ac959e%3Aimage.png?table=block&amp;id=3539995f-c21f-80fe-bbbc-e37063ca4176&amp;t=3539995f-c21f-80fe-bbbc-e37063ca4176" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3539995fc21f8086a3f6c13f46b0458e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A81f4e025-fdd0-4fee-a6df-60a0abd2fd65%3Aimage.png?table=block&amp;id=3539995f-c21f-8086-a3f6-c13f46b0458e&amp;t=3539995f-c21f-8086-a3f6-c13f46b0458e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3539995fc21f80808185c30f69ecb486"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae12e1bf3-6199-4ae5-abe8-e5ba37ec0b78%3Aimage.png?table=block&amp;id=3539995f-c21f-8080-8185-c30f69ecb486&amp;t=3539995f-c21f-8080-8185-c30f69ecb486" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3539995fc21f804badf7f21b5d7c75d1"><summary><span class="notion-red"><span class="notion-default_background"><b>★ </b></span></span><span class="notion-red"><code class="notion-inline-code"><b>RCC_GetFlagStatus(RCC_FLAG_HSERDY)</b></code></span><span class="notion-red"><b>是一个被调用函数</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3549995fc21f8002b961ca446e23ae89"><li><b>整体作用</b>：看时钟是否达到稳定的状态</li></ul><ul class="notion-list notion-list-disc notion-block-3529995fc21f808ea420c27422075cd7"><li>出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details></div></details><details class="notion-toggle notion-block-3549995fc21f80e3922edbdf19db554f"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（2）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>while((StartUpCounter != HSE_STARTUP_TIMEOUT) &amp;&amp; (HSEStatus == RESET))</b></code></span></span><span class="notion-blue_background"> </span></summary><div><ul class="notion-list notion-list-disc notion-block-3549995fc21f80b6b54ecbbf243c9877"><li>HSE_STARTUP_TIMEOUT出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义） <em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3539995fc21f80468250c0d8583da627"><li>首先判断计数StartUpCounter是否不等于1280，其次判断目标位的状态HSEStatus是否等于RESET(0)；</li></ul><ul class="notion-list notion-list-disc notion-block-3549995fc21f80858ec8d1f86d12567b"><li>因为这个是要判定时钟是否稳定，所以要进行的退出循环状态</li></ul><ul class="notion-list notion-list-disc notion-block-3559995fc21f8027a9afeff018e3311d"><li>那么如何退出循坏，要满足三个条件情况：一种是要计数值等于1280但HSEStatus等于RESET(0)，一种是计数值等于1280且HSEStatus不等于RESET(0)，一种是计数值不等于1280但HSEStatus不等于RESET(0)</li></ul><ul class="notion-list notion-list-disc notion-block-3559995fc21f800aa246d40ab2adf4a7"><li>其中第一个条件情况是代表时钟还没有稳定，二三条件代表时钟稳定</li></ul></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3569995fc21f805eb3b7ebfbf3576cc2" data-id="3569995fc21f805eb3b7ebfbf3576cc2"><span><div id="3569995fc21f805eb3b7ebfbf3576cc2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3569995fc21f805eb3b7ebfbf3576cc2" title="if(HSEStartUpStatus == SUCCESS){ /*省略*/ }"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">if(HSEStartUpStatus == SUCCESS){ /*省略*/ }</span></span></h4><ul class="notion-list notion-list-disc notion-block-3569995fc21f8084a8e6eaef8566fed6"><li><b>我写这行的想法</b>：如果外部晶振启动成功了，才进行后面的倍频和切换操作。因为外部晶振是PLL的输入源，它没稳定，后面一切免谈。</li></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f80b8a476dc666e4a22e4"><li>含义：如果HSEStartUpStatus是否为SUCCESS(1)，则执行下面条件判断内部语句</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3569995fc21f805ca4ccd4231b645b4c" data-id="3569995fc21f805ca4ccd4231b645b4c"><span><div id="3569995fc21f805ca4ccd4231b645b4c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3569995fc21f805ca4ccd4231b645b4c" title="RCC_PLLConfig(RCC_PLLSource_HSE_Div1, RCC_PLLMUl_9)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_PLLConfig(RCC_PLLSource_HSE_Div1, RCC_PLLMUl_9)</span></span></h4><ul class="notion-list notion-list-disc notion-block-35a9995fc21f80039a51fbf5ff67a454"><li><b>设计意图</b>：采用“读-改-写”模式，只修改需要改变的位，不影响其他无关位。同时必须先关闭 PLL 才能修改配置，前面的 <code class="notion-inline-code">RCC_DeInit</code> 已经确保 PLL 是关闭的。</li></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f80d19969f0c8299e7c9e"><li><b>我写这行的想法</b>：晶振好了，现在设置倍频器PLL。我要告诉PLL两件事：</li></ul><div class="notion-text notion-block-3569995fc21f80afb7afe1e7c83e19e4">（1）<b>输入源</b>：用外部晶振（<code class="notion-inline-code">RCC_PLLSource_HSE_Div1</code> = <code class="notion-inline-code">0x00010000</code>）。</div><div class="notion-text notion-block-3569995fc21f8092bab1df87c4cfcbc7">（2）<b>倍频系数</b>：乘9倍（<code class="notion-inline-code">RCC_PLLMul_9</code> = <code class="notion-inline-code">0x001C0000</code>）。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f809aa241e7d0c9ebb177"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aacaa26e8-4777-4dc4-a3a9-1b638a0814c5%3Aimage.png?table=block&amp;id=3569995f-c21f-809a-a241-e7d0c9ebb177&amp;t=3569995f-c21f-809a-a241-e7d0c9ebb177" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3569995fc21f802ea696f61bdbdc980a"><li>第一个参数RCC_PLLSource_HSE_Div1的值为((uint32_t)0x00010000)【000 0000 0000 0001 0000 0000 0000 0000】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3569995fc21f80e88935eff353d2ee1f"><summary>RCC_CFGR（时钟配置寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3569995fc21f80079750faa9416fa10a"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f80b69f68d49b2dcdd31e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae4b0f0ca-c0d7-4b21-a275-47239f5a6bfb%3Aimage.png?table=block&amp;id=3569995f-c21f-80b6-9f68-d49b2dcdd31e&amp;t=3569995f-c21f-80b6-9f68-d49b2dcdd31e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f80cf9a3ef7d300b951be"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A69041d2a-34ff-4674-b245-bf85de52514d%3Aimage.png?table=block&amp;id=3569995f-c21f-80cf-9a3e-f7d300b951be&amp;t=3569995f-c21f-80cf-9a3e-f7d300b951be" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f803d857af7e1c4dbb78f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A430c885e-555b-4164-9716-fa44994d6653%3Aimage.png?table=block&amp;id=3569995f-c21f-803d-857a-f7e1c4dbb78f&amp;t=3569995f-c21f-803d-857a-f7e1c4dbb78f" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3569995fc21f80ae9cadc208ddf7e03d"><li>第二个参数RCC_PLLMul_9的值为((uint32_t)0x001C0000)【0000 0000 0001 1100 0000 0000 0000 0000】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3569995fc21f809981f3cc6cfca4e59f"><summary>RCC_CFGR（时钟配置寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3569995fc21f8037aaa2cc47fb5777f5"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f806d87cef5c630a32d56"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1bbfc78e-77a4-4db2-a596-3c38975f1733%3Aimage.png?table=block&amp;id=3569995f-c21f-806d-87ce-f5c630a32d56&amp;t=3569995f-c21f-806d-87ce-f5c630a32d56" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f80b788d4db2d365af050"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A106472a5-1fd4-4f5c-8bd6-b83146d46529%3Aimage.png?table=block&amp;id=3569995f-c21f-80b7-88d4-db2d365af050&amp;t=3569995f-c21f-80b7-88d4-db2d365af050" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3569995fc21f800a9b09ee58d57e458a"><li>RCC_PLLConfig函数出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3569995fc21f80ec81bacc461445d450"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（1）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>tmpreg &amp;= CFGR_PLL_Mask</b></code></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3569995fc21f8070b252cf16e3796399"><li>CFGR_PLL_Mask的值为((uint32_t)0xFFC0FFFF)，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3569995fc21f8003a67edfa7f4a35297"><summary>RCC_CFGR（时钟配置寄存器）- - - <span class="notion-teal"><b>与代码语句有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3569995fc21f8078b1ebc517f86b8c4f"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f80698c47c4c7b471d1c4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7b4dd7ff-ea74-4fa7-81f8-085f13424a53%3Aimage.png?table=block&amp;id=3569995f-c21f-8069-8c47-c4c7b471d1c4&amp;t=3569995f-c21f-8069-8c47-c4c7b471d1c4" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f8097a232f7ee59ccbf78"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af4742734-fb51-4991-9d1d-e0396dc6fe31%3Aimage.png?table=block&amp;id=3569995f-c21f-8097-a232-f7ee59ccbf78&amp;t=3569995f-c21f-8097-a232-f7ee59ccbf78" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f8002aeb5cea7ac9d3bfe"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0d04e5a3-1bf3-4bf1-9823-22e4d416918d%3Aimage.png?table=block&amp;id=3569995f-c21f-8002-aeb5-cea7ac9d3bfe&amp;t=3569995f-c21f-8002-aeb5-cea7ac9d3bfe" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f80beb6b0c8ca0e111450"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A020a2575-9360-481c-b85b-f4f208d1cb76%3Aimage.png?table=block&amp;id=3569995f-c21f-80be-b6b0-c8ca0e111450&amp;t=3569995f-c21f-80be-b6b0-c8ca0e111450" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3569995fc21f806c90ecdccf09f3f0d6"><li>这行代码表示需要对RCC_CFGR（时钟配置寄存器）进行PLL设置，则需要对目标位（即第16~21位进行清零操作）</li></ul></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3569995fc21f8002be94e302db7fcb63" data-id="3569995fc21f8002be94e302db7fcb63"><span><div id="3569995fc21f8002be94e302db7fcb63" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3569995fc21f8002be94e302db7fcb63" title="RCC_HCLKConfig(RCC_SYSCLK_Div1)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_HCLKConfig(RCC_SYSCLK_Div1)</span></span></h4><ul class="notion-list notion-list-disc notion-block-35a9995fc21f8014a1d1c69e92691bc7"><li><b>设计意图</b>：AHB 是系统主总线，连接 CPU、内存、DMA 等核心部件，设为不分频以获得最高吞吐性能。</li></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f803d9a58c7cd014d6113"><li><b>我写这行的想法</b>：设完PLL参数，现在设AHB总线（主血管）的速度。<code class="notion-inline-code">RCC_SYSCLK_Div1</code> = <code class="notion-inline-code">0x00000000</code>，意思是“不分频”。等会儿系统时钟是多少，AHB总线就跑多少。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f80aa9a21ecf13a16ecdd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A52005ced-7e25-498d-a687-b9b37e0a6271%3Aimage.png?table=block&amp;id=3569995f-c21f-80aa-9a21-ecf13a16ecdd&amp;t=3569995f-c21f-80aa-9a21-ecf13a16ecdd" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3569995fc21f80eca113d45f9fdf4fac"><li>参数RCC_SYSCLK_Div1的值为((uint32_t)0x00000000)【0000 0000 0000 0000 0000 0000 0000 0000】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3579995fc21f80789924d3c9fd41d349"><summary>RCC_CFGR（时钟配置寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3579995fc21f80c49e66f047dfea06de"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3579995fc21f80f1a03ed32dd3d182f4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5d9edeab-2815-4fde-9734-7d9dc29aa0a9%3Aimage.png?table=block&amp;id=3579995f-c21f-80f1-a03e-d32dd3d182f4&amp;t=3579995f-c21f-80f1-a03e-d32dd3d182f4" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3579995fc21f80c2961fcd36eca0d107"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3d7adc80-1abb-45a7-a427-92c0faba85b0%3Aimage.png?table=block&amp;id=3579995f-c21f-80c2-961f-cd36eca0d107&amp;t=3579995f-c21f-80c2-961f-cd36eca0d107" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3579995fc21f80f791efe4f656ae671a"><li>RCC_HCLKConfig函数出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3579995fc21f80fdb192f53be00c93fa"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（1）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>tmpreg &amp;= CFGR_HPRE_Reset_Mask</b></code></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3579995fc21f80adb652d7c51034b662"><li>CFGR_HPRE_Reset_Mask的值为((uint32_t)0xFFFFFF0F)，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3579995fc21f808a9ea1f7c77cfb3f65"><summary>RCC_CFGR（时钟配置寄存器）- - - <span class="notion-teal"><b>与代码语句有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3579995fc21f801996bfe36131e3346d"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3579995fc21f8032b5dfd964c2fb421e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5d9edeab-2815-4fde-9734-7d9dc29aa0a9%3Aimage.png?table=block&amp;id=3579995f-c21f-8032-b5df-d964c2fb421e&amp;t=3579995f-c21f-8032-b5df-d964c2fb421e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3579995fc21f80458c60fa721d9c4844"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3d7adc80-1abb-45a7-a427-92c0faba85b0%3Aimage.png?table=block&amp;id=3579995f-c21f-8045-8c60-fa721d9c4844&amp;t=3579995f-c21f-8045-8c60-fa721d9c4844" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3579995fc21f808db513f75721b96d28"><li>这条语句表示对CRR_CFGR（时钟配置寄存器）进行第4~7位的清零操作</li></ul></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3579995fc21f8074aa3fdfd673a4e769" data-id="3579995fc21f8074aa3fdfd673a4e769"><span><div id="3579995fc21f8074aa3fdfd673a4e769" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3579995fc21f8074aa3fdfd673a4e769" title="RCC_PCLK1Config(RCC_HCLK_Div2)和RCC_PCLK2Config(RCC_HCLK_Div1)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_PCLK1Config(RCC_HCLK_Div2)和RCC_PCLK2Config(RCC_HCLK_Div1)</span></span></h4><ul class="notion-list notion-list-disc notion-block-35a9995fc21f8047b79be4fc560b2098"><li><b>设计意图</b>：<span class="notion-purple"><b>前者：</b></span>APB1 总线连接定时器、串口、I2C 等外设，手册规定其最高频率为 36MHz。当 HCLK 跑 72MHz 时，必须至少 2 分频才能保证这些外设不会超频损坏。<span class="notion-purple"><b>后者：</b></span>APB2 连接 GPIO、USART1、SPI1 等高速外设，支持 72MHz 全速运行，所以不分频。</li></ul><ul class="notion-list notion-list-disc notion-block-3579995fc21f80e092ffc52de2c8dbf3"><li><b>我写这两行的想法</b>：<span class="notion-purple"><b>前者：</b></span>设低速外设总线APB1的速度。<code class="notion-inline-code">RCC_HCLK_Div2</code> = <code class="notion-inline-code">0x00000400</code>，意思是“2分频”。等会儿AHB跑72MHz，APB1就跑36MHz。手册上查到APB1最高只能跑36MHz，所以必须分频。<span class="notion-purple"><b>后者：</b></span>设高速外设总线APB2的速度。它也能跑72MHz，所以不用分频。<code class="notion-inline-code">RCC_HCLK_Div1</code> = <code class="notion-inline-code">0x00000000</code>。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f80d7a8f6fa907765a1f2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab17b90ec-567e-4d05-ab55-9a0938d00835%3Aimage.png?table=block&amp;id=3569995f-c21f-80d7-a8f6-fa907765a1f2&amp;t=3569995f-c21f-80d7-a8f6-fa907765a1f2" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f80f3addfd7b440411b76"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A15fa1cdf-eefb-470d-87d3-60ae4b3a50ca%3Aimage.png?table=block&amp;id=3569995f-c21f-80f3-addf-d7b440411b76&amp;t=3569995f-c21f-80f3-addf-d7b440411b76" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3579995fc21f806ba5b2d95972d88e51"><li>参数RCC_HCLK_Div2的值为((uint32_t)0x00000400)【0000 0000 0000 0000 0000 0100 0000 0000】，参数RCC_HCLK_Div1的值为((uint32_t)0x00000000)【0000 0000 0000 0000 0000 0000 0000 0000】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3579995fc21f805c8d5ee8b2719c0829"><summary>RCC_CFGR（时钟配置寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3579995fc21f803581f1eec6a2bc6245"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3579995fc21f800c9462de4c60616a11"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5d9edeab-2815-4fde-9734-7d9dc29aa0a9%3Aimage.png?table=block&amp;id=3579995f-c21f-800c-9462-de4c60616a11&amp;t=3579995f-c21f-800c-9462-de4c60616a11" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3579995fc21f8001ae1cce86aa44bdf1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad75262b8-821f-4b69-b189-a6bb1d27b96b%3Aimage.png?table=block&amp;id=3579995f-c21f-8001-ae1c-ce86aa44bdf1&amp;t=3579995f-c21f-8001-ae1c-ce86aa44bdf1" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f800995f2f2e66114a9be"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa18d68bc-c132-4e78-baed-38e0e385be1d%3Aimage.png?table=block&amp;id=3589995f-c21f-8009-95f2-f2e66114a9be&amp;t=3589995f-c21f-8009-95f2-f2e66114a9be" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3579995fc21f808faa63d48e5c506204"><li>RCC_PCLK1Config函数出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3589995fc21f807b94b6cbde99809119"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（1）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>tmpreg &amp;= CFGR_PPRE1_Reset_Mask</b></code></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3589995fc21f80628105d5bdc30bdc94"><li>CFGR_PPRE1_Reset_Mask的值为((uint32_t)0xFFFFF8FF)，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3589995fc21f808a9eeafa40553e0152"><summary>RCC_CFGR（时钟配置寄存器）- - - <span class="notion-teal"><b>与代码语句有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3589995fc21f80a68a6bf0ba6dccef8c"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f8066a4f3d65698bdb5ce"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5d9edeab-2815-4fde-9734-7d9dc29aa0a9%3Aimage.png?table=block&amp;id=3589995f-c21f-8066-a4f3-d65698bdb5ce&amp;t=3589995f-c21f-8066-a4f3-d65698bdb5ce" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f807abaaacd1038ba4b30"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A33143b0c-d348-4c04-9023-d9af7f3aa9b0%3Aimage.png?table=block&amp;id=3589995f-c21f-807a-baaa-cd1038ba4b30&amp;t=3589995f-c21f-807a-baaa-cd1038ba4b30" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3589995fc21f80898a4fda684498367a"><li>这条语句表示对CRR_CFGR（时钟配置寄存器）进行第8~10位的清零操作</li></ul></div></details><ul class="notion-list notion-list-disc notion-block-3579995fc21f8055a148de0af9d86ea8"><li>RCC_PCLK2Config函数出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3589995fc21f8008bc89e743b1408c05"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（1）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>tmpreg &amp;= CFGR_PPRE2_Reset_Mask</b></code></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3589995fc21f80c4b8c0f13150df76f8"><li>CFGR_PPRE2_Reset_Mask的值为((uint32_t)0xFFFFC7FF)，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3589995fc21f803ea1eae04e46f88c71"><summary>RCC_CFGR（时钟配置寄存器）- - - <span class="notion-teal"><b>与代码语句有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3589995fc21f80618d5ccf653695396a"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f803aaf55ca202e5819c5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5d9edeab-2815-4fde-9734-7d9dc29aa0a9%3Aimage.png?table=block&amp;id=3589995f-c21f-803a-af55-ca202e5819c5&amp;t=3589995f-c21f-803a-af55-ca202e5819c5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f804682adf5f78f4b8ec5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A97c53595-3883-444a-a946-127af1a45c10%3Aimage.png?table=block&amp;id=3589995f-c21f-8046-82ad-f5f78f4b8ec5&amp;t=3589995f-c21f-8046-82ad-f5f78f4b8ec5" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3589995fc21f8024ad88d4f1347e3211"><li>这条语句表示对CRR_CFGR（时钟配置寄存器）进行第11~13位的清零操作</li></ul></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3579995fc21f808f9de3eca1da5d4191" data-id="3579995fc21f808f9de3eca1da5d4191"><span><div id="3579995fc21f808f9de3eca1da5d4191" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3579995fc21f808f9de3eca1da5d4191" title="FLASH_SetLatency(FLASH_Latency_2)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">FLASH_SetLatency(FLASH_Latency_2)</span></span></h4><ul class="notion-list notion-list-disc notion-block-35a9995fc21f80a2944bd66a6fada1f5"><li><b>设计意图</b>：当系统时钟超过 48MHz 时，Flash 存储器的读取速度跟不上 CPU 的取指速度。手册规定 48MHz~72MHz 必须使用 2 个等待周期。这一步如果不做，CPU 可能读到错误的指令，系统立即崩溃。</li></ul><ul class="notion-list notion-list-disc notion-block-3589995fc21f80a5b0b6dfceb84fece6"><li><b>我写这行的想法</b>：CPU跑72MHz太快了，FLASH存储器跟不上。我在手册上查到，频率超过48MHz时必须设置2个等待周期。<code class="notion-inline-code">FLASH_Latency_2</code> = <code class="notion-inline-code">0x00000002</code></li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f80308754c2fab71197f2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae6e459f5-66b1-491b-95c5-12cc86f8dbed%3Aimage.png?table=block&amp;id=3569995f-c21f-8030-8754-c2fab71197f2&amp;t=3569995f-c21f-8030-8754-c2fab71197f2" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-35a9995fc21f80bf919de26435f66c09"><summary><span class="notion-red"><b><span class="notion-inline-underscore">为什么要设置FLASH？</span></b></span></summary><div><ul class="notion-list notion-list-disc notion-block-35a9995fc21f80faa3fcd66f6597083b"><li>把单片机理解成一个工厂：</li><ul class="notion-list notion-list-disc notion-block-35a9995fc21f80faa3fcd66f6597083b"><li><span class="notion-pink"><b>CPU：</b></span>是工厂里手脚麻利的工人。</li><li><span class="notion-pink"><b>系统时钟频率 (72MHz)：</b></span>是工人的干活速度。频率越高，他取指令和执行指令的节奏就越快。</li><li><span class="notion-pink"><b>Flash 存储器：</b></span>是存放所有程序指令的仓库。</li><li><span class="notion-pink"><b>Flash 等待周期：</b></span>是工人到达仓库后，喊“管理员，把下一条指令给我！”，然后站在原地等待的时间。</li></ul></ul><ul class="notion-list notion-list-disc notion-block-35a9995fc21f8021b4adc45db1f9617b"><li><span class="notion-pink"><b>核心矛盾来了：</b></span>工人（CPU）的干活速度是可以调快的（超频到72MHz）。但是，仓库管理员（Flash控制电路）从货架上拿东西的物理速度是有上限的，他没法无限快。</li><ul class="notion-list notion-list-disc notion-block-35a9995fc21f8021b4adc45db1f9617b"><li>在默认8MHz低速时，工人慢悠悠去仓库，管理员能轻松在他下次来之前把货备好。</li><li>当我们突然把工人的节奏加到72MHz，他跑去仓库催货的频率瞬间提高了9倍。管理员动作再快也跟不上了。如果工人不等管理员拿货就走，那他拿走的就是一个错误的空箱子，工厂（程序）就要出大乱子（跑飞或死机）。</li></ul></ul><ul class="notion-list notion-list-disc notion-block-35a9995fc21f80809df6ffebb69a1cac"><li><span class="notion-pink"><b>设置Flash等待周期，</b></span>就是告诉工人：“兄弟，你以后跑快了，到仓库提货时，必须原地多等我2个周期（这就是 <code class="notion-inline-code">FLASH_Latency_2</code> 的含义），确保我把正确的货交给你才能走。”</li></ul></div></details><ul class="notion-list notion-list-disc notion-block-3589995fc21f80a98cd9d35ba55bb836"><li>参数FLASH_Latency_2的值为((uint32_t)0x00000002)【0000 0000 0000 0000 0000 0000 0000 0010】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_flash.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3589995fc21f800fb0d5e096d74c4c57"><summary>FLASH_ACR（闪存访问控制寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3589995fc21f802b9c7aff2440cef25f"><li>FLASH_ACR闪存访问控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第15页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f808eb5adc59bd9b29ffb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A146ed25a-612e-40be-8e95-59bac8aec524%3Aimage.png?table=block&amp;id=3589995f-c21f-808e-b5ad-c59bd9b29ffb&amp;t=3589995f-c21f-808e-b5ad-c59bd9b29ffb" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f80ee91d1e9b4541c9f9f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab2672581-9413-4133-a6a7-cd706871dcaa%3Aimage.png?table=block&amp;id=3589995f-c21f-80ee-91d1-e9b4541c9f9f&amp;t=3589995f-c21f-80ee-91d1-e9b4541c9f9f" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3589995fc21f80039a06fd65bf1b1ab4"><li>FLASH_SetLatency函数出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3589995fc21f80febb6fccd7befca045"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（1）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>tmpreg &amp;= ACR_LATENCY_Mask</b></code></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3589995fc21f805584eadfafc9a2739d"><li>ACR_LATENCY_Mask的值为((uint32_t)0x00000038)，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3589995fc21f80a586e2c264ae1d3ef4"><summary>FLASH_ACR（闪存访问控制寄存器）- - - <span class="notion-teal"><b>与代码语句有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3589995fc21f80b2a145defcc9d7c05e"><li>FLASH_ACR闪存访问控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第15页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f808c9a43d4a5b8aa2c21"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A146ed25a-612e-40be-8e95-59bac8aec524%3Aimage.png?table=block&amp;id=3589995f-c21f-808c-9a43-d4a5b8aa2c21&amp;t=3589995f-c21f-808c-9a43-d4a5b8aa2c21" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f80f0a4b1c6b3bfb9ada3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab2672581-9413-4133-a6a7-cd706871dcaa%3Aimage.png?table=block&amp;id=3589995f-c21f-80f0-a4b1-c6b3bfb9ada3&amp;t=3589995f-c21f-80f0-a4b1-c6b3bfb9ada3" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3589995fc21f80bfa667f3611abef76a"><li>这条语句表示对FLASH_ACR（闪存访问控制寄存器）进行第0~2位的清零操作</li></ul></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3579995fc21f803f9137da7a076cac2c" data-id="3579995fc21f803f9137da7a076cac2c"><span><div id="3579995fc21f803f9137da7a076cac2c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3579995fc21f803f9137da7a076cac2c" title="FLASH_PrefetchBufferCmd(FLASH_PrefetchBuffer_Enable)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">FLASH_PrefetchBufferCmd(FLASH_PrefetchBuffer_Enable)</span></span></h4><ul class="notion-list notion-list-disc notion-block-35a9995fc21f802485bff2e4ca65f82c"><li><b>设计意图</b>：预取缓冲是硬件加速功能。开启后，Flash 控制器会在 CPU 读取指令的同时预读后面的指令放进缓冲区。当 CPU 需要下一条指令时可以直接从缓冲区取，减少等待时间。这能显著补偿等待周期带来的性能损失，让程序在 72MHz 下也能接近“零等待”执行。</li></ul><ul class="notion-list notion-list-disc notion-block-3579995fc21f8001b2e1f2844a4acca2"><li><b>我写这行的想法</b>：打开FLASH的“预取缓冲”功能。这能让FLASH在读当前指令时，偷偷把后面几条指令也读进来，CPU就不用等了，能大大提速。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f8065ac4cc103e7dcdf46"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab2b04048-97bd-4a5f-9abd-421bf2b5199f%3Aimage.png?table=block&amp;id=3569995f-c21f-8065-ac4c-c103e7dcdf46&amp;t=3569995f-c21f-8065-ac4c-c103e7dcdf46" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3589995fc21f80e4868ee794ce2704e9"><li>参数FLASH_PrefetchBuffer_Enable的值为((uint32_t)0x00000010)【0000 0000 0000 0000 0000 0000 0001 0000】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_flash.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3589995fc21f801281e4fb619c3ff68a"><summary>FLASH_ACR（闪存访问控制寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3589995fc21f80d99e51f88d216b098b"><li>FLASH_ACR闪存访问控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第15页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f801a92afcee5cb1f5d69"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A146ed25a-612e-40be-8e95-59bac8aec524%3Aimage.png?table=block&amp;id=3589995f-c21f-801a-92af-cee5cb1f5d69&amp;t=3589995f-c21f-801a-92af-cee5cb1f5d69" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f80999d1fe4679b6c6c31"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A586f48b1-231e-4aa4-8cfc-77318365bc53%3Aimage.png?table=block&amp;id=3589995f-c21f-8099-9d1f-e4679b6c6c31&amp;t=3589995f-c21f-8099-9d1f-e4679b6c6c31" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3579995fc21f800399e3c623721cd00b"><li>FLASH_PrefetchBufferCmd函数出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3589995fc21f809393ecf0ec9a57d33d"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（1）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>FLASH-&gt;ACR &amp;= ACR_PRFTBE_Mask</b></code></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3589995fc21f8090b065d2a96dcf19de"><li>ACR_PRFTBE_Mask的值为((uint32_t)0xFFFFFFEF)，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3589995fc21f80a0bcdad6c2b89e97c6"><summary>FLASH_ACR（闪存访问控制寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3589995fc21f801e97bdf184c8cc8b27"><li>FLASH_ACR闪存访问控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第15页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f808ab049f420694737eb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A146ed25a-612e-40be-8e95-59bac8aec524%3Aimage.png?table=block&amp;id=3589995f-c21f-808a-b049-f420694737eb&amp;t=3589995f-c21f-808a-b049-f420694737eb" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f806f87e9e15d200569a5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A586f48b1-231e-4aa4-8cfc-77318365bc53%3Aimage.png?table=block&amp;id=3589995f-c21f-806f-87e9-e15d200569a5&amp;t=3589995f-c21f-806f-87e9-e15d200569a5" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3589995fc21f805abcbad5c2561c340b"><li>这条语句表示对FLASH_ACR（闪存访问控制寄存器）进行第4位的清零操作</li></ul></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3589995fc21f805ea3dfdf27afddb80c" data-id="3589995fc21f805ea3dfdf27afddb80c"><span><div id="3589995fc21f805ea3dfdf27afddb80c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3589995fc21f805ea3dfdf27afddb80c" title="RCC_PLLCmd(ENABLE)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_PLLCmd(ENABLE)</span></span></h4><ul class="notion-list notion-list-disc notion-block-35a9995fc21f8054bb7ec625ce7992ca"><li><b>设计意图</b>：PLL 参数已设好，总线已配好，Flash 已调优，现在可以按下“启动键”。位带操作比“读-改-写”更快、更安全，避免了中断干扰的风险。</li></ul><ul class="notion-list notion-list-disc notion-block-3589995fc21f80d08bddc1c653d4efae"><li><b>我写这行的想法</b>：现在PLL的参数设好了，系统总线的分频也设好了，FLASH的等待周期也调好了。万事俱备，可以“点火”启动PLL了！<code class="notion-inline-code">ENABLE</code> 的值是 <code class="notion-inline-code">1</code>。</li><ul class="notion-list notion-list-disc notion-block-3589995fc21f80d08bddc1c653d4efae"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f807da98ee9149630d620"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A95dce211-429f-4f0a-b3b2-d5669fa05b05%3Aimage.png?table=block&amp;id=3569995f-c21f-807d-a98e-e9149630d620&amp;t=3569995f-c21f-807d-a98e-e9149630d620" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-3579995fc21f80e2aba3ee5003ad55b0"><li>参数ENABLE为枚举类型FunctionalState，值为1，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3589995fc21f80f3a5bee732a1cb43e2"><li>RCC_PLLCmd函数出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3589995fc21f807ea56ad1e4a7987cae"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（1）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>*(__IO uint32_t *) CR_PLLON_BB = (uint32_t)NewState</b></code></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3589995fc21f80298852f0e67a4511eb"><li>CR_PLLON_BB涉及到“位段”的知识点，“位段”出自<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第29~30页</span></b></span></em>有定义</li><ul class="notion-list notion-list-disc notion-block-3589995fc21f80298852f0e67a4511eb"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f80e79419ce59679c8d76"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8af73c90-111c-4518-bc6f-6445bde697c5%3Aimage.png?table=block&amp;id=3589995f-c21f-80e7-9419-ce59679c8d76&amp;t=3589995f-c21f-80e7-9419-ce59679c8d76" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3589995fc21f803b9874c542764a2ebf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adfc55163-7f52-455e-b430-387be6ae0e08%3Aimage.png?table=block&amp;id=3589995f-c21f-803b-9874-c542764a2ebf&amp;t=3589995f-c21f-803b-9874-c542764a2ebf" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-3589995fc21f804ba197f3e8ca9d94e5"><li>CR_PLLON_BB的值为0x42420060，它的值的计算分别出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em><span class="notion-default"> ，</span></li></ul><div class="notion-text notion-block-3589995fc21f8073b50ef6c5105b2f9c">出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></div><div class="notion-text notion-block-3589995fc21f80fc9ea0eeeb30de7fc3">计算步骤：（外设RCC的起始地址为0x4002 1000 ~ 0x4002 13FF）</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80c7b6aed038d0e21542"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A252d4fa4-2bc6-43a2-a36d-10b850c2ee5f%3Aimage.png?table=block&amp;id=3599995f-c21f-80c7-b6ae-d038d0e21542&amp;t=3599995f-c21f-80c7-b6ae-d038d0e21542" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f8004bf22e5cf2b65f769"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad86b5ba4-07c0-43df-92ca-e0df4ca57aa8%3Aimage.png?table=block&amp;id=3599995f-c21f-8004-bf22-e5cf2b65f769&amp;t=3599995f-c21f-8004-bf22-e5cf2b65f769" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f805bbbb4e7a915f96a4e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6cb9337c-7b2f-4a62-90f0-a88d546f5801%3Aimage.png?table=block&amp;id=3599995f-c21f-805b-bbb4-e7a915f96a4e&amp;t=3599995f-c21f-805b-bbb4-e7a915f96a4e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80fead19d97c7a5c0598"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae1edd000-7da7-4af5-aa9e-ff36f1e3eb97%3Aimage.png?table=block&amp;id=3599995f-c21f-80fe-ad19-d97c7a5c0598&amp;t=3599995f-c21f-80fe-ad19-d97c7a5c0598" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80fda755d266425ec6ed"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9bfb3a79-f334-4e9a-812a-8eed3c9af02d%3Aimage.png?table=block&amp;id=3599995f-c21f-80fd-a755-d266425ec6ed&amp;t=3599995f-c21f-80fd-a755-d266425ec6ed" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3579995fc21f80238eb7f5ca81219bda"><li><code class="notion-inline-code">*(__IO uint32_t *) CR_PLLON_BB</code> 两个<code class="notion-inline-code">*</code> 号的含义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80f59669ff02161f5221"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A28f7dade-2726-46a9-96ac-5834fe9c6bb2%3Aimage.png?table=block&amp;id=3599995f-c21f-80f5-9669-ff02161f5221&amp;t=3599995f-c21f-80f5-9669-ff02161f5221" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80dc9cc6dd9d22325b8c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adead755e-85ce-43c7-948b-8f1082b9745b%3Aimage.png?table=block&amp;id=3599995f-c21f-80dc-9cc6-dd9d22325b8c&amp;t=3599995f-c21f-80dc-9cc6-dd9d22325b8c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80c1ab71f9794d0acaf7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2a37dfbd-96ef-4f89-9462-a3941b3a8e5b%3Aimage.png?table=block&amp;id=3599995f-c21f-80c1-ab71-f9794d0acaf7&amp;t=3599995f-c21f-80c1-ab71-f9794d0acaf7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80ab8d28eec858aa05b3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab4db30f8-7691-4a1f-b587-44fe1ffea50a%3Aimage.png?table=block&amp;id=3599995f-c21f-80ab-8d28-eec858aa05b3&amp;t=3599995f-c21f-80ab-8d28-eec858aa05b3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80dc937cdb23c6c8f40b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af84b4fe9-673e-47a6-8581-25eca6a56137%3Aimage.png?table=block&amp;id=3599995f-c21f-80dc-937c-db23c6c8f40b&amp;t=3599995f-c21f-80dc-937c-db23c6c8f40b" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3569995fc21f8091b443c50259d01887" data-id="3569995fc21f8091b443c50259d01887"><span><div id="3569995fc21f8091b443c50259d01887" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3569995fc21f8091b443c50259d01887" title="while(RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == RESET)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">while(RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == RESET)</span></span></h4><ul class="notion-list notion-list-disc notion-block-35a9995fc21f801bb2c6ea47a2fe14ba"><li><b>设计意图</b>：PLL 启动后，内部电路需要时间将频率“锁定”到目标值。这个时间是不确定的（取决于环境和电路），必须用死循环等待硬件给出“就绪”信号。不等待就直接切换时钟，系统必然崩溃。</li></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f80218d13ee8ed3b25cb2"><li><b>我写这行的想法</b>：PLL启动后需要时间稳定，不能立刻切换过去。在手册里找到 <code class="notion-inline-code">PLLRDY</code> 位（第25位），它会在PLL稳定后被硬件置1。<code class="notion-inline-code">RCC_FLAG_PLLRDY</code> = <code class="notion-inline-code">0x39</code> 就是指向这一位的暗号。我就在这死等，直到 <code class="notion-inline-code">RCC_GetFlagStatus</code> 告诉我它好了。</li><ul class="notion-list notion-list-disc notion-block-3569995fc21f80218d13ee8ed3b25cb2"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f8061811ef2a9c3e617f8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3d50c006-dfa0-40e4-ba9f-373ba5646bec%3Aimage.png?table=block&amp;id=3569995f-c21f-8061-811e-f2a9c3e617f8&amp;t=3569995f-c21f-8061-811e-f2a9c3e617f8" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f80a9bda5e5a6a1ebf4ab"><li>参数RCC_FLAG_PLLRDY的值为((uint8_t)0x39)【0011 1001，（1，25）】，代表RCC_CR（时钟控制寄存器）的第26位PLLRDY（PLL时钟就绪标志）；这个第25位是有硬件设置的，所以主要是看上一步代码是否成功设置第24位PLLON（PLL使能）为1；</li><ul class="notion-list notion-list-disc notion-block-3569995fc21f80a9bda5e5a6a1ebf4ab"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80ccb988cff7bd3c1f78"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A446b52e9-77b8-4c36-abb0-a63edeb46f9c%3Aimage.png?table=block&amp;id=3599995f-c21f-80cc-b988-cff7bd3c1f78&amp;t=3599995f-c21f-80cc-b988-cff7bd3c1f78" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f8077a985c4395e6766f4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac7875c09-851f-4672-a6be-ecd34091cd13%3Aimage.png?table=block&amp;id=3599995f-c21f-8077-a985-c4395e6766f4&amp;t=3599995f-c21f-8077-a985-c4395e6766f4" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f805eb0c7c7485b053878"><li>RCC_GetFlagStatus(RCC_FLAG_PLLRDY)这个函数在之前的“HSEStartUpStatus = RCC_WaitForHSEStartUp( )”的“<span class="notion-default"><span class="notion-default_background">★（1）</span></span><span class="notion-default"><span class="notion-default_background"><code class="notion-inline-code">HSEStatus = RCC_GetFlagStatus(RCC_FLAG_HSERDY) </code></span></span>”有详细解释，可往上面翻一番；</li></ul><ul class="notion-list notion-list-disc notion-block-3599995fc21f80d6a16dde4ba8360dc0"><li>这行代码其实就是让你判断第25位PLLRDY（PLL时钟就绪标志）是否设置为1了，设置成功，就借宿循坏，进入下一步代码；</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3599995fc21f801d9feedd6a3e7ee52d" data-id="3599995fc21f801d9feedd6a3e7ee52d"><span><div id="3599995fc21f801d9feedd6a3e7ee52d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3599995fc21f801d9feedd6a3e7ee52d" title="RCC_SYSCLKConfig(RCC_SYSCLKSource_PLLCLK)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_SYSCLKConfig(RCC_SYSCLKSource_PLLCLK)</span></span></h4><ul class="notion-list notion-list-disc notion-block-35a9995fc21f8000aab1c1f278a28bb8"><li><b>设计意图</b>：SW 位是系统时钟的“选择开关”。将开关拨到 PLL 档，硬件就会开始切换过程，但并不是瞬间完成。</li></ul><ul class="notion-list notion-list-disc notion-block-3599995fc21f80d4a20dc06e89ca894e"><li><b>我写这行的想法</b>：PLL稳定了，现在把系统时钟从HSI（内部8MHz）切换到PLL（72MHz）。<code class="notion-inline-code">RCC_SYSCLKSource_PLLCLK</code> = <code class="notion-inline-code">0x00000002</code>。</li><ul class="notion-list notion-list-disc notion-block-3599995fc21f80d4a20dc06e89ca894e"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f80b3817dd2edcabfefa9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa28ac57b-358b-4163-b682-9c094788bf67%3Aimage.png?table=block&amp;id=3569995f-c21f-80b3-817d-d2edcabfefa9&amp;t=3569995f-c21f-80b3-817d-d2edcabfefa9" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-3599995fc21f80b68f2df493589eae4e"><li>参数RCC_SYSCLKSource_PLLCLK的值为((uint32_t)0x00000002)【0000 0000 0000 0000 0000 0000 0000 0010】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f8032809ef74e28aa5a3c"><li>函数RCC_SYSCLKConfig出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3599995fc21f80c68035f9d55699596c"><summary><span class="notion-red"><span class="notion-blue_background"><b>★（1）</b></span></span><span class="notion-red"><span class="notion-blue_background"><code class="notion-inline-code"><b>tmpreg &amp;= CFGR_SW_Mask</b></code></span></span></summary><div><ul class="notion-list notion-list-disc notion-block-3599995fc21f80058452d4df0fc08512"><li>CFGR_SW_Mask的值为((uint32_t)0xFFFFFFFC)，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3599995fc21f804199f9c2e60ff0cb9d"><summary>RCC_CFGR（时钟配置寄存器）- - - <span class="notion-teal"><b>与代码语句有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3599995fc21f806cad66c0e88d457102"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80a4889add32663d9346"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5d9edeab-2815-4fde-9734-7d9dc29aa0a9%3Aimage.png?table=block&amp;id=3599995f-c21f-80a4-889a-dd32663d9346&amp;t=3599995f-c21f-80a4-889a-dd32663d9346" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f801a9098f4ec622dcf31"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afd220dd6-f3c3-4be2-93f3-978aa2dac926%3Aimage.png?table=block&amp;id=3599995f-c21f-801a-9098-f4ec622dcf31&amp;t=3599995f-c21f-801a-9098-f4ec622dcf31" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3599995fc21f801ab44ecc7d7e3d5ba2"><li>这条语句表示对CRR_CFGR（时钟配置寄存器）进行第0~1位的清零操作</li></ul></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3569995fc21f80158ad2d6b229afe01f" data-id="3569995fc21f80158ad2d6b229afe01f"><span><div id="3569995fc21f80158ad2d6b229afe01f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3569995fc21f80158ad2d6b229afe01f" title="while(RCC_GetSYSCLKSource() != 0x08)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">while(RCC_GetSYSCLKSource() != 0x08)</span></span></h4><ul class="notion-list notion-list-disc notion-block-35a9995fc21f80809eeec7184b110910"><li><b>设计意图</b>：SW 是我们要的目标，SWS 是硬件切换完成的回执。手册明确指出，必须检查 SWS 位来确认切换真正完成。时钟源切换不是原子操作，需要数个时钟周期。如果不等待，CPU 可能在时钟切换的“震荡期”执行指令，后果不可预测。</li></ul><ul class="notion-list notion-list-disc notion-block-3599995fc21f808382d6c7717d14cd3e"><li><b>我写这行的想法</b>：虽然我写了“请切换到PLL”的命令，但硬件切换需要几个时钟周期。<code class="notion-inline-code">RCC_GetSYSCLKSource</code> 函数会去读 <code class="notion-inline-code">CFGR</code> 寄存器里的 <code class="notion-inline-code">SWS</code> 位（状态位）。当 <code class="notion-inline-code">SWS</code> 位变成 <code class="notion-inline-code">10</code>（二进制）时，整个寄存器的对应值是 <code class="notion-inline-code">0x08</code>。我就死等，直到确认硬件真的切换完成了。</li><ul class="notion-list notion-list-disc notion-block-3599995fc21f808382d6c7717d14cd3e"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f80c8abfed7083855a9ae"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4888386d-9371-475a-9ca7-88d7a28888d0%3Aimage.png?table=block&amp;id=3569995f-c21f-80c8-abfe-d7083855a9ae&amp;t=3569995f-c21f-80c8-abfe-d7083855a9ae" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f80e7b80eef4e023758ce"><li>RCC_GetSYSCLKSource( )函数出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3599995fc21f8025bc53eaca580bcb03"><li>CFGR_SWS_Mask的值为((uint32_t)0x0000000C)，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3599995fc21f8028bb81f5bb9a548eb3"><summary>RCC_CFGR（时钟配置寄存器）- - - <span class="notion-teal"><b>与代码语句有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3599995fc21f80339ea0ddb811ea616b"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80539544e04ddaceaf2a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5d9edeab-2815-4fde-9734-7d9dc29aa0a9%3Aimage.png?table=block&amp;id=3599995f-c21f-8053-9544-e04ddaceaf2a&amp;t=3599995f-c21f-8053-9544-e04ddaceaf2a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80608c9dc4b9caf666d5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aafd65d92-70df-4f6c-a4e9-fecef4a6b6e2%3Aimage.png?table=block&amp;id=3599995f-c21f-8060-8c9d-c4b9caf666d5&amp;t=3599995f-c21f-8060-8c9d-c4b9caf666d5" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3599995fc21f80d4b9aafbcc2d111e98"><li><code class="notion-inline-code">RCC-&gt;CFGR &amp; CFGR_SWS_Mask</code>这条语句表示对CRR_CFGR（时钟配置寄存器）进行第2~3位的清零操作</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3569995fc21f80db8130cc0110ad4a3d" data-id="3569995fc21f80db8130cc0110ad4a3d"><span><div id="3569995fc21f80db8130cc0110ad4a3d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3569995fc21f80db8130cc0110ad4a3d" title="RCC_APB2PeriphClockCmd(两个参数)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_APB2PeriphClockCmd(两个参数)</span></span></h4><ul class="notion-list notion-list-disc notion-block-35a9995fc21f802e9964e3ebfb674401"><li><b>设计意图</b>：芯片为了省电，外设时钟默认关上。你不开，GPIO 和串口就没法工作。这行代码就是“我明确告诉你，这些水管我要用，请给它们通水”。</li></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f80bfa44ed2295a448200"><li><b>我写这行的想法</b>：时钟系统搞定了，现在“打开水龙头”，给外设供血。我把要用的外设（串口1、GPIO A/B/C/D/E）的位用 <code class="notion-inline-code">|</code> 运算合在一起，打包发给 <code class="notion-inline-code">RCC_APB2PeriphClockCmd</code> 函数。这些外设都挂在APB2总线上，所以我要去 <code class="notion-inline-code">APB2ENR</code> 寄存器里把对应的位置1。</li><ul class="notion-list notion-list-disc notion-block-3569995fc21f80bfa44ed2295a448200"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3569995fc21f801ea495de0bd81187c6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4eeba5f4-6c77-4781-b67d-6cba78275db3%3Aimage.png?table=block&amp;id=3569995f-c21f-801e-a495-de0bd81187c6&amp;t=3569995f-c21f-801e-a495-de0bd81187c6" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f8038b446c471c2c65421"><li>第一个参数为外设的相关变量，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3599995fc21f8004a3afcd5140e0c415"><summary>RCC_APB2ENR（APB2外设时钟使能寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3599995fc21f8068bdfad23bf260f3a1"><li>APB2外设时钟使能寄存器RCC_APB2ENR在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第70~71页</span></b></span></em>有定义，<em><span class="notion-pink"><b><span class="notion-inline-underscore">英文版第112~114页</span></b></span></em>有定义（其中TIM15~17，参考手册和英文版都没有找到对应定义处）</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f8055aa15e7600b0420de"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac7436b98-1ae3-42a9-98c0-1c0266dd3637%3Aimage.png?table=block&amp;id=3599995f-c21f-8055-aa15-e7600b0420de&amp;t=3599995f-c21f-8055-aa15-e7600b0420de" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f801b90b8c5f7355179e6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:647.996826171875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A29aee6ef-2db8-41e4-ac6f-6f15a6a08973%3Aimage.png?table=block&amp;id=3599995f-c21f-801b-90b8-c5f7355179e6&amp;t=3599995f-c21f-801b-90b8-c5f7355179e6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f801ba3b9f024acd21de5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:647.9888305664062px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aea823854-6bbf-4a79-9a77-eb73441bb30d%3Aimage.png?table=block&amp;id=3599995f-c21f-801b-a3b9-f024acd21de5&amp;t=3599995f-c21f-801b-a3b9-f024acd21de5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80139a97e1eec9d3a693"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:645.985595703125px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac1ff5700-843d-4de9-aa1b-aa28a50adb3b%3Aimage.png?table=block&amp;id=3599995f-c21f-8013-9a97-e1eec9d3a693&amp;t=3599995f-c21f-8013-9a97-e1eec9d3a693" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80d2a41bfac54c803f27"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A45316cb5-a369-4c83-a4c5-240747d8226a%3Aimage.png?table=block&amp;id=3599995f-c21f-80d2-a41b-fac54c803f27&amp;t=3599995f-c21f-80d2-a41b-fac54c803f27" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-3569995fc21f804c9dd3e452511553f6"> </div></div></details><ul class="notion-list notion-list-disc notion-block-3569995fc21f807a9b78f512a068b03b"><li>第二个参数ENABLE为枚举类型FunctionalState，值为1；DISABLE，值为0；出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f808dabb3f0b7f2a24b8f"><li>函数RCC_APB2PeriphClockCmd出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3569995fc21f807badb9d4c225758c3b" data-id="3569995fc21f807badb9d4c225758c3b"><span><div id="3569995fc21f807badb9d4c225758c3b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3569995fc21f807badb9d4c225758c3b" title="RCC_APB1PeriphClockCmd(两个参数)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_APB1PeriphClockCmd(两个参数)</span></span></h4><ul class="notion-list notion-list-disc notion-block-35a9995fc21f80979d52ed4534c199f4"><li><b>设计意图</b>：芯片为了省电，外设时钟默认关上。你不开，GPIO 和串口就没法工作。这行代码就是“我明确告诉你，这些水管我要用，请给它们通水”。</li></ul><ul class="notion-list notion-list-disc notion-block-3599995fc21f80f4971bde5e010caf25"><li>第一个参数为外设的相关变量，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3599995fc21f80fd9800fbdae909d9aa"><summary>RCC_APB1ENR（APB1外设时钟使能寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3599995fc21f8024a646c316e581d4f3"><li>APB1外设时钟使能寄存器RCC_APB1ENR在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第71~73页</span></b></span></em>有定义，<em><span class="notion-pink"><b><span class="notion-inline-underscore">英文版第115~117页</span></b></span></em>有定义（其中CAN2（第26位）和CEC（第30位），参考手册和英文版都没有找到对应定义处）</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f807c9904caee09406e6c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac3f6563d-43df-4ed3-99b8-593f80d64212%3Aimage.png?table=block&amp;id=3599995f-c21f-807c-9904-caee09406e6c&amp;t=3599995f-c21f-807c-9904-caee09406e6c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80f3864ae5ab6de08f39"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa9af5245-b70a-41c8-8183-0f7d70da70f6%3Aimage.png?table=block&amp;id=3599995f-c21f-80f3-864a-e5ab6de08f39&amp;t=3599995f-c21f-80f3-864a-e5ab6de08f39" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f8036ba9cff177084853b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:631.9952392578125px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af5f191b2-3caa-4ad0-bafc-9a66697c112c%3Aimage.png?table=block&amp;id=3599995f-c21f-8036-ba9c-ff177084853b&amp;t=3599995f-c21f-8036-ba9c-ff177084853b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80e397a5d654539a15e5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:648.9904174804688px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0ff2d236-38d9-42af-921a-5148dfac05f7%3Aimage.png?table=block&amp;id=3599995f-c21f-80e3-97a5-d654539a15e5&amp;t=3599995f-c21f-80e3-97a5-d654539a15e5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80ccafb2f1023d4cb335"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:640.99365234375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4ccc60f5-473a-406c-b2c2-b31997751a57%3Aimage.png?table=block&amp;id=3599995f-c21f-80cc-afb2-f1023d4cb335&amp;t=3599995f-c21f-80cc-afb2-f1023d4cb335" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80a48b1cfe8a2e9afb62"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:645.99365234375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6407c442-437e-4fcf-9b64-d14c585ce4c2%3Aimage.png?table=block&amp;id=3599995f-c21f-80a4-8b1c-fe8a2e9afb62&amp;t=3599995f-c21f-80a4-8b1c-fe8a2e9afb62" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f8024ab0df6342f5179b3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9168be36-6349-47de-9aaf-021d9996ebde%3Aimage.png?table=block&amp;id=3599995f-c21f-8024-ab0d-f6342f5179b3&amp;t=3599995f-c21f-8024-ab0d-f6342f5179b3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f8056acb6f9ba33e47673"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A66497333-dab2-4391-af7b-93631589f4bd%3Aimage.png?table=block&amp;id=3599995f-c21f-8056-acb6-f9ba33e47673&amp;t=3599995f-c21f-8056-acb6-f9ba33e47673" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f80639233f49330e3fb34"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aaf7d316f-f9b4-4579-993a-c29c8970d018%3Aimage.png?table=block&amp;id=3599995f-c21f-8063-9233-f49330e3fb34&amp;t=3599995f-c21f-8063-9233-f49330e3fb34" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f800c9126da18b4e692dd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A21ee5c16-d4f1-4570-94f0-34dd8a644e94%3Aimage.png?table=block&amp;id=3599995f-c21f-800c-9126-da18b4e692dd&amp;t=3599995f-c21f-800c-9126-da18b4e692dd" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f8084b9b8ca73cd30a615"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aba917ab0-3e11-4c43-be27-6f1b5e1c9fdd%3Aimage.png?table=block&amp;id=3599995f-c21f-8084-b9b8-ca73cd30a615&amp;t=3599995f-c21f-8084-b9b8-ca73cd30a615" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3599995fc21f809b9f2dd9f9212bd79a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3aa568f8-9cbd-4917-99af-7ad5f1bbb8f6%3Aimage.png?table=block&amp;id=3599995f-c21f-809b-9f2d-d9f9212bd79a&amp;t=3599995f-c21f-809b-9f2d-d9f9212bd79a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-3599995fc21f801499bcdaeba9714b4c"> </div><div class="notion-blank notion-block-3599995fc21f80a5a631d538a3a3a24e"> </div></div></details><ul class="notion-list notion-list-disc notion-block-3599995fc21f80fe9fcee823b7d6cf3c"><li>第二个参数ENABLE为枚举类型FunctionalState，值为1；DISABLE，值为0；出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3599995fc21f8067833ae9a34b889c2f"><li>函数RCC_APB1PeriphClockCmd，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3569995fc21f800f9173ca6dc23c6f56" data-id="3569995fc21f800f9173ca6dc23c6f56"><span><div id="3569995fc21f800f9173ca6dc23c6f56" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3569995fc21f800f9173ca6dc23c6f56" title="1.2 LED_Init(void)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.2 LED_Init(void)</span></span></h3><div class="notion-text notion-block-35b9995fc21f80769c54c8f60b031124"><span class="notion-red"><span class="notion-blue_background"><b>led.c文件代码</b></span></span></div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3569995fc21f804486eff6b5081f4e25" data-id="3569995fc21f804486eff6b5081f4e25"><span><div id="3569995fc21f804486eff6b5081f4e25" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3569995fc21f804486eff6b5081f4e25" title="GPIO_InitTypeDef GPIO_InitStructure"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">GPIO_InitTypeDef GPIO_InitStructure</span></span></h4><ul class="notion-list notion-list-disc notion-block-3569995fc21f8019bc5cd474f06ede21"><li><span class="notion-red"><b>含义：</b></span>创建GPIO_InitTypeDef的变量</li></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f80689019e653148878ec"><li>GPIO_InitTypeDef这个类型，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_gpio.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3569995fc21f8039832be8ef335bf493" data-id="3569995fc21f8039832be8ef335bf493"><span><div id="3569995fc21f8039832be8ef335bf493" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3569995fc21f8039832be8ef335bf493" title="RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA|RCC_APB2Periph_GPIOB|RCC_APB2Periph_GPIOC,ENABLE)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA|RCC_APB2Periph_GPIOB|RCC_APB2Periph_GPIOC,ENABLE)</span></span></h4><ul class="notion-list notion-list-disc notion-block-35b9995fc21f808cbb8bec30ff280fda"><li><span class="notion-red"><b>含义：</b></span>在外设时钟使能寄存器RCC_APB2ENR，打开所需要的GPIOA、GPIOB、GPIOC三个外设IO端口的位的开关</li></ul><ul class="notion-list notion-list-disc notion-block-35b9995fc21f80a89b9beb119ebfc470"><li>在<span class="notion-pink"><b>1.1 RCC_Configuration(void)</b></span><span class="notion-default">的</span><span class="notion-pink"><b>RCC_APB2PeriphClockCmd(两个参数)</b></span><span class="notion-default">有说明其详细代码和作用</span></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-35b9995fc21f8011bd25c5c945f6c21a" data-id="35b9995fc21f8011bd25c5c945f6c21a"><span><div id="35b9995fc21f8011bd25c5c945f6c21a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35b9995fc21f8011bd25c5c945f6c21a" title="GPIO_InitStructure.GPIO_Pin = LED1 | LED2"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">GPIO_InitStructure.GPIO_Pin = LED1 | LED2</span></span></h4><ul class="notion-list notion-list-disc notion-block-35f9995fc21f809282e3dcb1c5dfef68"><li><span class="notion-red"><b>含义：</b></span>引脚设置为LED1和LED2，即第0个和第1个引脚，GPIO_InitStructure.GPIO_Pin = 0x0003</li></ul><ul class="notion-list notion-list-disc notion-block-35b9995fc21f8038af28e5f1e9a22b48"><li>LED1和LED2出自led.h文件</li></ul><details class="notion-toggle notion-block-35b9995fc21f8072a45cccaa2a73513f"><summary><code class="notion-inline-code">#define LED1 PBout(0)</code>和<code class="notion-inline-code">#define LED2 PBout(1)</code></summary><div><ul class="notion-list notion-list-disc notion-block-35c9995fc21f8074a839caf9e76f2603"><li>含义：定义LED1为PBout(0)【值为0x42218180，代表对ODR寄存器的第0位0DR0进行修改读取的虚拟地址（位段）】，定义LED2为PBout(1)【值为0x42218184，代表对ODR寄存器的第1位0DR1进行修改读取的虚拟地址（位段）】</li></ul><ul class="notion-list notion-list-disc notion-block-35c9995fc21f80acadb9c2ba7f61c4a8"><li>“位段”出自<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第29~30页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35c9995fc21f80858bc7da2cd1e76c04"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8af73c90-111c-4518-bc6f-6445bde697c5%3Aimage.png?table=block&amp;id=35c9995f-c21f-8085-8bc7-da2cd1e76c04&amp;t=35c9995f-c21f-8085-8bc7-da2cd1e76c04" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35c9995fc21f8001acd6e665c35c2f00"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adfc55163-7f52-455e-b430-387be6ae0e08%3Aimage.png?table=block&amp;id=35c9995f-c21f-8001-acd6-e665c35c2f00&amp;t=35c9995f-c21f-8001-acd6-e665c35c2f00" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3569995fc21f80f985ceeb29200853d2"><li>PBout(0或1)出自sys.h文件</li></ul><div class="notion-text notion-block-3569995fc21f8075a5f9d7fd47c8791f">GPIOA/B/C/D/E/F/G_BASE，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></div><ul class="notion-list notion-list-disc notion-block-3569995fc21f8072b55ae946a7c7c22c"><li>例子中的PBout(1)：</li></ul><div class="notion-text notion-block-3569995fc21f80dab5cedf61c6bdb860">POut(0)：</div></div></details><details class="notion-toggle notion-block-35c9995fc21f805cb4e3dddf954f5e78"><summary><code class="notion-inline-code">#define LEDPORT GPIOB</code></summary><div><ul class="notion-list notion-list-disc notion-block-35c9995fc21f80059ae0d2b29aa9ba63"><li>含义：定义LEDPORT为GPIOB，其中GPIOB的十六进制值代表在寄存器的起地址0x40010C00</li></ul><ul class="notion-list notion-list-disc notion-block-35e9995fc21f807da50bd7cfdcb9405a"><li>GPIO端口B在寄存器的起始地址：0x4001 0C00 ~ 0x4001 0FFF</li></ul><ul class="notion-list notion-list-disc notion-block-35c9995fc21f803ebc98e336f4474133"><li>GPIOB，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3569995fc21f805b8e59d16bb26cc502"><li>GPIO_TypeDef，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35e9995fc21f803ca152ca652888487b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aea586dfd-0207-4243-acd0-8eaf0111d6f1%3Aimage.png?table=block&amp;id=35e9995f-c21f-803c-a152-ca652888487b&amp;t=35e9995f-c21f-803c-a152-ca652888487b" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-35e9995fc21f8054b048d76662dacbc5"><li>GPIOA/B/C/D/E/F/G_BASE，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><div class="notion-text notion-block-35e9995fc21f8081a585d44059a2d85b">计算下来：（GPIOA~G计算出来的十六进制为该外设在存储器映像中寄存器的开始地址，即基地址）</div></div></details><details class="notion-toggle notion-block-35e9995fc21f8020a530c558a64a8c4c"><summary><code class="notion-inline-code">#define LED1 GPIO_Pin_0</code>和<code class="notion-inline-code">#define LED2 GPIO_Pin_1</code></summary><div><ul class="notion-list notion-list-disc notion-block-35e9995fc21f80069a66e26296d50dbd"><li>含义：定义LED1为GPIO_Pin_0【0x0001，表示第0个引脚被选中】，定义LED2为GPIO_Pin_1【0x0002，表示第1个引脚被选中】</li></ul><ul class="notion-list notion-list-disc notion-block-35f9995fc21f8076a9c1c7724ad264b5"><li>GPIO_Pin_0或1，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_gpio.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><div class="notion-blank notion-block-35e9995fc21f80c9be4fc5337099e6f5"> </div></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-35f9995fc21f8020bfe5f7d0ddf18a54" data-id="35f9995fc21f8020bfe5f7d0ddf18a54"><span><div id="35f9995fc21f8020bfe5f7d0ddf18a54" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35f9995fc21f8020bfe5f7d0ddf18a54" title="GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP</span></span></h4><ul class="notion-list notion-list-disc notion-block-35f9995fc21f80e2bd1dfa5ebfb6888f"><li><span class="notion-red"><b>含义：</b></span>将GPIO的工作模式设置为推挽输出（0x10）</li></ul><ul class="notion-list notion-list-disc notion-block-35f9995fc21f80809365fd779615c4c0"><li>GPIO_Mode_Out_PP为推挽输出(0x10)，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_gpio.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-35f9995fc21f8025894bceb3982f9269"><summary>端口配置高寄存器（GPIOx_CRH）</summary><div><ul class="notion-list notion-list-disc notion-block-35f9995fc21f806c8b4be47f39fc613c"><li>GPIOx_CRH在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第106页</span></b></span></em>和<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第114页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35f9995fc21f8081b546eeecae2879f8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A007c5e1c-a17b-4deb-81dc-13cd29a2d66c%3Aimage.png?table=block&amp;id=35f9995f-c21f-8081-b546-eeecae2879f8&amp;t=35f9995f-c21f-8081-b546-eeecae2879f8" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35f9995fc21f80c595a8e11f8fc7bc79"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A316712aa-708f-4b5f-94cc-e4d284d6884d%3Aimage.png?table=block&amp;id=35f9995f-c21f-80c5-95a8-e11f8fc7bc79&amp;t=35f9995f-c21f-80c5-95a8-e11f8fc7bc79" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35f9995fc21f80a78fc9d82069ea1146"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa81bd29d-e747-48d9-a2bf-4517c3d37f4a%3Aimage.png?table=block&amp;id=35f9995f-c21f-80a7-8fc9-d82069ea1146&amp;t=35f9995f-c21f-80a7-8fc9-d82069ea1146" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-35f9995fc21f806482ede02e95efdbff" data-id="35f9995fc21f806482ede02e95efdbff"><span><div id="35f9995fc21f806482ede02e95efdbff" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35f9995fc21f806482ede02e95efdbff" title="GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz</span></span></h4><ul class="notion-list notion-list-disc notion-block-35f9995fc21f80f19a86e4a9e1099243"><li><span class="notion-red"><b>含义：</b></span>将GPIO的速度设置为50MHz</li></ul><ul class="notion-list notion-list-disc notion-block-35f9995fc21f801db555cb4d6fc7d682"><li>GPIO_Speed_50MHz为2，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_gpio.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-35f9995fc21f80ecbf6deb8559b5e928" data-id="35f9995fc21f80ecbf6deb8559b5e928"><span><div id="35f9995fc21f80ecbf6deb8559b5e928" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35f9995fc21f80ecbf6deb8559b5e928" title="GPIO_Init(LEDPORT, &amp;GPIO_InitStructure)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">GPIO_Init(LEDPORT, &amp;GPIO_InitStructure)</span></span></h4><ul class="notion-list notion-list-disc notion-block-35f9995fc21f8074ae51e3725609294a"><li>含义：调用GPIO_Init函数，其目的在于将前几行设置的值写入对应外设的寄存器中</li></ul><ul class="notion-list notion-list-disc notion-block-35f9995fc21f80268cfef41b62414524"><li>第一个参数在之前的“<code class="notion-inline-code">GPIO_InitStructure.GPIO_Pin = LED1 | LED2</code>”的“<code class="notion-inline-code">#define LEDPORT GPIOB</code> ”有说明，即为GPIOB的基地址（0x0x40010C00）,GPIO端口B在寄存器的起始地址：0x4001 0C00 ~ 0x4001 0FFF。<code class="notion-inline-code">LEDPORT</code>（即 <code class="notion-inline-code">GPIOB</code>）本质上是一个<b>指向地址 </b><code class="notion-inline-code"><b>0x40010C00</b></code><b> 的结构体指针</b>。</li></ul><ul class="notion-list notion-list-disc notion-block-35f9995fc21f8013981dd91336027ee8"><li>第二个参数则为之前说明的GPIO_InitStructure变量（内部根据前几行代码设置的值：0x0003（引脚0和1）、0x10（推挽输出）、2（50MHz）），GPIO_InitStructure表示结构体本身，而&amp;GPIO_InitStructure表示指向这个结构体的地址，因为函数内部要拿到结构体的地址，才能对其本身进行修改</li></ul><ul class="notion-list notion-list-disc notion-block-35f9995fc21f80148c98d1af2d7452f7"><li>GPIO_Init函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_gpio.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-35f9995fc21f80e9a4a4d3bd41b420ee"><summary>端口配置低寄存器（GPIOx_CRL）</summary><div><ul class="notion-list notion-list-disc notion-block-35f9995fc21f80dab05ec72b8beaf474"><li>GPIOx_CRL端口配置低寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第113页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35f9995fc21f80f48762f18dc6793f96"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad7950716-e1ea-42b1-82fa-286b97034ec2%3Aimage.png?table=block&amp;id=35f9995f-c21f-80f4-8762-f18dc6793f96&amp;t=35f9995f-c21f-80f4-8762-f18dc6793f96" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-35f9995fc21f8049a6c3f2e9efe1441f"><summary>端口配置高寄存器（GPIOx_CRH）</summary><div><ul class="notion-list notion-list-disc notion-block-35f9995fc21f80ef976ff1f89430992f"><li>GPIOx_CRH端口配置高寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第114页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35f9995fc21f806a8c16c1d56fd17922"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:666.0176391601562px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A96cec886-fa9c-413a-8b48-06333922bc96%3Aimage.png?table=block&amp;id=35f9995f-c21f-806a-8c16-c1d56fd17922&amp;t=35f9995f-c21f-806a-8c16-c1d56fd17922" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-35f9995fc21f80e79074df2e853dcd78"><summary>端口输出数据寄存器（GPIOx_ODR）</summary><div><ul class="notion-list notion-list-disc notion-block-35f9995fc21f8056b43af46942c874a4"><li>GPIOx_ODR端口输出数据寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第115页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35f9995fc21f801c9294e56470cf1e4b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6caeeaf0-b5f1-4a72-8819-44779ceb8024%3Aimage.png?table=block&amp;id=35f9995f-c21f-801c-9294-e56470cf1e4b&amp;t=35f9995f-c21f-801c-9294-e56470cf1e4b" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-35f9995fc21f80f29ac8ca94ae68a27b"><summary>端口位设置/清除寄存器（GPIOx_BSRR）</summary><div><ul class="notion-list notion-list-disc notion-block-35f9995fc21f8029bcf5e50e0c0512d0"><li>GPIOx_BSRR端口位设置/清除寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第115页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35f9995fc21f804a96a1ea5fc42d3ae5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa26a0601-5e45-4d65-a10f-cf82d539c1a3%3Aimage.png?table=block&amp;id=35f9995f-c21f-804a-96a1-ea5fc42d3ae5&amp;t=35f9995f-c21f-804a-96a1-ea5fc42d3ae5" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-35f9995fc21f80448bcbf05963060174"><summary>端口位清除寄存器（GPIOx_BRR）</summary><div><ul class="notion-list notion-list-disc notion-block-35f9995fc21f80a6ac71e550b2214195"><li>GPIOx_BRR端口位清除寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第115~116页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35f9995fc21f80918424eaf4d8502491"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6e8409eb-dda8-4613-8f43-79cbbf275b49%3Aimage.png?table=block&amp;id=35f9995f-c21f-8091-8424-eaf4d8502491&amp;t=35f9995f-c21f-8091-8424-eaf4d8502491" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35f9995fc21f80db9993f0d78968f037"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A72997585-93c5-43dd-a343-dff1b32be32f%3Aimage.png?table=block&amp;id=35f9995f-c21f-80db-9993-f0d78968f037&amp;t=35f9995f-c21f-80db-9993-f0d78968f037" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-35f9995fc21f8035ab48c361b90eaff9" data-id="35f9995fc21f8035ab48c361b90eaff9"><span><div id="35f9995fc21f8035ab48c361b90eaff9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35f9995fc21f8035ab48c361b90eaff9" title="1.3 GPIO_WriteBit(LEDPORT,LED1,(BitAction)(1或0或1-GPIO_ReadOutputDataBit(LEDPORT,LED1)))"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.3 GPIO_WriteBit(LEDPORT,LED1,(BitAction)(1或0或1-GPIO_ReadOutputDataBit(LEDPORT,LED1)))</span></span></h3><ul class="notion-list notion-list-disc notion-block-3609995fc21f80e3b3c5e4976f30af7d"><li><span class="notion-red"><b>含义：</b></span>BitAction(1)为高电平，BitAction(0)为低电平</li></ul><ul class="notion-list notion-list-disc notion-block-35f9995fc21f801bbee1f8b363bbee06"><li>第一个参数在之前的“<code class="notion-inline-code">1.2 LED_Init(void)</code>”的“<code class="notion-inline-code">GPIO_InitStructure.GPIO_Pin = LED1 | LED2</code>”的“<code class="notion-inline-code">#define LEDPORT GPIOB</code> ”有说明，即为GPIOB的基地址（0x0x40010C00）,GPIO端口B在寄存器的起始地址：0x4001 0C00 ~ 0x4001 0FFF。<code class="notion-inline-code">LEDPORT</code>（即 <code class="notion-inline-code">GPIOB</code>）本质上是一个<b>指向地址 </b><code class="notion-inline-code"><b>0x40010C00</b></code><b> 的结构体指针</b>。</li></ul><ul class="notion-list notion-list-disc notion-block-35f9995fc21f8000b036ef721005ead0"><li>第二个参数LED1在之前的“<code class="notion-inline-code">1.2 LED_Init(void)</code>”的“<code class="notion-inline-code">GPIO_InitStructure.GPIO_Pin = LED1 | LED2</code>”的“<code class="notion-inline-code">#define LED1 GPIO_Pin_0</code>和<code class="notion-inline-code">#define LED2 GPIO_Pin_1</code> ”有说明，即(uint16_t)0x0001</li></ul><ul class="notion-list notion-list-disc notion-block-35f9995fc21f80cdaeb5f37dfee6722f"><li>第三个参数(BitAction)(1)代表强制将1转换为BitAction，则为Bit_Set；(BitAction)(0)代表强制将0转换为BitAction，则为Bit_RESET。BitAction出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_gpio.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-35f9995fc21f80859ea7e4969617ff65"><li>第三个参数还有一个情况：(BitAction)(1-GPIO_ReadOutputDataBit(LEDPORT,LED1))</li><ul class="notion-list notion-list-disc notion-block-35f9995fc21f80859ea7e4969617ff65"><li>这个1-GPIO_ReadOutputDataBit(LEDPORT,LED1)是取反的意思。</li><ul class="notion-list notion-list-disc notion-block-3609995fc21f808aae59e6000378bf29"><li>假设GPIO_ReadOutputDataBit(LEDPORT,LED1)为0时，1-GPIO_ReadOutputDataBit(LEDPORT,LED1)为1。(BitAction)(1)。</li><li>假设GPIO_ReadOutputDataBit(LEDPORT,LED1)为1时，1-GPIO_ReadOutputDataBit(LEDPORT,LED1)为0。(BitAction)(0)。</li></ul><li>GPIO_ReadOutputDataBit(LEDPORT,LED1)，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_gpio.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></ul><ul class="notion-list notion-list-disc notion-block-35f9995fc21f805ab7eee7b60bb49702"><li>GPIO_WriteBit函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_gpio.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-35f9995fc21f80cbbf0bee303503f71a"><summary>端口输出数据寄存器（GPIOx_ODR）</summary><div><ul class="notion-list notion-list-disc notion-block-35f9995fc21f80f89d29d17b99ef7cd5"><li>GPIOx_ODR端口输出数据寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第115页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35f9995fc21f80dd9492cbe178d3ae9c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6caeeaf0-b5f1-4a72-8819-44779ceb8024%3Aimage.png?table=block&amp;id=35f9995f-c21f-80dd-9492-cbe178d3ae9c&amp;t=35f9995f-c21f-80dd-9492-cbe178d3ae9c" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-35f9995fc21f80d39b8ff28be927d869"><summary>端口位设置/清除寄存器（GPIOx_BSRR）</summary><div><ul class="notion-list notion-list-disc notion-block-35f9995fc21f8007be5bc1dc6c60b427"><li>GPIOx_BSRR端口位设置/清除寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第115页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35f9995fc21f80c9afeaf6a144780e10"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa26a0601-5e45-4d65-a10f-cf82d539c1a3%3Aimage.png?table=block&amp;id=35f9995f-c21f-80c9-afea-f6a144780e10&amp;t=35f9995f-c21f-80c9-afea-f6a144780e10" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-35f9995fc21f8000840be5cd47463972"><summary>端口位清除寄存器（GPIOx_BRR）</summary><div><ul class="notion-list notion-list-disc notion-block-35f9995fc21f80c68e52c97ec78957c5"><li>GPIOx_BRR端口位清除寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第115~116页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35f9995fc21f80a7bceeef3703a452a1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6e8409eb-dda8-4613-8f43-79cbbf275b49%3Aimage.png?table=block&amp;id=35f9995f-c21f-80a7-bcee-ef3703a452a1&amp;t=35f9995f-c21f-80a7-bcee-ef3703a452a1" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35f9995fc21f80548ca4f29cebf1454d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A72997585-93c5-43dd-a343-dff1b32be32f%3Aimage.png?table=block&amp;id=35f9995f-c21f-8054-8ca4-f29cebf1454d&amp;t=35f9995f-c21f-8054-8ca4-f29cebf1454d" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-35f9995fc21f8063a2cad8e4b18da5bd" data-id="35f9995fc21f8063a2cad8e4b18da5bd"><span><div id="35f9995fc21f8063a2cad8e4b18da5bd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35f9995fc21f8063a2cad8e4b18da5bd" title="1.4 GPIO_SetBits(LEDPORT,LED1)和GPIO_ResetBits(LEDPORT,LED1)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.4 GPIO_SetBits(LEDPORT,LED1)和GPIO_ResetBits(LEDPORT,LED1)</span></span></h3><ul class="notion-list notion-list-disc notion-block-3609995fc21f80e483c8fabd589bce4a"><li><span class="notion-red"><b>含义：</b></span>前者让引脚0为高电平，后者让引脚0为低电平</li></ul><ul class="notion-list notion-list-disc notion-block-3609995fc21f80618d45d4e8475f2da6"><li>第一个参数在之前的“<code class="notion-inline-code">1.2 LED_Init(void)</code>”的“<code class="notion-inline-code">GPIO_InitStructure.GPIO_Pin = LED1 | LED2</code>”的“<code class="notion-inline-code">#define LEDPORT GPIOB</code> ”有说明，即为GPIOB的基地址（0x0x40010C00）,GPIO端口B在寄存器的起始地址：0x4001 0C00 ~ 0x4001 0FFF。<code class="notion-inline-code">LEDPORT</code>（即 <code class="notion-inline-code">GPIOB</code>）本质上是一个<b>指向地址 </b><code class="notion-inline-code"><b>0x40010C00</b></code><b> 的结构体指针</b>。</li></ul><ul class="notion-list notion-list-disc notion-block-3609995fc21f80c6a603c125f5a2326a"><li>第二个参数LED1在之前的“<code class="notion-inline-code">1.2 LED_Init(void)</code>”的“<code class="notion-inline-code">GPIO_InitStructure.GPIO_Pin = LED1 | LED2</code>”的“<code class="notion-inline-code">#define LED1 GPIO_Pin_0</code>和<code class="notion-inline-code">#define LED2 GPIO_Pin_1</code> ”有说明，即(uint16_t)0x0001</li></ul><ul class="notion-list notion-list-disc notion-block-3609995fc21f80ba8b06c62e4215b373"><li>GPIO_SetBits和GPIO_ResetBits两个函数，都出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_gpio.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3609995fc21f80c286ecf1f9a4b9d159"><summary>端口输出数据寄存器（GPIOx_ODR）</summary><div><ul class="notion-list notion-list-disc notion-block-3609995fc21f803c8fc0e81b3a44a9c0"><li>GPIOx_ODR端口输出数据寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第115页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3609995fc21f805aaf96c1d7060f0c65"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6caeeaf0-b5f1-4a72-8819-44779ceb8024%3Aimage.png?table=block&amp;id=3609995f-c21f-805a-af96-c1d7060f0c65&amp;t=3609995f-c21f-805a-af96-c1d7060f0c65" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3609995fc21f80419671d6cea6db7f7a"><summary>端口位设置/清除寄存器（GPIOx_BSRR）</summary><div><ul class="notion-list notion-list-disc notion-block-3609995fc21f809dafcde8a95b60e90e"><li>GPIOx_BSRR端口位设置/清除寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第115页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3609995fc21f805e9544e3ca35393af3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa26a0601-5e45-4d65-a10f-cf82d539c1a3%3Aimage.png?table=block&amp;id=3609995f-c21f-805e-9544-e3ca35393af3&amp;t=3609995f-c21f-805e-9544-e3ca35393af3" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3609995fc21f8070bcb4cf7dba5dd439"><summary>端口位清除寄存器（GPIOx_BRR）</summary><div><ul class="notion-list notion-list-disc notion-block-3609995fc21f80d08506cf0c253edf19"><li>GPIOx_BRR端口位清除寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第115~116页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3609995fc21f8045b77bc73be174b2f7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6e8409eb-dda8-4613-8f43-79cbbf275b49%3Aimage.png?table=block&amp;id=3609995f-c21f-8045-b77b-c73be174b2f7&amp;t=3609995f-c21f-8045-b77b-c73be174b2f7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3609995fc21f80478baac40893faa7e2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A72997585-93c5-43dd-a343-dff1b32be32f%3Aimage.png?table=block&amp;id=3609995f-c21f-8047-8baa-c40893faa7e2&amp;t=3609995f-c21f-8047-8baa-c40893faa7e2" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3609995fc21f803c8ff7c0b766c5fcb1" data-id="3609995fc21f803c8ff7c0b766c5fcb1"><span><div id="3609995fc21f803c8ff7c0b766c5fcb1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3609995fc21f803c8ff7c0b766c5fcb1" title="1.5 GPIO_Write(LEDPORT,0x0001或者0x0000)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.5 GPIO_Write(LEDPORT,0x0001或者0x0000)</span></span></h3><ul class="notion-list notion-list-disc notion-block-3609995fc21f80a79c2ac2c53767d164"><li><span class="notion-red"><b>含义：</b></span>直接数值操作将变量值写入LED</li></ul><ul class="notion-list notion-list-disc notion-block-3609995fc21f80eb891cdb546fd9c486"><li>第一个参数在之前的“<code class="notion-inline-code">1.2 LED_Init(void)</code>”的“<code class="notion-inline-code">GPIO_InitStructure.GPIO_Pin = LED1 | LED2</code>”的“<code class="notion-inline-code">#define LEDPORT GPIOB</code> ”有说明，即为GPIOB的基地址（0x0x40010C00）,GPIO端口B在寄存器的起始地址：0x4001 0C00 ~ 0x4001 0FFF。<code class="notion-inline-code">LEDPORT</code>（即 <code class="notion-inline-code">GPIOB</code>）本质上是一个<b>指向地址 </b><code class="notion-inline-code"><b>0x40010C00</b></code><b> 的结构体指针</b>。</li></ul><ul class="notion-list notion-list-disc notion-block-3609995fc21f809890f4da4d824d89d6"><li>GPIO_Write函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_gpio.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3609995fc21f8037a488c788f60a6b7f" data-id="3609995fc21f8037a488c788f60a6b7f"><span><div id="3609995fc21f8037a488c788f60a6b7f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3609995fc21f8037a488c788f60a6b7f" title="1.6 delay_us、delay_ms、delay_s"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.6 delay_us、delay_ms、delay_s</span></span></h3><ul class="notion-list notion-list-disc notion-block-3609995fc21f803eb4d2dd74269a35e9"><li>三个函数，出自delay.c代码文件</li></ul><ul class="notion-list notion-list-disc notion-block-3609995fc21f80e8ae10c85e652f1ca3"><li>SysTick的来源，出自CMSIS文件夹下的内核相关的core_cm3.h（内核寄存器定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3609995fc21f80fca643c41f38582654"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2c07c516-946d-4176-9f04-fbdc3d841bd8%3Aimage.png?table=block&amp;id=3609995f-c21f-80fc-a643-c41f38582654&amp;t=3609995f-c21f-80fc-a643-c41f38582654" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3609995fc21f809aa4d8c40dccbf9608"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8beffd31-e07d-4fe1-8a00-16d37275f0a4%3Aimage.png?table=block&amp;id=3609995f-c21f-809a-a4d8-c40dccbf9608&amp;t=3609995f-c21f-809a-a4d8-c40dccbf9608" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3609995fc21f8021b4c2ca168422ea56"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac9229e0b-5187-4e36-b1e9-43433e77d477%3Aimage.png?table=block&amp;id=3609995f-c21f-8021-b4c2-ca168422ea56&amp;t=3609995f-c21f-8021-b4c2-ca168422ea56" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3609995fc21f8004acd6fb3cee7325cd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adbc27c22-317a-488a-817f-ad89f4a88731%3Aimage.png?table=block&amp;id=3609995f-c21f-8004-acd6-fb3cee7325cd&amp;t=3609995f-c21f-8004-acd6-fb3cee7325cd" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-3629995fc21f8076a75bd467de1b9dd7"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3609995fc21f80968164d8acecc4ce2b" data-id="3609995fc21f80968164d8acecc4ce2b"><span><div id="3609995fc21f80968164d8acecc4ce2b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3609995fc21f80968164d8acecc4ce2b" title="二、按键控制LED程序"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二、按键控制LED程序</span></span></h2><div class="notion-text notion-block-3629995fc21f80478af3e322d50d276a"><span class="notion-red"><span class="notion-blue_background"><b>main.c文件代码文件：</b></span></span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3629995fc21f804480f9feea3d26ea64"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0147ca19-107d-47c4-84ea-9d6f1669eb31%3Aimage.png?table=block&amp;id=3629995f-c21f-8044-80f9-feea3d26ea64&amp;t=3629995f-c21f-8044-80f9-feea3d26ea64" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38c9995fc21f80d19b8fc3f70cdef848"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:553.9866943359375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A53dd552d-a253-49e5-9590-89f216413e20%3Aimage.png?table=block&amp;id=38c9995f-c21f-80d1-9b8f-c3f70cdef848&amp;t=38c9995f-c21f-80d1-9b8f-c3f70cdef848" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3629995fc21f807884add6b7631ae916" data-id="3629995fc21f807884add6b7631ae916"><span><div id="3629995fc21f807884add6b7631ae916" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3629995fc21f807884add6b7631ae916" title="2.1 KEY_Init(void)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.1 KEY_Init(void)</span></span></h3><div class="notion-text notion-block-3629995fc21f80d4a502fb6b5599f24f"><span class="notion-red"><span class="notion-blue_background"><b>key.c代码文件</b></span></span></div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3629995fc21f80cc9c17eefb79205904" data-id="3629995fc21f80cc9c17eefb79205904"><span><div id="3629995fc21f80cc9c17eefb79205904" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3629995fc21f80cc9c17eefb79205904" title="GPIO_InitStructure.GPIO_Pin = KEY1 | KEY2"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">GPIO_InitStructure.GPIO_Pin = KEY1 | KEY2</span></span></h4><ul class="notion-list notion-list-disc notion-block-3629995fc21f80349de5f38e4f980961"><li><span class="notion-red"><b>含义：</b></span>引脚设置为KEY1和KEY2，即第0个和第1个引脚，GPIO_InitStructure.GPIO_Pin = 0x0003</li></ul><ul class="notion-list notion-list-disc notion-block-3629995fc21f8033a9a1dd1d7911f55f"><li>KEY1和KEY2出自key.h文件</li></ul><details class="notion-toggle notion-block-3629995fc21f80339559e01a229b6d7d"><summary><code class="notion-inline-code">#define KEY1 PAin(0)</code>和<code class="notion-inline-code">#define KEY2 PAin(1)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3629995fc21f806ca744dc9f5ac4c5a9"><li>含义：定义KEY1为PAin(0)【值为0x42210100，代表对IDR寄存器的第0位IDR0进行修改读取的虚拟地址（位段）】，定义KEY2为PAin(1)【值为0x42210104，代表对IDR寄存器的第1位IDR1进行修改读取的虚拟地址（位段）】</li></ul><ul class="notion-list notion-list-disc notion-block-3629995fc21f80bebd96c25bbe3ac679"><li>“位段”出自<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第29~30页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3629995fc21f8055bd5bd1fdfa874620"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8af73c90-111c-4518-bc6f-6445bde697c5%3Aimage.png?table=block&amp;id=3629995f-c21f-8055-bd5b-d1fdfa874620&amp;t=3629995f-c21f-8055-bd5b-d1fdfa874620" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3629995fc21f8067aec0f558aa9b34bd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adfc55163-7f52-455e-b430-387be6ae0e08%3Aimage.png?table=block&amp;id=3629995f-c21f-8067-aec0-f558aa9b34bd&amp;t=3629995f-c21f-8067-aec0-f558aa9b34bd" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3629995fc21f8024a2f7de9e125486f8"><li>PAin(0或1)出自sys.h文件</li></ul><div class="notion-text notion-block-3629995fc21f8004b683d0d9adbe200c">GPIOA/B/C/D/E/F/G_BASE，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></div><ul class="notion-list notion-list-disc notion-block-3629995fc21f80b0a572fa45987382dd"><li>例子中的PAin(1)：</li></ul><div class="notion-text notion-block-3629995fc21f8011a38dd541012fd3f5">PAin(0)：</div></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3629995fc21f8036a5e5de11deeb5e6f" data-id="3629995fc21f8036a5e5de11deeb5e6f"><span><div id="3629995fc21f8036a5e5de11deeb5e6f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3629995fc21f8036a5e5de11deeb5e6f" title="2.2 GPIO_ReadInputDataBit(KEYPORT,KEY1)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.2 GPIO_ReadInputDataBit(KEYPORT,KEY1)</span></span></h3><ul class="notion-list notion-list-disc notion-block-3629995fc21f806daad3d1e5c1499574"><li>GPIO_ReadInputDataBit(KEYPORT,KEY1)，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_gpio.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3629995fc21f80b08004caff71c051f6"><summary>端口输入数据寄存器（GPIOx_IDR）</summary><div><ul class="notion-list notion-list-disc notion-block-3629995fc21f805bbf69ffcefcca501f"><li>GPIOx_IDR端口输出数据寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第114页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3629995fc21f80959469fe62a59e2d13"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2f36e6f0-203c-44c8-bf06-ea771b9d30c9%3Aimage.png?table=block&amp;id=3629995f-c21f-8095-9469-fe62a59e2d13&amp;t=3629995f-c21f-8095-9469-fe62a59e2d13" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3629995fc21f80ca9ffbe37046ba7b4a"><summary>Bit_SET和Bit_RESET</summary><div><ul class="notion-list notion-list-disc notion-block-3629995fc21f80788306fd4a76c7c0fb"><li>BitAction出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_gpio.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><div class="notion-blank notion-block-3629995fc21f8021a3dcdf45f3c1002b"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3629995fc21f80f6b834edadeabe06c5" data-id="3629995fc21f80f6b834edadeabe06c5"><span><div id="3629995fc21f80f6b834edadeabe06c5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3629995fc21f80f6b834edadeabe06c5" title="三、FLASH读写程序"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">三、FLASH读写程序</span></span></h2><div class="notion-text notion-block-3629995fc21f8012a6a5e255e6a01556"><span class="notion-red"><span class="notion-blue_background"><b>main.c文件代码文件：</b></span></span></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3629995fc21f802da48ccdbbcdb916a7" data-id="3629995fc21f802da48ccdbbcdb916a7"><span><div id="3629995fc21f802da48ccdbbcdb916a7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3629995fc21f802da48ccdbbcdb916a7" title="3.1 FLASH_R和FLASH_W"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.1 FLASH_R和FLASH_W</span></span></h4><div class="notion-text notion-block-3629995fc21f808ebdcacefbb4a5edfc"><span class="notion-red"><span class="notion-blue_background"><b>flash.c代码文件：</b></span></span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80b193d9cb6e8f485d73"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8f760554-b232-43a6-8fc0-7fe4053f0538%3Aimage.png?table=block&amp;id=3649995f-c21f-80b1-93d9-cb6e8f485d73&amp;t=3649995f-c21f-80b1-93d9-cb6e8f485d73" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-3629995fc21f80398e8df174ba8bfefa"><summary><code class="notion-inline-code">RCC_HSICmd(ENABLE)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3639995fc21f8065b9d9d45c65f0d2d6"><li><span class="notion-red"><b>含义：</b></span>打开HSI时钟</li></ul><ul class="notion-list notion-list-disc notion-block-3629995fc21f806da2fcff551bfbdb7a"><li>参数ENABLE为枚举类型FunctionalState，值为1，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3629995fc21f801c881ddbbaa415122c"><li>RCC_HSICmd函数出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3629995fc21f8003a9eee0c8652df048"><summary><code class="notion-inline-code">*(__IO uint32_t *) CR_HSION_BB = (uint32_t)NewState</code></summary><div><ul class="notion-list notion-list-disc notion-block-3629995fc21f80bca10bdc62294f5825"><li>含义：由于NewState是ENABLE（1），所以将1写入RCC_CR（时钟控制寄存器）的位0的虚拟地址0x42420000，即将位0（HSION）设置为1；</li></ul><ul class="notion-list notion-list-disc notion-block-3629995fc21f8065a601c7bac43c5370"><li>CR_HSION_BB涉及到“位段”的知识点，“位段”出自<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第29~30页</span></b></span></em>有定义</li><ul class="notion-list notion-list-disc notion-block-3629995fc21f8065a601c7bac43c5370"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3629995fc21f80daa422fa63f86d46f7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8af73c90-111c-4518-bc6f-6445bde697c5%3Aimage.png?table=block&amp;id=3629995f-c21f-80da-a422-fa63f86d46f7&amp;t=3629995f-c21f-80da-a422-fa63f86d46f7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3629995fc21f80a099aadd5c283425e6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adfc55163-7f52-455e-b430-387be6ae0e08%3Aimage.png?table=block&amp;id=3629995f-c21f-80a0-99aa-dd5c283425e6&amp;t=3629995f-c21f-80a0-99aa-dd5c283425e6" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-3629995fc21f8094a7e9cd7866098986"><li>CR_HSION_BB的值为0x42420000，它的值的计算分别出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em><span class="notion-default"> </span></li></ul><div class="notion-text notion-block-3629995fc21f807c9e22dd9de0f7f32e">出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></div><div class="notion-text notion-block-3629995fc21f80e588fbf92a9d65e00a">计算步骤：（外设RCC的起始地址为0x4002 1000 ~ 0x4002 13FF）</div></div></details></div></details><details class="notion-toggle notion-block-3629995fc21f80d5a269df3d616582f6"><summary><code class="notion-inline-code">FLASH_Unlock()</code></summary><div><ul class="notion-list notion-list-disc notion-block-3639995fc21f801c977ac30b1e92b440"><li>含义：解锁FLASH编程擦除控制器</li></ul><ul class="notion-list notion-list-disc notion-block-3629995fc21f800092d3e0ebd25ffefe"><li>FLASH_Unlock函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-3639995fc21f8028a265e23f86dc2e59"><summary><code class="notion-inline-code">FLASH_ClearFlag(FLASH_FLAG_BSY|FLASH_FLAG_EOP|FLASH_FLAG_PGERR|FLASH_FLAG_WRPRTERR)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f80e0ad4be331d6908bbd"><li>含义：清除标志位</li></ul><ul class="notion-list notion-list-disc notion-block-3639995fc21f801b9373fe154b248d31"><li>FLASH_FLAG_BSY|FLASH_FLAG_EOP|FLASH_FLAG_PGERR|FLASH_FLAG_WRPRTERR = 0x00000035【0000 0000 0000 0000 0000 0000 0011 0101】</li></ul><ul class="notion-list notion-list-disc notion-block-3639995fc21f80bfb630f57657e52c9a"><li>参数FLASH_FLAG_BSY、FLASH_FLAG_EOP、FLASH_FLAG_PGERR、FLASH_FLAG_WRPRTERR，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_flash.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3639995fc21f8091b28ae567525b3ff8"><summary>FLASH_SR（闪存状态寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3639995fc21f80b5b9b5e754095ef5bf"><li>FLASH_SR闪存状态寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第16~17页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3639995fc21f806ca15bec9ca92e5f5f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A68d0df8c-f47b-4ec2-af54-7a7d5376a980%3Aimage.png?table=block&amp;id=3639995f-c21f-806c-a15b-ec9ca92e5f5f&amp;t=3639995f-c21f-806c-a15b-ec9ca92e5f5f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3639995fc21f803d93abc09cc7b0c30a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae747b5e7-ca40-4a92-9b64-bb0485c94779%3Aimage.png?table=block&amp;id=3639995f-c21f-803d-93ab-c09cc7b0c30a&amp;t=3639995f-c21f-803d-93ab-c09cc7b0c30a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3639995fc21f80a2a95fc16fb136071f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7cd3f004-247f-4f80-9043-b6987ed564cd%3Aimage.png?table=block&amp;id=3639995f-c21f-80a2-a95f-c16fb136071f&amp;t=3639995f-c21f-80a2-a95f-c16fb136071f" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3639995fc21f80a9905be18103ae0f5d"><summary>FLASH_OBR（选项字节寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3639995fc21f80be9692de70858eb38b"><li>FLASH_OBR选项字节寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第18页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3639995fc21f809c8251dd47f5163731"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5e2206b5-ec64-4edc-b46a-9347ae9e41ae%3Aimage.png?table=block&amp;id=3639995f-c21f-809c-8251-dd47f5163731&amp;t=3639995f-c21f-809c-8251-dd47f5163731" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3639995fc21f8033904bce61df4aa645"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab4dc2d8e-fa3f-4310-a865-818ef7591a28%3Aimage.png?table=block&amp;id=3639995f-c21f-8033-904b-ce61df4aa645&amp;t=3639995f-c21f-8033-904b-ce61df4aa645" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3639995fc21f800ba815d96da009edeb"><li>FLASH_ClearFlag函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-3639995fc21f80eb8a82da961f1cf37b"><summary><code class="notion-inline-code">FLASH_ErasePage(add)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f80308c01c7b4a0da3c35"><li>含义：擦除指定地址页</li></ul><ul class="notion-list notion-list-disc notion-block-3639995fc21f8010a492d45c2ee293d0"><li>FLASH_ErasePage函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3649995fc21f809d8463e8020ae04147"><summary>FLASH_CR（闪存控制寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f800f9710fba149719665"><li>FLASH_CR闪存控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第17页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f803f869ef38238587635"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5121839a-03f8-4675-be42-ed7f76ff9011%3Aimage.png?table=block&amp;id=3649995f-c21f-803f-869e-f38238587635&amp;t=3649995f-c21f-803f-869e-f38238587635" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f800a90c8e35d5ad5e13d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9faf0d04-ee8c-4299-873d-dc56db80c5fe%3Aimage.png?table=block&amp;id=3649995f-c21f-800a-90c8-e35d5ad5e13d&amp;t=3649995f-c21f-800a-90c8-e35d5ad5e13d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80f09af1fd7d18cf1a26"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac31fa22b-3cf4-404c-8d9a-491a1b88777e%3Aimage.png?table=block&amp;id=3649995f-c21f-80f0-9af1-fd7d18cf1a26&amp;t=3649995f-c21f-80f0-9af1-fd7d18cf1a26" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3649995fc21f8096a0e4d8e5b58c5ec1"><summary>FLASH_AR（闪存地址寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f809dbe1cd9db9b4a257e"><li>FLASH_AR闪存地址寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第18页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80cf80accb376ee94cb7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0371483a-41e5-45ec-b562-bff67d35f34b%3Aimage.png?table=block&amp;id=3649995f-c21f-80cf-80ac-cb376ee94cb7&amp;t=3649995f-c21f-80cf-80ac-cb376ee94cb7" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3639995fc21f802db269d979852ce95d"><summary><code class="notion-inline-code">FLASH_Status status = FLASH_COMPLETE</code></summary><div><ul class="notion-list notion-list-disc notion-block-3639995fc21f80d6aac6cb2aba160585"><li>含义：FLASH的状态为操作成功完成（值为4），即对应FLASH_SR（闪存状态寄存器）的第5位</li></ul><ul class="notion-list notion-list-disc notion-block-3639995fc21f80f0bd99f1c2a7a093a1"><li>类型FLASH_Status，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_flash.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><table class="notion-simple-table notion-block-3639995fc21f805081d7c6ba9185869d"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3639995fc21f80b4bbcaee5292157454"><td class="" style="width:149.19791412353516px"><div class="notion-simple-table-cell">枚举值</div></td><td class="" style="width:58.197914123535156px"><div class="notion-simple-table-cell">数值</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">含义（大白话）</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">手册对应位置</div></td><td class="" style="width:141.19400024414062px"><div class="notion-simple-table-cell">对应硬件标志位</div></td></tr><tr class="notion-simple-table-row notion-block-3639995fc21f80b59ef8edfe5ba89a59"><td class="" style="width:149.19791412353516px"><div class="notion-simple-table-cell"><code class="notion-inline-code">FLASH_BUSY</code></div></td><td class="" style="width:58.197914123535156px"><div class="notion-simple-table-cell">1</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">FLASH 正在忙，无法进行新的操作</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">第 16 页，3.4 节，位 0</div></td><td class="" style="width:141.19400024414062px"><div class="notion-simple-table-cell"><code class="notion-inline-code">FLASH_SR-&gt;BSY</code></div></td></tr><tr class="notion-simple-table-row notion-block-3639995fc21f80c3a13bc80c27abbabf"><td class="" style="width:149.19791412353516px"><div class="notion-simple-table-cell"><code class="notion-inline-code">FLASH_ERROR_PG</code></div></td><td class="" style="width:58.197914123535156px"><div class="notion-simple-table-cell">2</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">编程错误，试图向未擦除的地址写入数据</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">第 16 页，3.4 节，位 2</div></td><td class="" style="width:141.19400024414062px"><div class="notion-simple-table-cell"><code class="notion-inline-code">FLASH_SR-&gt;PGERR</code></div></td></tr><tr class="notion-simple-table-row notion-block-3639995fc21f8075a679f8087262f964"><td class="" style="width:149.19791412353516px"><div class="notion-simple-table-cell"><code class="notion-inline-code">FLASH_ERROR_WRP</code></div></td><td class="" style="width:58.197914123535156px"><div class="notion-simple-table-cell">3</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">写保护错误，试图写入被写保护的 FLASH 页</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">第 16 页，3.4 节，位 4</div></td><td class="" style="width:141.19400024414062px"><div class="notion-simple-table-cell"><code class="notion-inline-code">FLASH_SR-&gt;WRPRTERR</code></div></td></tr><tr class="notion-simple-table-row notion-block-3639995fc21f80fd94eef5ac698551f8"><td class="" style="width:149.19791412353516px"><div class="notion-simple-table-cell"><code class="notion-inline-code">FLASH_COMPLETE</code></div></td><td class="" style="width:58.197914123535156px"><div class="notion-simple-table-cell">4</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">操作成功完成</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">第 16 页，3.4 节，位 5</div></td><td class="" style="width:141.19400024414062px"><div class="notion-simple-table-cell"><code class="notion-inline-code">FLASH_SR-&gt;EOP</code></div></td></tr><tr class="notion-simple-table-row notion-block-3639995fc21f80a59b74efc9e378eea2"><td class="" style="width:149.19791412353516px"><div class="notion-simple-table-cell"><code class="notion-inline-code">FLASH_TIMEOUT</code></div></td><td class="" style="width:58.197914123535156px"><div class="notion-simple-table-cell">5</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">操作超时，这是<b>软件添加的状态</b>，手册中没有</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">无</div></td><td class="" style="width:141.19400024414062px"><div class="notion-simple-table-cell">无</div></td></tr></tbody></table><details class="notion-toggle notion-block-3639995fc21f80e7bca4da9ce1ebf810"><summary>FLASH_SR（闪存状态寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3639995fc21f802e984eeec452f91e9f"><li>FLASH_SR闪存状态寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第16~17页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3639995fc21f800ebb1deb12b5a4208d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A68d0df8c-f47b-4ec2-af54-7a7d5376a980%3Aimage.png?table=block&amp;id=3639995f-c21f-800e-bb1d-eb12b5a4208d&amp;t=3639995f-c21f-800e-bb1d-eb12b5a4208d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3639995fc21f80a19be0e41196731bc2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae747b5e7-ca40-4a92-9b64-bb0485c94779%3Aimage.png?table=block&amp;id=3639995f-c21f-80a1-9be0-e41196731bc2&amp;t=3639995f-c21f-80a1-9be0-e41196731bc2" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3639995fc21f8075b716fb25fdd1b3dd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7cd3f004-247f-4f80-9043-b6987ed564cd%3Aimage.png?table=block&amp;id=3639995f-c21f-8075-b716-fb25fdd1b3dd&amp;t=3639995f-c21f-8075-b716-fb25fdd1b3dd" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-3639995fc21f80368625d78dcc430e81"><summary><code class="notion-inline-code">assert_param(IS_FLASH_ADDRESS(Page_Address))</code></summary><div><ul class="notion-list notion-list-disc notion-block-3639995fc21f80c8824bdcaaa56fe950"><li>含义：检查参数是否合法</li></ul><ul class="notion-list notion-list-disc notion-block-3639995fc21f800aa4a1f662383c097b"><li>IS_FLASH_ADDRESS函数，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_flash.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><table class="notion-simple-table notion-block-3639995fc21f804c9118db047e3743cc"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3639995fc21f80e4972dd184ea2e3989"><td class="" style="width:120px"><div class="notion-simple-table-cell">芯片类型</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">FLASH 容量</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">实际结束地址</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否小于<code class="notion-inline-code">0x080FFFFF</code></div></td></tr><tr class="notion-simple-table-row notion-block-3639995fc21f80c88fe3daec542d85d2"><td class="" style="width:120px"><div class="notion-simple-table-cell">小容量</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">16K~32K</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">0x08007FFF</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✅</div></td></tr><tr class="notion-simple-table-row notion-block-3639995fc21f80baac2ae278f37022dd"><td class="" style="width:120px"><div class="notion-simple-table-cell">中容量</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">64K~128K</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">0x0801FFFF</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✅</div></td></tr><tr class="notion-simple-table-row notion-block-3639995fc21f80a7805fcf0f3044a2eb"><td class="" style="width:120px"><div class="notion-simple-table-cell">大容量</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">256K~512K</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">0x0807FFFF</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✅</div></td></tr><tr class="notion-simple-table-row notion-block-3639995fc21f802f8ce3cc73be0d382f"><td class="" style="width:120px"><div class="notion-simple-table-cell">互联型 (F105/F107)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">128K~256K</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">0x0803FFFF</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✅</div></td></tr><tr class="notion-simple-table-row notion-block-3639995fc21f80eebe42df0b8d22c927"><td class="" style="width:120px"><div class="notion-simple-table-cell">XL 密度 (F10x_XL)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1MB</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">0x080FFFFF</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✅（刚好等于）</div></td></tr></tbody></table><table class="notion-simple-table notion-block-3649995fc21f805cafe6f9668ce2d708"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3649995fc21f80fd84e0d0713e48c060"><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">芯片类型</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">FLASH 总容量</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">BANK 数量</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">BANK1 地址范围</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">BANK2 地址范围</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">你的 C8T6 属于哪类</div></td></tr><tr class="notion-simple-table-row notion-block-3649995fc21f80f89892fdd5d0d59bdd"><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">小容量</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">16K~32K</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">1 个</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">0x08000000~0x08007FFF</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">无</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">❌</div></td></tr><tr class="notion-simple-table-row notion-block-3649995fc21f80959431dd2f127df889"><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">中容量</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">64K~128K</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">1 个</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">0x08000000~0x0801FFFF</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">无</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">✅（C8T6 是 64K）</div></td></tr><tr class="notion-simple-table-row notion-block-3649995fc21f8031b3f5e606fdd3f694"><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">大容量</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">256K~512K</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">1 个</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">0x08000000~0x0807FFFF</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">无</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">❌</div></td></tr><tr class="notion-simple-table-row notion-block-3649995fc21f80978438d64241e23e9f"><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">XL 密度</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">1MB</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">2 个</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">0x08000000~0x0807FFFF（512K）</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">0x08080000~0x080FFFFF（512K）</div></td><td class="" style="width:96.83333333333333px"><div class="notion-simple-table-cell">❌</div></td></tr></tbody></table></div></details><details class="notion-toggle notion-block-3639995fc21f802a8e8ce974bf492768"><summary><span class="notion-red"><code class="notion-inline-code">status</code></span><code class="notion-inline-code"> = FLASH_WaitForLastBank1Operation(EraseTimeout)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3639995fc21f805ba9cdd8d27e019b97"><li>含义：返回当前FLASH的状态</li></ul><ul class="notion-list notion-list-disc notion-block-3639995fc21f805e8ce6d63b5a5363fa"><li>FLASH_waitForLastBank1Operation函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3639995fc21f80a6abf8c28f22beb4b6"><summary><code class="notion-inline-code">status = FLASH_GetBank1Status()</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f8018b803d17569881e5a"><li>含义：获取FLASH的状态</li></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f807db0bad3b43be93d3c"><li>STM32 的 FLASH 擦除和写入操作，<b>不是 CPU 指令直接完成的</b>，而是由一个叫<b> FPEC（闪存编程 / 擦除控制器）</b> 的独立硬件模块完成的。<span class="notion-red"><b>整个流程的大白话类比：</b></span>你（CPU）让一个工人（FPEC）去搬砖（擦除 / 写入 FLASH）：</li><ul class="notion-list notion-list-disc notion-block-3649995fc21f807db0bad3b43be93d3c"><li>你先告诉工人要搬哪块砖（写地址寄存器）</li><li>你喊一声 &quot;开始干活&quot;（写 STRT 位触发操作）</li><li>工人开始干活，同时举起一个 &quot;正在忙&quot; 的牌子（硬件自动将 BSY 位置 1）</li><li>你不能催他，也不能让他同时干另一个活，只能站在旁边等</li><li>工人干完活，放下 &quot;正在忙&quot; 的牌子（硬件自动将 BSY 位清 0）</li><li>如果干活过程中出错了，他会举起 &quot;编程错误&quot; 或 &quot;写保护错误&quot; 的牌子（硬件自动置 PGERR/WRPRTERR 位）</li><li>如果顺利干完，他会举起 &quot;干完了&quot; 的牌子（硬件自动置 EOP 位）</li></ul></ul><ul class="notion-list notion-list-disc notion-block-3639995fc21f801c9ff3cb4445253a70"><li>FLASH_GetBank1Status函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3649995fc21f80bc8ac4e31bc0eb194d"><summary>FLASH_SR（闪存状态寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f80f4802bc53a4fd9d55e"><li>FLASH_SR闪存状态寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第16~17页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f803ba932d461f16584b6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A68d0df8c-f47b-4ec2-af54-7a7d5376a980%3Aimage.png?table=block&amp;id=3649995f-c21f-803b-a932-d461f16584b6&amp;t=3649995f-c21f-803b-a932-d461f16584b6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80d78755de0d08ec8350"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae747b5e7-ca40-4a92-9b64-bb0485c94779%3Aimage.png?table=block&amp;id=3649995f-c21f-80d7-8755-de0d08ec8350&amp;t=3649995f-c21f-80d7-8755-de0d08ec8350" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80158903e4d93353a2e9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7cd3f004-247f-4f80-9043-b6987ed564cd%3Aimage.png?table=block&amp;id=3649995f-c21f-8015-8903-e4d93353a2e9&amp;t=3649995f-c21f-8015-8903-e4d93353a2e9" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details></div></details><details class="notion-toggle notion-block-3649995fc21f8087b200f40c75891baf"><summary><span class="notion-red"><code class="notion-inline-code">status</code></span><code class="notion-inline-code"> = FLASH_WaitForLastBank2Operation(EraseTimeout)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f80db9c8dfce43fa4d6f7"><li>含义：返回当前FLASH的状态</li></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f80559651c2ec84f649a9"><li>FLASH_waitForLastBank2Operation函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3649995fc21f80adb224e3439a5243f3"><summary><code class="notion-inline-code">status = FLASH_GetBank2Status()</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f8035859ad9971f698eda"><li>含义：获取FLASH的状态</li></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f80138380dad250d4aa4c"><li>STM32 的 FLASH 擦除和写入操作，<b>不是 CPU 指令直接完成的</b>，而是由一个叫<b> FPEC（闪存编程 / 擦除控制器）</b> 的独立硬件模块完成的。<span class="notion-red"><b>整个流程的大白话类比：</b></span>你（CPU）让一个工人（FPEC）去搬砖（擦除 / 写入 FLASH）：</li><ul class="notion-list notion-list-disc notion-block-3649995fc21f80138380dad250d4aa4c"><li>你先告诉工人要搬哪块砖（写地址寄存器）</li><li>你喊一声 &quot;开始干活&quot;（写 STRT 位触发操作）</li><li>工人开始干活，同时举起一个 &quot;正在忙&quot; 的牌子（硬件自动将 BSY 位置 1）</li><li>你不能催他，也不能让他同时干另一个活，只能站在旁边等</li><li>工人干完活，放下 &quot;正在忙&quot; 的牌子（硬件自动将 BSY 位清 0）</li><li>如果干活过程中出错了，他会举起 &quot;编程错误&quot; 或 &quot;写保护错误&quot; 的牌子（硬件自动置 PGERR/WRPRTERR 位）</li><li>如果顺利干完，他会举起 &quot;干完了&quot; 的牌子（硬件自动置 EOP 位）</li></ul></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f80578577c369230f62d7"><li>FLASH_GetBank2Status函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3649995fc21f809f8bcecd359ff1d837"><summary>FLASH_SR（闪存状态寄存器）<span class="notion-teal"><b>- - - SR2与之一样，只是名字变了</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f807c939cf7eaefecbe4c"><li>FLASH_SR闪存状态寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第16~17页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80afa210d578a7965455"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A68d0df8c-f47b-4ec2-af54-7a7d5376a980%3Aimage.png?table=block&amp;id=3649995f-c21f-80af-a210-d578a7965455&amp;t=3649995f-c21f-80af-a210-d578a7965455" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80ada2a8ee87c41a1174"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae747b5e7-ca40-4a92-9b64-bb0485c94779%3Aimage.png?table=block&amp;id=3649995f-c21f-80ad-a2a8-ee87c41a1174&amp;t=3649995f-c21f-80ad-a2a8-ee87c41a1174" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f802b8527cdb2f962d448"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7cd3f004-247f-4f80-9043-b6987ed564cd%3Aimage.png?table=block&amp;id=3649995f-c21f-802b-8527-cdb2f962d448&amp;t=3649995f-c21f-802b-8527-cdb2f962d448" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details></div></details><details class="notion-toggle notion-block-3649995fc21f80eaad26cbe3710460a4"><summary><span class="notion-red"><code class="notion-inline-code">status</code></span><code class="notion-inline-code"> = FLASH_WaitForLastOperation(EraseTimeout)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f8047a584cf809517104d"><li>含义：返回当前FLASH的状态</li></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f80cca2cef63f30a372a2"><li>FLASH_waitForLastOperation函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3649995fc21f80868d78e2dadb5dcfcd"><summary><code class="notion-inline-code">status = FLASH_GetBank1Status()</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f80d1804ed50592b4f9da"><li>含义：获取FLASH的状态</li></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f804fb13fed04e326de0c"><li>STM32 的 FLASH 擦除和写入操作，<b>不是 CPU 指令直接完成的</b>，而是由一个叫<b> FPEC（闪存编程 / 擦除控制器）</b> 的独立硬件模块完成的。<span class="notion-red"><b>整个流程的大白话类比：</b></span>你（CPU）让一个工人（FPEC）去搬砖（擦除 / 写入 FLASH）：</li><ul class="notion-list notion-list-disc notion-block-3649995fc21f804fb13fed04e326de0c"><li>你先告诉工人要搬哪块砖（写地址寄存器）</li><li>你喊一声 &quot;开始干活&quot;（写 STRT 位触发操作）</li><li>工人开始干活，同时举起一个 &quot;正在忙&quot; 的牌子（硬件自动将 BSY 位置 1）</li><li>你不能催他，也不能让他同时干另一个活，只能站在旁边等</li><li>工人干完活，放下 &quot;正在忙&quot; 的牌子（硬件自动将 BSY 位清 0）</li><li>如果干活过程中出错了，他会举起 &quot;编程错误&quot; 或 &quot;写保护错误&quot; 的牌子（硬件自动置 PGERR/WRPRTERR 位）</li><li>如果顺利干完，他会举起 &quot;干完了&quot; 的牌子（硬件自动置 EOP 位）</li></ul></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f80d88dd5d5ca9db63c01"><li>FLASH_GetBank1Status函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3649995fc21f8005914cd55abf448392"><summary>FLASH_SR（闪存状态寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f809f8f27ea671286f28f"><li>FLASH_SR闪存状态寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第16~17页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f807e8c72c91f5c96a038"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A68d0df8c-f47b-4ec2-af54-7a7d5376a980%3Aimage.png?table=block&amp;id=3649995f-c21f-807e-8c72-c91f5c96a038&amp;t=3649995f-c21f-807e-8c72-c91f5c96a038" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f806ca293d6252aafe135"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae747b5e7-ca40-4a92-9b64-bb0485c94779%3Aimage.png?table=block&amp;id=3649995f-c21f-806c-a293-d6252aafe135&amp;t=3649995f-c21f-806c-a293-d6252aafe135" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f8079a333d64db35050c8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7cd3f004-247f-4f80-9043-b6987ed564cd%3Aimage.png?table=block&amp;id=3649995f-c21f-8079-a333-d64db35050c8&amp;t=3649995f-c21f-8079-a333-d64db35050c8" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details></div></details></div></details><details class="notion-toggle notion-block-3649995fc21f80ef8a8cc045ce63a0ad"><summary><code class="notion-inline-code">FLASH_ProgramHalfWord(add,dat)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f800f868ee10dd7eb08b1"><li>含义：从指定页的add地址开始写</li></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f8058a139ca3c9617194e"><li>FLASH_ProgramHalfWord函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3649995fc21f80fd8dd7cd3beaca9a39"><summary>FLASH_CR（闪存控制寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f80e1b839d3d5abd01ce4"><li>FLASH_CR闪存控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第17页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80aab538ffc70f843183"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5121839a-03f8-4675-be42-ed7f76ff9011%3Aimage.png?table=block&amp;id=3649995f-c21f-80aa-b538-ffc70f843183&amp;t=3649995f-c21f-80aa-b538-ffc70f843183" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80bc8f7dc10a82c993a5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9faf0d04-ee8c-4299-873d-dc56db80c5fe%3Aimage.png?table=block&amp;id=3649995f-c21f-80bc-8f7d-c10a82c993a5&amp;t=3649995f-c21f-80bc-8f7d-c10a82c993a5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f809dab89ff07d4da7990"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac31fa22b-3cf4-404c-8d9a-491a1b88777e%3Aimage.png?table=block&amp;id=3649995f-c21f-809d-ab89-ff07d4da7990&amp;t=3649995f-c21f-809d-ab89-ff07d4da7990" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3649995fc21f80b79a7ddbce5500c313"><summary><span class="notion-red"><code class="notion-inline-code">status</code></span><code class="notion-inline-code"> = FLASH_WaitForLastBank1Operation(EraseTimeout)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f80b1bdd4c6c971bd2322"><li>含义：返回当前FLASH的状态</li></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f802fa9f1e8f3b9b6c030"><li>FLASH_waitForLastBank1Operation函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3649995fc21f80d4bb83d48b4f5d5562"><summary><code class="notion-inline-code">status = FLASH_GetBank1Status()</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f80e88135dbfd9ac397e8"><li>含义：获取FLASH的状态</li></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f80d29e56fb7dd3fb7393"><li>STM32 的 FLASH 擦除和写入操作，<b>不是 CPU 指令直接完成的</b>，而是由一个叫<b> FPEC（闪存编程 / 擦除控制器）</b> 的独立硬件模块完成的。<span class="notion-red"><b>整个流程的大白话类比：</b></span>你（CPU）让一个工人（FPEC）去搬砖（擦除 / 写入 FLASH）：</li><ul class="notion-list notion-list-disc notion-block-3649995fc21f80d29e56fb7dd3fb7393"><li>你先告诉工人要搬哪块砖（写地址寄存器）</li><li>你喊一声 &quot;开始干活&quot;（写 STRT 位触发操作）</li><li>工人开始干活，同时举起一个 &quot;正在忙&quot; 的牌子（硬件自动将 BSY 位置 1）</li><li>你不能催他，也不能让他同时干另一个活，只能站在旁边等</li><li>工人干完活，放下 &quot;正在忙&quot; 的牌子（硬件自动将 BSY 位清 0）</li><li>如果干活过程中出错了，他会举起 &quot;编程错误&quot; 或 &quot;写保护错误&quot; 的牌子（硬件自动置 PGERR/WRPRTERR 位）</li><li>如果顺利干完，他会举起 &quot;干完了&quot; 的牌子（硬件自动置 EOP 位）</li></ul></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f80f99000f3fe26cc811c"><li>FLASH_GetBank1Status函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3649995fc21f806595ebc7048c0058b7"><summary>FLASH_SR（闪存状态寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f809893c1d49927ad9654"><li>FLASH_SR闪存状态寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第16~17页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f805bb79cc010119a9111"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A68d0df8c-f47b-4ec2-af54-7a7d5376a980%3Aimage.png?table=block&amp;id=3649995f-c21f-805b-b79c-c010119a9111&amp;t=3649995f-c21f-805b-b79c-c010119a9111" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80329d8ee84ceac239c6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae747b5e7-ca40-4a92-9b64-bb0485c94779%3Aimage.png?table=block&amp;id=3649995f-c21f-8032-9d8e-e84ceac239c6&amp;t=3649995f-c21f-8032-9d8e-e84ceac239c6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f809a9900d5e081beb286"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7cd3f004-247f-4f80-9043-b6987ed564cd%3Aimage.png?table=block&amp;id=3649995f-c21f-809a-9900-d5e081beb286&amp;t=3649995f-c21f-809a-9900-d5e081beb286" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details></div></details><details class="notion-toggle notion-block-3649995fc21f8005a5b4c52fb15ae1e6"><summary><span class="notion-red"><code class="notion-inline-code">status</code></span><code class="notion-inline-code"> = FLASH_WaitForLastBank2Operation(EraseTimeout)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f8000aefcc7d2a312860f"><li>含义：返回当前FLASH的状态</li></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f80289289f527462b6bac"><li>FLASH_waitForLastBank2Operation函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3649995fc21f80afbdd7ec4259cb6291"><summary><code class="notion-inline-code">status = FLASH_GetBank2Status()</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f80b1879acb99c2a0ecb2"><li>含义：获取FLASH的状态</li></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f8038b15ed5bd0c70ee31"><li>STM32 的 FLASH 擦除和写入操作，<b>不是 CPU 指令直接完成的</b>，而是由一个叫<b> FPEC（闪存编程 / 擦除控制器）</b> 的独立硬件模块完成的。<span class="notion-red"><b>整个流程的大白话类比：</b></span>你（CPU）让一个工人（FPEC）去搬砖（擦除 / 写入 FLASH）：</li><ul class="notion-list notion-list-disc notion-block-3649995fc21f8038b15ed5bd0c70ee31"><li>你先告诉工人要搬哪块砖（写地址寄存器）</li><li>你喊一声 &quot;开始干活&quot;（写 STRT 位触发操作）</li><li>工人开始干活，同时举起一个 &quot;正在忙&quot; 的牌子（硬件自动将 BSY 位置 1）</li><li>你不能催他，也不能让他同时干另一个活，只能站在旁边等</li><li>工人干完活，放下 &quot;正在忙&quot; 的牌子（硬件自动将 BSY 位清 0）</li><li>如果干活过程中出错了，他会举起 &quot;编程错误&quot; 或 &quot;写保护错误&quot; 的牌子（硬件自动置 PGERR/WRPRTERR 位）</li><li>如果顺利干完，他会举起 &quot;干完了&quot; 的牌子（硬件自动置 EOP 位）</li></ul></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f80668e82eefef0aed6cb"><li>FLASH_GetBank2Status函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3649995fc21f80e89dd3f6cc066297ad"><summary>FLASH_SR（闪存状态寄存器）<span class="notion-teal"><b>- - - SR2与之一样，只是名字变了</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f80838c61cf43ca33cf86"><li>FLASH_SR闪存状态寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第16~17页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80819927dc3b566964e3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A68d0df8c-f47b-4ec2-af54-7a7d5376a980%3Aimage.png?table=block&amp;id=3649995f-c21f-8081-9927-dc3b566964e3&amp;t=3649995f-c21f-8081-9927-dc3b566964e3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f8014aabcc17426bac61e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae747b5e7-ca40-4a92-9b64-bb0485c94779%3Aimage.png?table=block&amp;id=3649995f-c21f-8014-aabc-c17426bac61e&amp;t=3649995f-c21f-8014-aabc-c17426bac61e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f8075abc9d1636a83a007"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7cd3f004-247f-4f80-9043-b6987ed564cd%3Aimage.png?table=block&amp;id=3649995f-c21f-8075-abc9-d1636a83a007&amp;t=3649995f-c21f-8075-abc9-d1636a83a007" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details></div></details><details class="notion-toggle notion-block-3649995fc21f80d1ba48f0b76c96284e"><summary><span class="notion-red"><code class="notion-inline-code">status</code></span><code class="notion-inline-code"> = FLASH_WaitForLastOperation(EraseTimeout)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f80698fb7fee187934c5b"><li>含义：返回当前FLASH的状态</li></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f8093b7f1fe85899316a0"><li>FLASH_waitForLastOperation函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3649995fc21f8047820dc3b1a603d1f7"><summary><code class="notion-inline-code">status = FLASH_GetBank1Status()</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f80c29d0fcaedb3a7d01b"><li>含义：获取FLASH的状态</li></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f80468fd4d5860d468e8d"><li>STM32 的 FLASH 擦除和写入操作，<b>不是 CPU 指令直接完成的</b>，而是由一个叫<b> FPEC（闪存编程 / 擦除控制器）</b> 的独立硬件模块完成的。<span class="notion-red"><b>整个流程的大白话类比：</b></span>你（CPU）让一个工人（FPEC）去搬砖（擦除 / 写入 FLASH）：</li><ul class="notion-list notion-list-disc notion-block-3649995fc21f80468fd4d5860d468e8d"><li>你先告诉工人要搬哪块砖（写地址寄存器）</li><li>你喊一声 &quot;开始干活&quot;（写 STRT 位触发操作）</li><li>工人开始干活，同时举起一个 &quot;正在忙&quot; 的牌子（硬件自动将 BSY 位置 1）</li><li>你不能催他，也不能让他同时干另一个活，只能站在旁边等</li><li>工人干完活，放下 &quot;正在忙&quot; 的牌子（硬件自动将 BSY 位清 0）</li><li>如果干活过程中出错了，他会举起 &quot;编程错误&quot; 或 &quot;写保护错误&quot; 的牌子（硬件自动置 PGERR/WRPRTERR 位）</li><li>如果顺利干完，他会举起 &quot;干完了&quot; 的牌子（硬件自动置 EOP 位）</li></ul></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f8099a5d8d78b155d8cec"><li>FLASH_GetBank1Status函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3649995fc21f80479311d98a58c5a123"><summary>FLASH_SR（闪存状态寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f8017a80cee29caa3f90c"><li>FLASH_SR闪存状态寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第16~17页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80d9a8b0c60ad460fc1e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A68d0df8c-f47b-4ec2-af54-7a7d5376a980%3Aimage.png?table=block&amp;id=3649995f-c21f-80d9-a8b0-c60ad460fc1e&amp;t=3649995f-c21f-80d9-a8b0-c60ad460fc1e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80638aacfa17e9b30d0e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae747b5e7-ca40-4a92-9b64-bb0485c94779%3Aimage.png?table=block&amp;id=3649995f-c21f-8063-8aac-fa17e9b30d0e&amp;t=3649995f-c21f-8063-8aac-fa17e9b30d0e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f807ba3e7e75abfdcff68"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7cd3f004-247f-4f80-9043-b6987ed564cd%3Aimage.png?table=block&amp;id=3649995f-c21f-807b-a3e7-e75abfdcff68&amp;t=3649995f-c21f-807b-a3e7-e75abfdcff68" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details></div></details></div></details><details class="notion-toggle notion-block-3649995fc21f80928fc0d9c11bbe7585"><summary><code class="notion-inline-code">FLASH_Lock()</code></summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f80488ccfeb878cadae6f"><li>含义：锁定FLASH编程擦除控制器</li></ul><ul class="notion-list notion-list-disc notion-block-3649995fc21f805c8251e612bd5cfac9"><li>FLASH_Lock函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_flash.c（<span class="notion-default">外设固体库文件</span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3649995fc21f804f90c9ec9134504bfc"><summary>FLASH_CR（闪存控制寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3649995fc21f80a194c9c073fcd2054a"><li>FLASH_CR闪存控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">STM32F10xxx闪存编程手册第17页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f807bae8bff611e7b2911"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5121839a-03f8-4675-be42-ed7f76ff9011%3Aimage.png?table=block&amp;id=3649995f-c21f-807b-ae8b-ff611e7b2911&amp;t=3649995f-c21f-807b-ae8b-ff611e7b2911" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80c597e4d8ae63a55ce8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9faf0d04-ee8c-4299-873d-dc56db80c5fe%3Aimage.png?table=block&amp;id=3649995f-c21f-80c5-97e4-d8ae63a55ce8&amp;t=3649995f-c21f-80c5-97e4-d8ae63a55ce8" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3649995fc21f80d1bb5bf59dc013db34"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac31fa22b-3cf4-404c-8d9a-491a1b88777e%3Aimage.png?table=block&amp;id=3649995f-c21f-80d1-bb5b-f59dc013db34&amp;t=3649995f-c21f-80d1-bb5b-f59dc013db34" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><div class="notion-blank notion-block-3659995fc21f80188cd5dc81a38e667f"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3659995fc21f805aa456f442e3223535" data-id="3659995fc21f805aa456f442e3223535"><span><div id="3659995fc21f805aa456f442e3223535" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3659995fc21f805aa456f442e3223535" title="四、蜂鸣器驱动程序和MIDI音乐播放程序"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">四、蜂鸣器驱动程序和MIDI音乐播放程序</span></span></h2><div class="notion-text notion-block-3659995fc21f801d9943e090c83d2238"><span class="notion-red"><span class="notion-blue_background"><b>buzzer.c代码文件：</b></span></span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3659995fc21f80c98599fb747fe1af1f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A751400ba-1c02-459a-8844-fd577f1d09f9%3Aimage.png?table=block&amp;id=3659995f-c21f-80c9-8599-fb747fe1af1f&amp;t=3659995f-c21f-80c9-8599-fb747fe1af1f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3659995fc21f803d91c7c8549e2eb379"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4f618edb-6656-4238-8b21-68f40fb1cdbd%3Aimage.png?table=block&amp;id=3659995f-c21f-803d-91c7-c8549e2eb379&amp;t=3659995f-c21f-803d-91c7-c8549e2eb379" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3659995fc21f808d8dc6dadfd4ec880b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A58649cb9-082a-4126-97b9-ad723ed26d91%3Aimage.png?table=block&amp;id=3659995f-c21f-808d-8dc6-dadfd4ec880b&amp;t=3659995f-c21f-808d-8dc6-dadfd4ec880b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3659995fc21f8074b8d4d6ca7b3acb8c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac54c7b3a-f762-424a-b611-af8a4fd342b2%3Aimage.png?table=block&amp;id=3659995f-c21f-8074-b8d4-d6ca7b3acb8c&amp;t=3659995f-c21f-8074-b8d4-d6ca7b3acb8c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-3659995fc21f80b3be77f0313ddb573a"><span class="notion-red"><span class="notion-blue_background"><b>buzzer.h代码文件：</b></span></span></div><div class="notion-text notion-block-3659995fc21f8004a355c15ccbb42278"><span class="notion-red"><span class="notion-blue_background"><b>main.c部分代码文件：</b></span></span></div><div class="notion-blank notion-block-3669995fc21f80f9abe3c869e6eb6389"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3659995fc21f80539158dd7974fcc183" data-id="3659995fc21f80539158dd7974fcc183"><span><div id="3659995fc21f80539158dd7974fcc183" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3659995fc21f80539158dd7974fcc183" title="五、USART串口发送程序"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">五、USART串口发送程序</span></span></h2><div class="notion-text notion-block-3669995fc21f80d893a7e1686908f5ec"><span class="notion-red"><span class="notion-blue_background"><b>main.c代码文件：</b></span></span></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3669995fc21f80bdb767d94c098419db" data-id="3669995fc21f80bdb767d94c098419db"><span><div id="3669995fc21f80bdb767d94c098419db" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3669995fc21f80bdb767d94c098419db" title="5.1 USART1_Init(115200)和USART1_printf(&quot;STM32 %d %d &quot;,a,b)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">5.1 USART1_Init(115200)和USART1_printf(&quot;STM32 %d %d &quot;,a,b)</span></span></h3><ul class="notion-list notion-list-disc notion-block-3679995fc21f8015a00be181bcfb4168"><li>usart.h代码文件：</li></ul><ul class="notion-list notion-list-disc notion-block-3669995fc21f8057900beb9dc5e0e4ab"><li>USART1_Init函数和USART1_printf函数，出自usart.c文件</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3679995fc21f8082bbfad97a47a071ee" data-id="3679995fc21f8082bbfad97a47a071ee"><span><div id="3679995fc21f8082bbfad97a47a071ee" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3679995fc21f8082bbfad97a47a071ee" title="半主机模式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">半主机模式</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3689995fc21f805fbb1fdb102cb47e1b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A85a505df-a399-4fd1-a3fc-f8cca1708b34%3Aimage.png?table=block&amp;id=3689995f-c21f-805f-bb1f-db102cb47e1b&amp;t=3689995f-c21f-805f-bb1f-db102cb47e1b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3689995fc21f80a0a170e417d6f29263" data-id="3689995fc21f80a0a170e417d6f29263"><span><div id="3689995fc21f80a0a170e417d6f29263" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3689995fc21f80a0a170e417d6f29263" title="#if 1 #endif"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">#if 1 #endif</span></span></h4><ul class="notion-list notion-list-disc notion-block-3689995fc21f804d9d9febc8e1f12b7b"><li>这是一个代码开关：</li><ul class="notion-list notion-list-disc notion-block-3689995fc21f804d9d9febc8e1f12b7b"><li>写<code class="notion-inline-code">#if 1</code>：开启 printf 重定向，能用 printf 打印到串口</li><li>写<code class="notion-inline-code">#if 0</code>：关闭 printf 重定向，回到默认的半主机模式</li></ul></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3689995fc21f80da9924dab0e6c0e5f0" data-id="3689995fc21f80da9924dab0e6c0e5f0"><span><div id="3689995fc21f80da9924dab0e6c0e5f0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3689995fc21f80da9924dab0e6c0e5f0" title="#progma import(__use_no_semihosting) "><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">#progma import(__use_no_semihosting) </span></span></h4><ul class="notion-list notion-list-disc notion-block-3689995fc21f806bb2f7d8e88bc6aac1"><li>这是给编译器下的命令：&quot;我明确告诉你，不要用半主机模式！所有输入输出我自己处理，你别瞎操心。&quot;如果不写这一行，编译器会默认使用半主机模式，拔了调试器程序就会卡死。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3689995fc21f803e9a32e35dfe33524d" data-id="3689995fc21f803e9a32e35dfe33524d"><span><div id="3689995fc21f803e9a32e35dfe33524d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3689995fc21f803e9a32e35dfe33524d" title="struct __FILE {int handle;};FILE __stdout;"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">struct __FILE {int handle;};FILE __stdout;</span></span></h4><ul class="notion-list notion-list-disc notion-block-3689995fc21f801685ded0c1a8b8c969"><li>为什么要写？</li><ul class="notion-list notion-list-disc notion-block-3689995fc21f801685ded0c1a8b8c969"><li><code class="notion-inline-code">printf</code>是 C 标准库的函数，标准库规定：所有输出都要写到一个叫<code class="notion-inline-code">FILE</code>的 &quot;文件&quot; 里</li><li>电脑上的<code class="notion-inline-code">FILE</code>对应屏幕、硬盘文件等</li><li>单片机上没有这些东西，但标准库还是要求必须有一个<code class="notion-inline-code">FILE</code>对象</li><li>所以我们随便定义一个空的<code class="notion-inline-code">FILE</code>结构体，再定义一个<code class="notion-inline-code">__stdout</code>对象（标准输出）</li><li>就像你去银行办业务，银行要求你填一张表，虽然有些空你根本不需要填，但你必须填上 &quot;无&quot;，不然不给你办</li></ul></ul><ul class="notion-list notion-list-disc notion-block-3689995fc21f80a48cb6f48c99ce667b"><li>FILE是<code class="notion-inline-code">struct __FILE</code>的别名，<code class="notion-inline-code">struct __FILE</code>是结构体的真名，而定义别名这一步，在stdio.h已经写好了，<code class="notion-inline-code">__stdout</code>不能改</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3689995fc21f8053a145c3ce55635760" data-id="3689995fc21f8053a145c3ce55635760"><span><div id="3689995fc21f8053a145c3ce55635760" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3689995fc21f8053a145c3ce55635760" title="_sys_exit(int x){x = x;}"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">_sys_exit(int x){x = x;}</span></span></h4><ul class="notion-list notion-list-disc notion-block-3689995fc21f80c2b661f4db10ce1cc7"><li>为什么要写？</li><ul class="notion-list notion-list-disc notion-block-3689995fc21f80c2b661f4db10ce1cc7"><li>标准库的<code class="notion-inline-code">printf</code>函数在某些情况下会调用<code class="notion-inline-code">_sys_exit()</code>（程序退出函数）</li><li>电脑上的程序可以退出（比如关闭窗口），但单片机的程序是死循环，永远不会退出</li><li>所以我们写一个空的<code class="notion-inline-code">_sys_exit()</code>函数，告诉标准库：&quot;我不需要退出，你调用我也什么都不做&quot;</li><li>不写的话，编译器会报 &quot;未定义引用_sys_exit&quot; 的错误</li></ul></ul><ul class="notion-list notion-list-disc notion-block-3689995fc21f807791e1e8579e6bd764"><li> “系统异常、程序崩溃、程序要退出” 时准备的函数</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3689995fc21f80a0bc46cdbfca3f71fb" data-id="3689995fc21f80a0bc46cdbfca3f71fb"><span><div id="3689995fc21f80a0bc46cdbfca3f71fb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3689995fc21f80a0bc46cdbfca3f71fb" title="int fputc(int ch, FILE *f){while((USART_n-&gt;SR&amp;0X40)==0); USART_n-&gt;DR = (u8) ch;  return ch;}"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">int fputc(int ch, FILE *f){while((USART_n-&gt;SR&amp;0X40)==0); USART_n-&gt;DR = (u8) ch;  return ch;}</span></span></h4><ul class="notion-list notion-list-disc notion-block-3689995fc21f80a4b3bbe623f8edb5d5"><li>fputc函数的原理：<code class="notion-inline-code">printf</code>函数本身并不直接输出字符，它会把要输出的字符串拆成一个一个的字符，然后<b>每一个字符都调用一次</b><code class="notion-inline-code"><b>fputc</b></code><b>函数</b>来输出。原来的<code class="notion-inline-code">fputc</code>是标准库写的，会把字符输出到电脑屏幕。现在我们<b>重写了这个函数</b>，让它把字符发送到 STM32 的串口上。</li></ul><details class="notion-toggle notion-block-3689995fc21f807098c5ebd6b9688807"><summary><code class="notion-inline-code">while((USART_n-&gt;SR&amp;0X40)==0);</code></summary><div><ul class="notion-list notion-list-disc notion-block-3689995fc21f80d8934bd874b39c231c"><li>大白话：<b>等串口把上一个字符发完。</b></li></ul><ul class="notion-list notion-list-disc notion-block-3689995fc21f80978e92d7c9dc956473"><li>类比：你用快递柜寄快递，必须等上一个人把柜门关上，你才能打开下一个柜门。<code class="notion-inline-code">USART_n-&gt;SR</code>是串口的状态寄存器，0x40（0100 0000）是第 6 位（TC 位，发送完成位）。当 TC 位为 1 时，表示上一个字符已经发送完毕，可以发下一个了。如果不等就直接写，会导致字符丢失。</li></ul><ul class="notion-list notion-list-disc notion-block-3689995fc21f8033a6aff6f2037986ed"><li>TC位=1（发送完成）- - - 退出循环，TC位=0（正在发送，还没完）- - - 等着</li></ul><ul class="notion-list notion-list-disc notion-block-3689995fc21f80299809e04420dc299d"><li>USART_n值为0x40013800，出自usart.h</li></ul><div class="notion-text notion-block-3689995fc21f804e91bbee00241950f7">且USART1值为0x40013800，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3689995fc21f80edacb3c848cd8c8396"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3e94cc7c-1e70-431d-b0c5-f3970a0710c2%3Aimage.png?table=block&amp;id=3689995f-c21f-80ed-acb3-c848cd8c8396&amp;t=3689995f-c21f-80ed-acb3-c848cd8c8396" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3689995fc21f80f7bd7ad9f685e8b3dd"><summary><code class="notion-inline-code">SART_n-&gt;DR = (u8) ch;</code></summary><div><ul class="notion-list notion-list-disc notion-block-3689995fc21f809dbf35f6d0c0d5ff9d"><li>大白话：<b>把要发送的字符扔给串口，让它发出去。</b></li></ul><ul class="notion-list notion-list-disc notion-block-3689995fc21f80e98421db27c24fee99"><li><code class="notion-inline-code">USART_n-&gt;DR</code>是串口的数据寄存器，你往里面写一个字符，串口硬件就会自动把它转换成电信号发送出去。</li></ul></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3689995fc21f80c3bc18e734cd5ebfdf" data-id="3689995fc21f80c3bc18e734cd5ebfdf"><span><div id="3689995fc21f80c3bc18e734cd5ebfdf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3689995fc21f80c3bc18e734cd5ebfdf" title="#if EN_USART1或EN_USART2或EN_USART3"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">#if EN_USART1或EN_USART2或EN_USART3</span></span></h4><ul class="notion-list notion-list-disc notion-block-3729995fc21f80e5bda2cb2a2956e9af"><li>表示判断串口1或2或3是使能状态还是禁止状态</li></ul><ul class="notion-list notion-list-disc notion-block-3729995fc21f8010b9f6ff1d3e73a1f3"><li>EN_USART1、EN_USART2、EN_USART3，出自usart.h文件</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3729995fc21f808ca400c4b63e9c21fb" data-id="3729995fc21f808ca400c4b63e9c21fb"><span><div id="3729995fc21f808ca400c4b63e9c21fb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3729995fc21f808ca400c4b63e9c21fb" title="u8 USART1_RX_BUF[USART1_REC_LEN]或USART2_RX_BUF[USART2_REC_LEN]或USART3_RX_BUF[USART3_REC_LEN]"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">u8 USART1_RX_BUF[USART1_REC_LEN]或USART2_RX_BUF[USART2_REC_LEN]或USART3_RX_BUF[USART3_REC_LEN]</span></span></h4><ul class="notion-list notion-list-disc notion-block-3729995fc21f8096b7c9f8568a85e3fe"><li>表示定义串口的接受缓冲区（长度在200字节）</li></ul><ul class="notion-list notion-list-disc notion-block-3729995fc21f80d5a7b1c8e49496ffc6"><li>USART1_REC_LEN、USART2_REC_LEN、USART3_REC_LEN，出自usart.h文件</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3729995fc21f808e818beeea4f7e3f63" data-id="3729995fc21f808e818beeea4f7e3f63"><span><div id="3729995fc21f808e818beeea4f7e3f63" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3729995fc21f808e818beeea4f7e3f63" title="u16 USART1_RX_STA=0或USART2_RX_STA=0或USART3_RX_STA=0"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">u16 USART1_RX_STA=0或USART2_RX_STA=0或USART3_RX_STA=0</span></span></h4><ul class="notion-list notion-list-disc notion-block-3729995fc21f80759534f962cb2862e0"><li>表示定义无符号的16位的变量名USART1_RX_STA或USART2_RX_STA或USART3_RX_STA</li></ul><ul class="notion-list notion-list-disc notion-block-3729995fc21f80dfb2d6f837c555b418"><li>USART1_RX_STA、USART2_RX_STA、USART3_RX_STA出自usart.h文件</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3729995fc21f805a8862cd7a4a741afe" data-id="3729995fc21f805a8862cd7a4a741afe"><span><div id="3729995fc21f805a8862cd7a4a741afe" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3729995fc21f805a8862cd7a4a741afe" title="va-list arg_ptr"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">va-list arg_ptr</span></span></h4><ul class="notion-list notion-list-disc notion-block-3739995fc21f80309d8dce87df38795c"><li>va-list来自于<code class="notion-inline-code">#include &lt;stdarg.h&gt;</code> 头文件中</li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f8071a551ec3502f021c4"><li>含义：专门找可变参数的指针，指向函数里那些“不确定数量的参数”，就比如<code class="notion-inline-code">USART1_printf(”数字：%d，字符串：%s”,123,”abc”)</code>，其中<code class="notion-inline-code">123</code>和<code class="notion-inline-code">”abc”</code>就是数量不固定、类型也不固定的参数，所以<code class="notion-inline-code">123</code>和<code class="notion-inline-code">”abc”</code>在函数参数中一律按<code class="notion-inline-code">USART1_printf(char *fmt, …)</code>写</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3739995fc21f80af81f0f7da33e9bceb" data-id="3739995fc21f80af81f0f7da33e9bceb"><span><div id="3739995fc21f80af81f0f7da33e9bceb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3739995fc21f80af81f0f7da33e9bceb" title="va_start(arg_ptr, fmt)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">va_start(arg_ptr, fmt)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3739995fc21f80d3b00bf41550605647"><li>va_start来自于<code class="notion-inline-code">#include &lt;stdarg.h&gt;</code> 头文件中</li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f80f4a642d37948d2b13e"><li>含义：指向fmt后面的第一个可变参数（也就是上例中的<code class="notion-inline-code">123</code>），即从fmt这个参后面开始找</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3739995fc21f804eaecfc7a0ec67aab9" data-id="3739995fc21f804eaecfc7a0ec67aab9"><span><div id="3739995fc21f804eaecfc7a0ec67aab9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3739995fc21f804eaecfc7a0ec67aab9" title="while((i &lt; USART1_REC_LEN) &amp;&amp; (I &lt; strlen(buffer)))"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">while((i &lt; USART1_REC_LEN) &amp;&amp; (I &lt; strlen(buffer)))</span></span></h4><ul class="notion-list notion-list-disc notion-block-3739995fc21f804d9b32d3768af7579c"><li>含义：循环发送草稿纸上的每个字符，直到发完为止</li><ul class="notion-list notion-list-disc notion-block-3739995fc21f804d9b32d3768af7579c"><li>i &lt; USART1_REC_LEN：防止超过草稿纸的长度</li><li>i &lt; strlen(buffer)：防止超过buffer的本身长度，即防止发送多余的空字符</li></ul></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3739995fc21f804ca0bcefe55203df85" data-id="3739995fc21f804ca0bcefe55203df85"><span><div id="3739995fc21f804ca0bcefe55203df85" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3739995fc21f804ca0bcefe55203df85" title="vsnprintf(buffer, USART1_REC_LEN+1, fmt, arg_ptr)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">vsnprintf(buffer, USART1_REC_LEN+1, fmt, arg_ptr)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3739995fc21f8056b432f3cfb071516f"><li>vsnprintf来自于<code class="notion-inline-code">#include &quot;stdio.h&quot;</code> 头文件中</li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f803cbcadd5b6b422d0a1"><li>含义：如上例，把%d、%s这些占位符，替换成真正的参数，拼成完整的字符串</li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f8007a6bac7386fc08295"><li>参数</li><ul class="notion-list notion-list-disc notion-block-3739995fc21f8007a6bac7386fc08295"><li>buffer：草稿纸，把拼好的字符串存在这里</li><li>USART1_REC_LEN+1：草稿纸的最大长度，防止写超了（这里的加1代表是为了存字符串结尾的<code class="notion-inline-code">&#x27;\0&#x27;</code>）</li><li>fmt：格式化字符串（如”数字：%d，字符串：%s”）</li><li>arg_ptr：指向可变参数的探测器</li></ul></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3739995fc21f807ba9e8d0006ee34114" data-id="3739995fc21f807ba9e8d0006ee34114"><span><div id="3739995fc21f807ba9e8d0006ee34114" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3739995fc21f807ba9e8d0006ee34114" title="USART_SendData(USART1, (u8)buffer[i++])"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">USART_SendData(USART1, (u8)buffer[i++])</span></span></h4><ul class="notion-list notion-list-disc notion-block-3739995fc21f80668280ee0ce4ee3188"><li>含义：将草稿纸上的第i个字符发给串口1，然后计算器i加1</li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f80da8e06f596f3dd6ec2"><li>USART_SendData函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_usart.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3739995fc21f80a79817d089afe3d624"><summary><code class="notion-inline-code">IS_USART_ALL_PERIPH(USARTx)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3739995fc21f80859660e548807b5a49"><li>IS_USART_ALL_PERIPH函数，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-3739995fc21f8059a76be34013f5eec6"><summary><code class="notion-inline-code">IS_USART_DATA(Data)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3739995fc21f80c9867fcc572653b9a4"><li>IS_USART_DATA函数，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f800d9e80f21f08ff8441"><li>为什么是小于等于0x1FF（511）呢？</li><ul class="notion-list notion-list-disc notion-block-3739995fc21f800d9e80f21f08ff8441"><li>源于这个数据是要存入数据寄存器（USART_DR）中，且该寄存器用于存数据的位有9位，即DR[8:0]</li><li>USART_DR数据寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第541~542页</span></b></span></em>有定义</li><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3739995fc21f809f94d8d641d3a6491a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2990047a-1ece-4a95-9365-52de9b9fb797%3Aimage.png?table=block&amp;id=3739995f-c21f-809f-94d8-d641d3a6491a&amp;t=3739995f-c21f-809f-94d8-d641d3a6491a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3739995fc21f80abafbbd5c5158348ef"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A14848382-ad1d-432e-be79-1b329ccabb7d%3Aimage.png?table=block&amp;id=3739995f-c21f-80ab-afbb-d5c5158348ef&amp;t=3739995f-c21f-80ab-afbb-d5c5158348ef" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3739995fc21f8068bb25c2a77fe047d5" data-id="3739995fc21f8068bb25c2a77fe047d5"><span><div id="3739995fc21f8068bb25c2a77fe047d5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3739995fc21f8068bb25c2a77fe047d5" title="while(USART_GetFlagStatus(USART1, USART_FLAG_TC) == RESET)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">while(USART_GetFlagStatus(USART1, USART_FLAG_TC) == RESET)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3739995fc21f80dea8b7eaebb805f154"><li>含义：等串口把这个字符发完，再发下一个不然会丢字符</li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f802bb8f8f754b111bb12"><li>USART_GetFlagStatus函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_usart.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f80859efce06e01ee7cf1"><li>USART_TypeDef，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f80afb3ecd4a77f6a65fa"><li>USART_FLAG_TC（发送完成）、USART_FLAG_CTS（CTS标志）、IS_USART_FLAG函数、IS_USART_123_PERIPH函数，都出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_usart.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3739995fc21f8011a52fc8839465b2c1"><summary>状态寄存器（USART_SR）</summary><div><ul class="notion-list notion-list-disc notion-block-3739995fc21f8008b4dce01e30badc00"><li>USART_SR状态寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第540~541页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3739995fc21f800b802afc74e21bbbdb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6a504804-16cb-4822-a9cf-96a170579837%3Aimage.png?table=block&amp;id=3739995f-c21f-800b-802a-fc74e21bbbdb&amp;t=3739995f-c21f-800b-802a-fc74e21bbbdb" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3739995fc21f800186d6d625adaf8b29"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:593.0012817382812px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A80fff406-5145-4438-baec-35041611620e%3Aimage.png?table=block&amp;id=3739995f-c21f-8001-86d6-d625adaf8b29&amp;t=3739995f-c21f-8001-86d6-d625adaf8b29" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3739995fc21f80b6b1add724019212a4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:566.0025634765625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abd3d401a-d3bf-4fe7-8bc0-b4e746d50024%3Aimage.png?table=block&amp;id=3739995f-c21f-80b6-b1ad-d724019212a4&amp;t=3739995f-c21f-80b6-b1ad-d724019212a4" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3739995fc21f80a88189f56b20f01e10"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:583.0012817382812px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A87ac7c6a-d5d8-422f-a9d0-ae8f860b42e6%3Aimage.png?table=block&amp;id=3739995f-c21f-80a8-8189-f56b20f01e10&amp;t=3739995f-c21f-80a8-8189-f56b20f01e10" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3739995fc21f80ea8132f3b47576b381" data-id="3739995fc21f80ea8132f3b47576b381"><span><div id="3739995fc21f80ea8132f3b47576b381" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3739995fc21f80ea8132f3b47576b381" title="va_end(arg_ptr)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">va_end(arg_ptr)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3739995fc21f80cbbe81d4a8788a9666"><li>va_end来自于<code class="notion-inline-code">#include &lt;stdarg.h&gt;</code> 头文件中</li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f80c7ad7ed7995bf1c6b7"><li>含义：用完探测器了，把它收起来，即结束可变参数使用</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3739995fc21f80559882e175ea14641f" data-id="3739995fc21f80559882e175ea14641f"><span><div id="3739995fc21f80559882e175ea14641f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3739995fc21f80559882e175ea14641f" title="GPIO_InitTypeDef GPIO_InitStructure"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">GPIO_InitTypeDef GPIO_InitStructure</span></span></h4><ul class="notion-list notion-list-disc notion-block-3739995fc21f8068b3f8eb471ec0a2df"><li><span class="notion-red"><b>含义：</b></span>创建GPIO_InitTypeDef的变量</li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f80ab8e78e2f931cd34e8"><li>GPIO_InitTypeDef这个类型，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_gpio.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3739995fc21f807981f4d4aa75c33f16" data-id="3739995fc21f807981f4d4aa75c33f16"><span><div id="3739995fc21f807981f4d4aa75c33f16" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3739995fc21f807981f4d4aa75c33f16" title="USART_InitTypeDef USART_InitStructure"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">USART_InitTypeDef USART_InitStructure</span></span></h4><ul class="notion-list notion-list-disc notion-block-3739995fc21f801fa63aea0654a45cd8"><li><span class="notion-red"><b>含义：</b></span>创建USART_InitTypeDef的变量</li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f806883e8c7ab4839687c"><li>USART_InitTypeDef这个类型，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_usart.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3739995fc21f80e48664f865e7725f0d" data-id="3739995fc21f80e48664f865e7725f0d"><span><div id="3739995fc21f80e48664f865e7725f0d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3739995fc21f80e48664f865e7725f0d" title="NVIC_InitTypeDef NVIC_InitStructure"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">NVIC_InitTypeDef NVIC_InitStructure</span></span></h4><ul class="notion-list notion-list-disc notion-block-3739995fc21f802a9143d656ca39ac46"><li><span class="notion-red"><b>含义：</b></span>创建NVIC_InitTypeDef的变量</li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f80989202fc3adeb312d5"><li>NVIC_InitTypeDef这个类型，出自Lib文件夹下的inc文件夹下的内核相关的misc.h（跟SVIC和SysTICK相关的函数）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3739995fc21f801dbe2fdb3fc15fb86d" data-id="3739995fc21f801dbe2fdb3fc15fb86d"><span><div id="3739995fc21f801dbe2fdb3fc15fb86d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3739995fc21f801dbe2fdb3fc15fb86d" title="NVIC_PriorityGroupConfig(NVIC_PriorityGroup_0)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">NVIC_PriorityGroupConfig(NVIC_PriorityGroup_0)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3739995fc21f80cba3baf4aaefec682e"><li>含义：全局设置中断优先级分组为 Group_0，在此情况下，优先级无论设置什么，都最终变成0，而子优先级的范围为0~15</li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f80e4bd21e5595d9f1bcc"><li>参数NVIC_PriorityGroup_0，出自Lib文件夹下的inc文件夹下的内核相关的misc.h（跟SVIC和SysTICK相关的函数）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><table class="notion-simple-table notion-block-3739995fc21f8054abe3cecc201ad1ef"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3739995fc21f80699ce2c2380646ff26"><td class="" style="width:141.4px"><div class="notion-simple-table-cell">分组号</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">抢占优先级占几位</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">子优先级占几位</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">抢占优先级范围</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">子优先级范围</div></td></tr><tr class="notion-simple-table-row notion-block-3739995fc21f805ba5e4d3dd19c1071a"><td class="" style="width:141.4px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">0 位</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">4 位</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">只有 0 级</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">0~15</div></td></tr><tr class="notion-simple-table-row notion-block-3739995fc21f80ada888d71e9ede6073"><td class="" style="width:141.4px"><div class="notion-simple-table-cell">1</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">1 位</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">3 位</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">0~1</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">0~7</div></td></tr><tr class="notion-simple-table-row notion-block-3739995fc21f80d48054f7901116bd56"><td class="" style="width:141.4px"><div class="notion-simple-table-cell">2</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">2 位</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">2 位</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">0~3</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">0~3</div></td></tr><tr class="notion-simple-table-row notion-block-3739995fc21f80248948ceecfd4a7254"><td class="" style="width:141.4px"><div class="notion-simple-table-cell">3</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">3 位</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">1 位</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">0~7</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">0~1</div></td></tr><tr class="notion-simple-table-row notion-block-3739995fc21f805b9c9ed0166547e6b8"><td class="" style="width:141.4px"><div class="notion-simple-table-cell">4</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">4 位</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">0 位</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">0~15</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">只有 0 级</div></td></tr></tbody></table><ul class="notion-list notion-list-disc notion-block-3739995fc21f80cb9c2ae51669ca696f"><li>NVIC_PriorityGroupConfig函数，出自Lib文件夹下的src文件夹下的内核相关的misc.c（跟SVIC和SysTICK相关的函数）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3739995fc21f80d69392d7ce0856fd0e"><summary><code class="notion-inline-code">SCB-&gt;AIRCR</code></summary><div><ul class="notion-list notion-list-disc notion-block-3739995fc21f803a999fdfb09efcbc7f"><li>SCB，出自CMSIS文件夹下的内核相关的core_cm3.h（内核寄存器定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3739995fc21f80fba098c429d5d23812"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2ea4fb0c-326d-4000-99f4-b07f3c192df0%3Aimage.png?table=block&amp;id=3739995f-c21f-80fb-a098-c429d5d23812&amp;t=3739995f-c21f-80fb-a098-c429d5d23812" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3739995fc21f80529351d01c955a3141"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aadc42eca-a3c8-4401-acb9-fd39200479d8%3Aimage.png?table=block&amp;id=3739995f-c21f-8052-9351-d01c955a3141&amp;t=3739995f-c21f-8052-9351-d01c955a3141" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3739995fc21f806c8574ca585711f3c4" data-id="3739995fc21f806c8574ca585711f3c4"><span><div id="3739995fc21f806c8574ca585711f3c4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3739995fc21f806c8574ca585711f3c4" title="NVIC_InitStructure.NVIC_IRQChannel = USART1_IRQn"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">NVIC_InitStructure.NVIC_IRQChannel = USART1_IRQn</span></span></h4><ul class="notion-list notion-list-disc notion-block-3739995fc21f80eca813f46ee5eb614d"><li>含义：选择串口1中断通道</li></ul><ul class="notion-list notion-list-disc notion-block-3739995fc21f806bb586d23e22794724"><li>USART1_IRQn，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3739995fc21f8038b404fcb275d0aa15"><summary>以上来源于<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第132~134页</span></b></span></em>有定义</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3739995fc21f8091b511f81e5c06844e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:643.0012817382812px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa3729f30-24c9-4705-80a2-ee784e0d268f%3Aimage.png?table=block&amp;id=3739995f-c21f-8091-b511-f81e5c06844e&amp;t=3739995f-c21f-8091-b511-f81e5c06844e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3739995fc21f80ea9ceec1e2bfc2e58b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:644.4140625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9d4b9a57-a78e-42a3-9098-5701a180f1b3%3Aimage.png?table=block&amp;id=3739995f-c21f-80ea-9cee-c1e2bfc2e58b&amp;t=3739995f-c21f-80ea-9cee-c1e2bfc2e58b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3739995fc21f8043b82cdfade400fa8a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:644.4140625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3a3f9ca2-25af-422e-abad-40abff70f7d7%3Aimage.png?table=block&amp;id=3739995f-c21f-8043-b82c-dfade400fa8a&amp;t=3739995f-c21f-8043-b82c-dfade400fa8a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3739995fc21f80ceb3d1e7c7e4b62389"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:644.4205322265625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae8f1efb5-57bf-4cef-ac84-6fb6b6d3ab0f%3Aimage.png?table=block&amp;id=3739995f-c21f-80ce-b3d1-e7c7e4b62389&amp;t=3739995f-c21f-80ce-b3d1-e7c7e4b62389" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3739995fc21f80bbadadc78034ac9b44" data-id="3739995fc21f80bbadadc78034ac9b44"><span><div id="3739995fc21f80bbadadc78034ac9b44" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3739995fc21f80bbadadc78034ac9b44" title="NVIC_Init(&amp;NVIC_InitStructure)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">NVIC_Init(&amp;NVIC_InitStructure)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3739995fc21f80d9b28cd0db2961d5fb"><li>NVIC_Init函数，出自Lib文件夹下的src文件夹下的内核相关的misc.c（跟SVIC和SysTICK相关的函数）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3759995fc21f807f9455d35f4119a212"><li>示例：</li><ul class="notion-list notion-list-disc notion-block-3759995fc21f807f9455d35f4119a212"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3759995fc21f804fa798e12882d7aac7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afa3086c3-f6ed-4005-85e6-29e382716481%3Aimage.png?table=block&amp;id=3759995f-c21f-804f-a798-e12882d7aac7&amp;t=3759995f-c21f-804f-a798-e12882d7aac7" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><ul class="notion-list notion-list-disc notion-block-3759995fc21f80d3b170e70ecb8b07b9"><li>IS_FUNCTIONAL_STATE函数，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3759995fc21f8084b647fb02281c3267"><li>IS_NVIC_PREEMPTION_PRIORITY函数、IS_NVIC_SUB_PRIORITY函数，都出自Lib文件夹下的inc文件夹下的内核相关的misc.h（跟SVIC和SysTICK相关的函数）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3759995fc21f808b9800c364e0e69588"><summary><code class="notion-inline-code">SCB-&gt;AIRCR</code></summary><div><ul class="notion-list notion-list-disc notion-block-3759995fc21f8066825bcb6c86ef51e5"><li>SCB，出自CMSIS文件夹下的内核相关的core_cm3.h（内核寄存器定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3759995fc21f80c3a05cfee0f7dee216"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2ea4fb0c-326d-4000-99f4-b07f3c192df0%3Aimage.png?table=block&amp;id=3759995f-c21f-80c3-a05c-fee0f7dee216&amp;t=3759995f-c21f-80c3-a05c-fee0f7dee216" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3759995fc21f80ddbca4d863b4ef8c81"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aadc42eca-a3c8-4401-acb9-fd39200479d8%3Aimage.png?table=block&amp;id=3759995f-c21f-80dd-bca4-d863b4ef8c81&amp;t=3759995f-c21f-80dd-bca4-d863b4ef8c81" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3759995fc21f80659e3ef60657d84356"><summary><code class="notion-inline-code">NVIC-&gt;IP、NVIC-&gt;ISER、NVIC-&gt;ICER</code></summary><div><ul class="notion-list notion-list-disc notion-block-3759995fc21f80e8b688eec280dc57da"><li>NVIC，出自CMSIS文件夹下的内核相关的core_cm3.h（内核寄存器定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3759995fc21f8021b7d1d10667974206"><summary><span class="notion-red"><b>RESERVED的作用和计算</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3759995fc21f808e8800d8fdede223b6"><li>作用</li><ul class="notion-list notion-list-disc notion-block-3759995fc21f808e8800d8fdede223b6"><div class="notion-text notion-block-3759995fc21f80f48890f816f256c743"><code class="notion-inline-code">RESERVED</code>（保留区）是<b>ARM官方规定的内存填充机制</b>，目的是让<code class="notion-inline-code">NVIC_Type</code>结构体的<b>每个成员偏移地址</b>，与Cortex-M3内核手册中定义的NVIC寄存器物理地址<b>完全一一对应</b>。</div><div class="notion-text notion-block-3759995fc21f8031be74d17e702a1008">Cortex-M3内核的NVIC寄存器是<b>稀疏分布</b>的（寄存器之间有大量未使用的地址空间），如果没有这些保留区，结构体成员会自动连续排列，导致后续寄存器的偏移地址全部错位，无法正确访问硬件。</div></ul></ul><ul class="notion-list notion-list-disc notion-block-3759995fc21f801c83a5f53685992192"><li>每个RESERVED大小的精确计算</li><ul class="notion-list notion-list-disc notion-block-3759995fc21f801c83a5f53685992192"><div class="notion-text notion-block-3759995fc21f80818136f97370351c87">所有计算基于<b>结构体基地址</b><code class="notion-inline-code"><b>0xE000E100</b></code>，偏移地址均相对于该基地址。</div><li><code class="notion-inline-code">uint32_t</code>类型占<b>4字节</b></li><li><code class="notion-inline-code">uint8_t</code>类型占<b>1字节</b></li><div class="notion-text notion-block-3759995fc21f802795b2dd51ff21386a">（1）<code class="notion-inline-code">RESERVED0[24]</code></div><li><code class="notion-inline-code">ISER[8]</code>总大小：<code class="notion-inline-code">8 × 4 = 32字节</code>，占用地址<code class="notion-inline-code">0x000 ~ 0x01F</code></li><li>下一个寄存器<code class="notion-inline-code">ICER</code>的起始偏移是<code class="notion-inline-code">0x080</code></li><li>中间空白地址范围：<code class="notion-inline-code">0x020 ~ 0x07F</code>，总字节数：<code class="notion-inline-code">0x080 - 0x020 = 0x60 = 96字节</code></li><li>保留区元素个数：<code class="notion-inline-code">96 ÷ 4 = 24</code> → 即<code class="notion-inline-code">RESERVED0[24]</code></li><div class="notion-text notion-block-3759995fc21f80fbb3fcdc00084b69a2">（2） <code class="notion-inline-code">RESERVED1[24]</code></div><li><code class="notion-inline-code">ICER[8]</code>总大小：32字节，占用地址<code class="notion-inline-code">0x080 ~ 0x09F</code></li><li>下一个寄存器<code class="notion-inline-code">ISPR</code>起始偏移：<code class="notion-inline-code">0x100</code></li><li>空白地址：<code class="notion-inline-code">0x0A0 ~ 0x0FF</code>，共96字节</li><li>保留区元素个数：<code class="notion-inline-code">96 ÷ 4 = 24</code> → <code class="notion-inline-code">RESERVED1[24]</code></li><div class="notion-text notion-block-3759995fc21f804585f8cf6efe26f310">（3） <code class="notion-inline-code">RESERVED2[24]</code></div><li>计算逻辑同上，空白地址<code class="notion-inline-code">0x120 ~ 0x17F</code>共96字节</li><li>保留区元素个数：24 → <code class="notion-inline-code">RESERVED2[24]</code></li><div class="notion-text notion-block-3759995fc21f80abab5cf2773f571a13">（4） <code class="notion-inline-code">RESERVED3[24]</code></div><li>空白地址<code class="notion-inline-code">0x1A0 ~ 0x1FF</code>共96字节</li><li>保留区元素个数：24 → <code class="notion-inline-code">RESERVED3[24]</code></li><div class="notion-text notion-block-3759995fc21f80f1b1faebfafe5bd984">（5） <code class="notion-inline-code">RESERVED4[56]</code></div><li><code class="notion-inline-code">IABR[8]</code>总大小：32字节，占用地址<code class="notion-inline-code">0x200 ~ 0x21F</code></li><li>下一个寄存器<code class="notion-inline-code">IP</code>起始偏移：<code class="notion-inline-code">0x300</code></li><li>空白地址：<code class="notion-inline-code">0x220 ~ 0x2FF</code>，总字节数：<code class="notion-inline-code">0x300 - 0x220 = 0xE0 = 224字节</code></li><li>保留区元素个数：<code class="notion-inline-code">224 ÷ 4 = 56</code> → <code class="notion-inline-code">RESERVED4[56]</code></li><div class="notion-text notion-block-3759995fc21f809bb8f4c180365d8780">（6） <code class="notion-inline-code">RESERVED5[644]</code></div><li><code class="notion-inline-code">IP[240]</code>总大小：<code class="notion-inline-code">240 × 1 = 240字节</code>，占用地址<code class="notion-inline-code">0x300 ~ 0x3EF</code></li><li>下一个寄存器<code class="notion-inline-code">STIR</code>起始偏移：<code class="notion-inline-code">0xE00</code></li><li>空白地址：<code class="notion-inline-code">0x3F0 ~ 0xDFF</code>，总字节数：<code class="notion-inline-code">0xE00 - 0x3F0 = 0xA10 = 2576字节</code></li><li>保留区元素个数：<code class="notion-inline-code">2576 ÷ 4 = 644</code> → <code class="notion-inline-code">RESERVED5[644]</code></li></ul></ul></div></details><table class="notion-simple-table notion-block-3759995fc21f806082e3c84031598082"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3759995fc21f808f8397c88dd03033ff"><td class="" style="width:120px"><div class="notion-simple-table-cell">内核版本</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">发布时间</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">实现的优先级位数</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">代表芯片</div></td></tr><tr class="notion-simple-table-row notion-block-3759995fc21f80308a22dd407f700cb8"><td class="" style="width:120px"><div class="notion-simple-table-cell">Cortex-M3 r0p0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">2005 年</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">3 位</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">非常早期的原型芯片，市面上几乎没有</div></td></tr><tr class="notion-simple-table-row notion-block-3759995fc21f80dc8112fea1ba347ea8"><td class="" style="width:120px"><div class="notion-simple-table-cell">Cortex-M3 r1p0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">2006 年</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">3 位</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">极少数早期的 STM32F101 芯片</div></td></tr><tr class="notion-simple-table-row notion-block-3759995fc21f8065ada2eb794827fd84"><td class="" style="width:120px"><div class="notion-simple-table-cell">Cortex-M3 r2p0 及以上</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">2007 年以后</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">4 位</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">所有你能买到的 STM32F103/F105/F107 芯片</div></td></tr></tbody></table><details class="notion-toggle notion-block-3759995fc21f80a987f6db95f99e4a70"><summary>NVIC的IP寄存器解释 1 ，可参考<em><span class="notion-pink"><b><span class="notion-inline-underscore">《pm0056-stm32f10xxx-and-stm32f20xxx-cortexm3-programming-manual-stmicroelectronics》的第125页</span></b></span></em></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3759995fc21f803cbee5e5953e81a6c5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A593c25be-0026-4abd-88c8-01fa6be5b737%3Aimage.png?table=block&amp;id=3759995f-c21f-803c-bee5-e5953e81a6c5&amp;t=3759995f-c21f-803c-bee5-e5953e81a6c5" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-3759995fc21f80f9821ec9dc4fbe5345">翻译为：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3759995fc21f808c8524f62d968237f7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aacff686f-1c75-43df-ba16-e72d36e2ff1d%3Aimage.png?table=block&amp;id=3759995f-c21f-808c-8524-f62d968237f7&amp;t=3759995f-c21f-808c-8524-f62d968237f7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3759995fc21f809fbb65c636e1941a4f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa2962c59-3aae-49f7-8fb5-073ace810655%3Aimage.png?table=block&amp;id=3759995f-c21f-809f-bb65-c636e1941a4f&amp;t=3759995f-c21f-809f-bb65-c636e1941a4f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3759995fc21f8068bff0e5c6060ca3f0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1f95e4d9-f588-45b7-989f-4ab813468954%3Aimage.png?table=block&amp;id=3759995f-c21f-8068-bff0-e5c6060ca3f0&amp;t=3759995f-c21f-8068-bff0-e5c6060ca3f0" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3759995fc21f80c7a6f5c3fc043ab289"><summary>NVIC的IP寄存器解释 2 ，可参考<em><span class="notion-pink"><b><span class="notion-inline-underscore">《ARM Cortex-M3权威指南  第2版_13598339》的第122~123页</span></b></span></em></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3759995fc21f80eb84a3f24b890e6b5f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3f0ceefd-c351-44ba-87c5-0d4e5643c550%3Aimage.png?table=block&amp;id=3759995f-c21f-80eb-84a3-f24b890e6b5f&amp;t=3759995f-c21f-80eb-84a3-f24b890e6b5f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3759995fc21f80c4a2d2f5961f152d66"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7f2e4245-9646-468c-a72f-6766444cc0ac%3Aimage.png?table=block&amp;id=3759995f-c21f-80c4-a2d2-f5961f152d66&amp;t=3759995f-c21f-80c4-a2d2-f5961f152d66" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3759995fc21f80d1ba81efeaf3d02350"><summary>NVIC（基地址：0xE000E100）的所有相关寄存器解释【ISER：0xE000E100、ICER：0xE000E180、ISPR：0xE000E200、ICPR：0xE000E280、IABR：0xE000E300、IP：0xE000E400、STIP：0xE000EF00】，可参考<em><span class="notion-pink"><b><span class="notion-inline-underscore">《Cortex_M3权威指南(中文)》的第303、304、313页</span></b></span></em></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3759995fc21f8004b461ff85fbcd44e3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7fa16e03-7f41-406f-a68f-88e84d163b8d%3Aimage.png?table=block&amp;id=3759995f-c21f-8004-b461-ff85fbcd44e3&amp;t=3759995f-c21f-8004-b461-ff85fbcd44e3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3759995fc21f8053b28ff2872f059369"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab444c0ad-9413-42e0-9617-e563a7cf3f7a%3Aimage.png?table=block&amp;id=3759995f-c21f-8053-b28f-f2872f059369&amp;t=3759995f-c21f-8053-b28f-f2872f059369" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3759995fc21f8033853bcb9b8972d2d9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A01ac471f-2289-4002-b205-6ad153581b93%3Aimage.png?table=block&amp;id=3759995f-c21f-8033-853b-cb9b8972d2d9&amp;t=3759995f-c21f-8033-853b-cb9b8972d2d9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3759995fc21f8067bbf2fea561bece38"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9976ccd1-9d61-4677-a9db-cf3667b4d17c%3Aimage.png?table=block&amp;id=3759995f-c21f-8067-bbf2-fea561bece38&amp;t=3759995f-c21f-8067-bbf2-fea561bece38" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3759995fc21f80108938f52ed62b2cdc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4f8c1632-dac9-4bee-8005-8053a7cec127%3Aimage.png?table=block&amp;id=3759995f-c21f-8010-8938-f52ed62b2cdc&amp;t=3759995f-c21f-8010-8938-f52ed62b2cdc" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3759995fc21f80f0bb2ed65d1fcddcc8" data-id="3759995fc21f80f0bb2ed65d1fcddcc8"><span><div id="3759995fc21f80f0bb2ed65d1fcddcc8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3759995fc21f80f0bb2ed65d1fcddcc8" title="USART_InitStructure.USART_WordLength = USART_WordLength_8b"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">USART_InitStructure.USART_WordLength = USART_WordLength_8b</span></span></h4><ul class="notion-list notion-list-disc notion-block-3759995fc21f80ca9600d8f6f4c769c3"><li>含义：数据位长度（8位 或 9位），设为<span class="notion-red"><b>8位数据位长度</b></span></li></ul><ul class="notion-list notion-list-disc notion-block-3759995fc21f8082860fee8310c5dc8a"><li>参数USART_WordLength_8b，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_usart.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3759995fc21f8056b7bcedf4a87ff25d" data-id="3759995fc21f8056b7bcedf4a87ff25d"><span><div id="3759995fc21f8056b7bcedf4a87ff25d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3759995fc21f8056b7bcedf4a87ff25d" title="USART_InitStructure.USART_StopBits = USART_StopBits_1"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">USART_InitStructure.USART_StopBits = USART_StopBits_1</span></span></h4><ul class="notion-list notion-list-disc notion-block-3759995fc21f804b88e2fd70ae675dd9"><li>含义：停止位（1位 或 2位），用来表示一帧数据结束了，设为<span class="notion-red"><b>1位停止位</b></span></li></ul><ul class="notion-list notion-list-disc notion-block-3759995fc21f80748bc6ccfcce9b9263"><li>参数USART_StopBits_1，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_usart.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3759995fc21f809ea0c5fa26aec81e78" data-id="3759995fc21f809ea0c5fa26aec81e78"><span><div id="3759995fc21f809ea0c5fa26aec81e78" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3759995fc21f809ea0c5fa26aec81e78" title="USART_InitStructure.USART_Parity = USART_Parity_No"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">USART_InitStructure.USART_Parity = USART_Parity_No</span></span></h4><ul class="notion-list notion-list-disc notion-block-3759995fc21f80d3a4b5c872d5e2e6ee"><li>含义：校验位（奇校验、偶校验、无校验），用来检查数据传输出错没，设为<span class="notion-red"><b>无校验</b></span></li></ul><ul class="notion-list notion-list-disc notion-block-3759995fc21f80369d3aca9f8118808e"><li>参数USART_Parity_No，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_usart.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3759995fc21f80479143c25d6eb065f4" data-id="3759995fc21f80479143c25d6eb065f4"><span><div id="3759995fc21f80479143c25d6eb065f4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3759995fc21f80479143c25d6eb065f4" title="USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None</span></span></h4><ul class="notion-list notion-list-disc notion-block-3759995fc21f8024972cfa1e3d83c630"><li>含义：硬件流控制CTS/RTS（用来防止发送太快导致数据丢失），设为<span class="notion-red"><b>无硬件流控</b></span></li></ul><ul class="notion-list notion-list-disc notion-block-3759995fc21f804f90fedc28d9c5b884"><li>参数USART_HardwareFlowControl_None，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_usart.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3759995fc21f80428ad8ebfa50494553" data-id="3759995fc21f80428ad8ebfa50494553"><span><div id="3759995fc21f80428ad8ebfa50494553" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3759995fc21f80428ad8ebfa50494553" title="USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx</span></span></h4><ul class="notion-list notion-list-disc notion-block-3759995fc21f808ab4ecf00ef42131f9"><li>含义：模式选择（使能发送(Tx) / 使能接收(Rx) / 都使能），设为<span class="notion-red"><b>收发都开</b></span></li></ul><ul class="notion-list notion-list-disc notion-block-3759995fc21f80558f60c8a346e4579e"><li>参数USART_Mode_Rx、USART_Mode_Tx，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_usart.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3759995fc21f80058ebccc0ce1adbb45" data-id="3759995fc21f80058ebccc0ce1adbb45"><span><div id="3759995fc21f80058ebccc0ce1adbb45" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3759995fc21f80058ebccc0ce1adbb45" title="USART_Init(USART1, &amp;USART_InitStructure)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">USART_Init(USART1, &amp;USART_InitStructure)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3779995fc21f800b84dcf52e608982c3"><li>含义：初始化串口</li></ul><ul class="notion-list notion-list-disc notion-block-3759995fc21f8005babbef91df4b7a90"><li>USART_Init函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_usart.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3759995fc21f808eacd3de19d45b48a8"><summary><code class="notion-inline-code">RCC_ClocksTypeDef RCC_ClocksStatus</code></summary><div><ul class="notion-list notion-list-disc notion-block-3759995fc21f80edb2fdf0fa717461cb"><li>创建了RCC_ClocksTypeDef类型的变量，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-3759995fc21f808b9cb7fcb5e4c89e6a"><summary><code class="notion-inline-code">IS_USART_BAUDRATE(USART_InitStruct-&gt;USART_BaudRate)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3759995fc21f80b8a62eeb8ae029f6f7"><li>函数IS_USART_BAUDRATE，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_usart.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-3769995fc21f80db9e68e976a51a2913"><summary>控制寄存器2（USART_CR2）</summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f80fd9897f6229f3f4ccb"><li>USART_CR2控制寄存器2在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第544~545页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f8096ab29e39d53612b91"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A374632b4-a0f1-4d04-ba7f-59c943a10720%3Aimage.png?table=block&amp;id=3769995f-c21f-8096-ab29-e39d53612b91&amp;t=3769995f-c21f-8096-ab29-e39d53612b91" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f804b93facee9720de8ac"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:644.4010009765625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A54f7ceca-ad5d-49dc-936e-3edefa167f2d%3Aimage.png?table=block&amp;id=3769995f-c21f-804b-93fa-cee9720de8ac&amp;t=3769995f-c21f-804b-93fa-cee9720de8ac" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3769995fc21f800f871fe3b351c2acf0"><summary>控制寄存器1（USART_CR1）</summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f80fea56ffbd86ceec12f"><li>USART_CR1控制寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第542~544页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f80ef8a31f90aa6306d98"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A54a36160-27b1-48ad-86cf-4e64fdc522b3%3Aimage.png?table=block&amp;id=3769995f-c21f-80ef-8a31-f90aa6306d98&amp;t=3769995f-c21f-80ef-8a31-f90aa6306d98" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f80088973e8c83a69289d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:644.4010009765625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac1f223b8-89eb-43c7-a3c6-39c77dcc9c5e%3Aimage.png?table=block&amp;id=3769995f-c21f-8008-8973-e8c83a69289d&amp;t=3769995f-c21f-8008-8973-e8c83a69289d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f80b682c3cf365e815e44"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:644.00390625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A53955416-20da-4843-b78d-3162e73c06a8%3Aimage.png?table=block&amp;id=3769995f-c21f-80b6-82c3-cf365e815e44&amp;t=3769995f-c21f-80b6-82c3-cf365e815e44" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f80889177c6e85783ed24"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2ab27de7-01d2-49c8-9072-35e65435160b%3Aimage.png?table=block&amp;id=3769995f-c21f-8088-9177-c6e85783ed24&amp;t=3769995f-c21f-8088-9177-c6e85783ed24" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3769995fc21f80688efce8d056e00831"><summary>控制寄存器3（USART_CR3）</summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f80dba7e3c48c075fdda0"><li>USART_CR3控制寄存器3在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第545~546页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f80cea7aef81de0bf2279"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4ebb568d-fdc4-4563-b633-95a35cecc569%3Aimage.png?table=block&amp;id=3769995f-c21f-80ce-a7ae-f81de0bf2279&amp;t=3769995f-c21f-80ce-a7ae-f81de0bf2279" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f8086922cf8f3ab0eac2e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:644.4075317382812px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac757b060-2275-4454-95c7-87326bcf0328%3Aimage.png?table=block&amp;id=3769995f-c21f-8086-922c-f8f3ab0eac2e&amp;t=3769995f-c21f-8086-922c-f8f3ab0eac2e" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3759995fc21f80918c2ecc6b14a082ff"><summary><code class="notion-inline-code">RCC_GetClocksFreq(&amp;RCC_ClocksStatus)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3759995fc21f80c0994ed6a434062300"><li>RCC_GetClocksFreq函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3769995fc21f80c7a92cc7eccd8bd89d"><summary><code class="notion-inline-code">tmp = RCC-&gt;CFGR &amp; CFGR_SWS_Mask</code></summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f80b2ab6ac86e666759d3"><li>CFGR_SWS_Mask的值为((uint32_t)0x0000000C)，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3769995fc21f806e822fe3a2f5f0a9e1"><summary>RCC_CFGR（时钟配置寄存器）- - - <span class="notion-teal"><b>与代码语句有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f807d96e6da94e454f7dd"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f805690e0c9e3dcaa960c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5d9edeab-2815-4fde-9734-7d9dc29aa0a9%3Aimage.png?table=block&amp;id=3769995f-c21f-8056-90e0-c9e3dcaa960c&amp;t=3769995f-c21f-8056-90e0-c9e3dcaa960c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f80c49ed5da9772d58635"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aafd65d92-70df-4f6c-a4e9-fecef4a6b6e2%3Aimage.png?table=block&amp;id=3769995f-c21f-80c4-9ed5-da9772d58635&amp;t=3769995f-c21f-80c4-9ed5-da9772d58635" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-3769995fc21f800a808bff92a6953f6d"><summary><code class="notion-inline-code">RCC_Clocks-&gt;SYSCLK_Frequency = HSI_VALUE</code></summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f805d9c42fdb52f3e02df"><li>含义：将SYSCLK 系统主时钟频率设为HSI（内部高速）</li></ul><ul class="notion-list notion-list-disc notion-block-3769995fc21f80e7b058e165d2bccc31"><li>RCC_Clocks-&gt;SYSCLK_Frequency：SYSCLK 系统主时钟频率</li></ul><ul class="notion-list notion-list-disc notion-block-3769995fc21f80faa0f1dcdcdce5d316"><li>HSI_VALUE，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-3769995fc21f80069e1dd190785ba834"><summary><code class="notion-inline-code">RCC_Clocks-&gt;SYSCLK_Frequency = HSE_VALUE</code></summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f802fb775d1687f78aeab"><li>含义：将SYSCLK 系统主时钟频率设为HSE（外部高速）</li></ul><ul class="notion-list notion-list-disc notion-block-3769995fc21f8053a4decce1e61ad027"><li>RCC_Clocks-&gt;SYSCLK_Frequency：SYSCLK 系统主时钟频率</li></ul><ul class="notion-list notion-list-disc notion-block-3769995fc21f80e6b3bdf4f84e07f818"><li>HSE_VALUE，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-3769995fc21f805ab928da69a7083185"><summary><code class="notion-inline-code">pllmull = RCC-&gt;CFGR &amp; CFGR_PLLMull_Mask和pllsource = RCC-&gt;CFGR &amp; CFGR_PLLSRC_Mask</code></summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f809e8d13d75340c2ad43"><li>含义：前者：读取PLL倍频系数（CFGR寄存器的PLLMULL[21:18]位）；后者：读取PLL时钟源选择（CFGR寄存器的PLLSRC[16]位）</li></ul><details class="notion-toggle notion-block-3769995fc21f80cf887fd9fc1d44dcf9"><summary>RCC_CFGR（时钟配置寄存器，非互联网型）</summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f80b0a11ce9a799d73aa5"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f80faade8fbe1df128295"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5d9edeab-2815-4fde-9734-7d9dc29aa0a9%3Aimage.png?table=block&amp;id=3769995f-c21f-80fa-ade8-fbe1df128295&amp;t=3769995f-c21f-80fa-ade8-fbe1df128295" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f8006886dfd5b303df90a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:568.4439697265625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abdd9c5ae-a1d0-463c-84bf-c49730d59bb2%3Aimage.png?table=block&amp;id=3769995f-c21f-8006-886d-fd5b303df90a&amp;t=3769995f-c21f-8006-886d-fd5b303df90a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f809598c2d065481ba0d5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:568.4244384765625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abeef2b6a-07a3-4040-9802-7d94e481fc6e%3Aimage.png?table=block&amp;id=3769995f-c21f-8095-98c2-d065481ba0d5&amp;t=3769995f-c21f-8095-98c2-d065481ba0d5" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3769995fc21f8059a752e00691616477"><summary>RCC_CFGR（时钟配置寄存器，互联网型）</summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f8007baddc25b2dff7cfe"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第86~88页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f805782ebc7da1b472a4a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0b152d3d-4460-47cf-8502-b5c2d324adf1%3Aimage.png?table=block&amp;id=3769995f-c21f-8057-82eb-c7da1b472a4a&amp;t=3769995f-c21f-8057-82eb-c7da1b472a4a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f80a7b95acfdc23fe78e0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aadac0de4-657a-427b-b83b-c2d0f0a33445%3Aimage.png?table=block&amp;id=3769995f-c21f-80a7-b95a-cfdc23fe78e0&amp;t=3769995f-c21f-80a7-b95a-cfdc23fe78e0" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f80cb97b8c004fac3eba0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A91df991c-0e46-4d8e-a35c-451ed1828acf%3Aimage.png?table=block&amp;id=3769995f-c21f-80cb-97b8-c004fac3eba0&amp;t=3769995f-c21f-80cb-97b8-c004fac3eba0" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f80c6bd30f173ab15ddc8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aee5b6595-8479-4cd6-b278-f62320c1ccf3%3Aimage.png?table=block&amp;id=3769995f-c21f-80c6-bd30-f173ab15ddc8&amp;t=3769995f-c21f-80c6-bd30-f173ab15ddc8" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-3769995fc21f80a69d86c258da5e0c3e"><summary><code class="notion-inline-code">prediv1factor = (RCC-&gt;CFGR2 &amp; CFGR2_PREDIV1) + 1和RCC_Clocks-&gt;SYSCLK_Frequency = (HSE_VALUE / prediv1factor) * pllmull</code></summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f80d390f4e27951b98ff4"><li><span class="notion-red"><b>属于超值型范畴</b></span></li></ul><ul class="notion-list notion-list-disc notion-block-3769995fc21f803bb3d6ccc239316ebd"><li>含义：前者：读取CFGR2寄存器的0~3位，然后在此基础上加上1，最后赋值给prediv1factor。后者：将HSE_VALUE（8000000）除以prediv1factor，得出的值乘以之前“<code class="notion-inline-code">pllmull = (pllmull &gt;&gt; 18) + 2;</code>”处理的倍频系数值，最后写回到RCC_Clocks对象的SYSCLK系统主时钟频率中。</li></ul><ul class="notion-list notion-list-disc notion-block-3769995fc21f8085a084cd094181637c"><li>CFGR2_PREDIV1，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3769995fc21f803ca755ef9500eea13a"><summary>RCC_CFGR2（时钟配置寄存器2）</summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f80d5a097e0b561c45bfd"><li>RCC_CFGR2时钟配置寄存器2在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第101~103页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f8093938cc730a3a83a23"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af1db16e3-63c9-4583-9cbf-b1ed71b19839%3Aimage.png?table=block&amp;id=3769995f-c21f-8093-938c-c730a3a83a23&amp;t=3769995f-c21f-8093-938c-c730a3a83a23" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f801b8611d1e685ad7b79"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A70fd7ae2-05ab-4776-9fdb-10d2e66c89a7%3Aimage.png?table=block&amp;id=3769995f-c21f-801b-8611-d1e685ad7b79&amp;t=3769995f-c21f-801b-8611-d1e685ad7b79" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f80459808e9f591c7f55b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:568.4309692382812px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad6663bb2-38a9-4607-97f8-1a1878263d1d%3Aimage.png?table=block&amp;id=3769995f-c21f-8045-9808-e9f591c7f55b&amp;t=3769995f-c21f-8045-9808-e9f591c7f55b" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-3769995fc21f80d5a946d5a39f1b6ac5"><summary><code class="notion-inline-code">RCC-&gt;CFGR &amp; CFGR_PLLXTPRE_Mask</code></summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f80ee9acbf54052d2b12c"><li>含义：读取CFGR寄存器的第17位PLLXTPRE（HSE分频器作为PLL输入）</li></ul><details class="notion-toggle notion-block-3769995fc21f8006af84f0dbb4b4913e"><summary>RCC_CFGR（时钟配置寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f800c8c85f26310dc78d9"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f805ebe25c578d9364479"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5d9edeab-2815-4fde-9734-7d9dc29aa0a9%3Aimage.png?table=block&amp;id=3769995f-c21f-805e-be25-c578d9364479&amp;t=3769995f-c21f-805e-be25-c578d9364479" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f80499c71eaaef9d0fa70"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:568.4309692382812px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afb3d210e-04c3-4000-abfd-7460d40d0514%3Aimage.png?table=block&amp;id=3769995f-c21f-8049-9c71-eaaef9d0fa70&amp;t=3769995f-c21f-8049-9c71-eaaef9d0fa70" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-3769995fc21f80f9bf05d66dae7eebee"><summary><code class="notion-inline-code">prediv1source = RCC-&gt;CFGR2 &amp; CFGR2_PREDIV1SRC</code></summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f807c872bdd6ed95c99e8"><li><span class="notion-red"><b>属于互联网型范畴</b></span></li></ul><ul class="notion-list notion-list-disc notion-block-3769995fc21f806eb166f6edf806bd77"><li>含义：读取CFGR2寄存器的第16位，赋值给prediv1source</li></ul><details class="notion-toggle notion-block-3769995fc21f8097811cca51d7c96e65"><summary>RCC_CFGR2（时钟配置寄存器2）</summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f8002876be24789e8ad21"><li>RCC_CFGR2时钟配置寄存器2在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第101~103页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f806eb58bf5510478e2c5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af1db16e3-63c9-4583-9cbf-b1ed71b19839%3Aimage.png?table=block&amp;id=3769995f-c21f-806e-b58b-f5510478e2c5&amp;t=3769995f-c21f-806e-b58b-f5510478e2c5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f80da9f3edddd05ed7b3f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A70fd7ae2-05ab-4776-9fdb-10d2e66c89a7%3Aimage.png?table=block&amp;id=3769995f-c21f-80da-9f3e-dddd05ed7b3f&amp;t=3769995f-c21f-80da-9f3e-dddd05ed7b3f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f8081a25ec91088282dda"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abae03b72-8eed-4342-af2c-a1e35a9163d5%3Aimage.png?table=block&amp;id=3769995f-c21f-8081-a25e-c91088282dda&amp;t=3769995f-c21f-8081-a25e-c91088282dda" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-3769995fc21f8005b30dd983f86bd982"><summary><code class="notion-inline-code">prediv2factor = ((RCC-&gt;CFGR2 &amp; CFGR2_PREDIV2) &gt;&gt; 4) + 1</code></summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f80819291c56f30a5db44"><li><span class="notion-red"><b>属于互联网型范畴</b></span></li></ul><ul class="notion-list notion-list-disc notion-block-3769995fc21f80d6843ed097159d66da"><li>含义：读取CFGR2寄存器的第4~7位，然后右移4位，变成原本第4~7位移到了第0~3位，之后加上1，赋值给prediv2factor</li></ul><details class="notion-toggle notion-block-3769995fc21f801cafc6e36986975d11"><summary>RCC_CFGR2（时钟配置寄存器2）</summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f80ddb4d4f6a6a735176d"><li>RCC_CFGR2时钟配置寄存器2在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第101~103页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f8003b832e6309245c67c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af1db16e3-63c9-4583-9cbf-b1ed71b19839%3Aimage.png?table=block&amp;id=3769995f-c21f-8003-b832-e6309245c67c&amp;t=3769995f-c21f-8003-b832-e6309245c67c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f8028a6d1cabb51f75207"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A70fd7ae2-05ab-4776-9fdb-10d2e66c89a7%3Aimage.png?table=block&amp;id=3769995f-c21f-8028-a6d1-cabb51f75207&amp;t=3769995f-c21f-8028-a6d1-cabb51f75207" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f806fbe82cb9e32721c9f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A94dabe41-3a52-4ca0-b1b3-aa9d6b4e6675%3Aimage.png?table=block&amp;id=3769995f-c21f-806f-be82-cb9e32721c9f&amp;t=3769995f-c21f-806f-be82-cb9e32721c9f" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-3769995fc21f80eda208fbcd53d6ca60"><summary><code class="notion-inline-code">pll2mull = ((RCC-&gt;CFGR2 &amp; CFGR2_PLL2MUL) &gt;&gt; 8 ) + 2</code></summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f802ca6f7d5789a5d686c"><li><span class="notion-red"><b>属于互联网型范畴</b></span></li></ul><ul class="notion-list notion-list-disc notion-block-3769995fc21f8074b93aeb0397cda63f"><li>含义：读取CFGR2寄存器的第8~11位，然后右移8位，变成原本第8~11位移到了第0~3位，之后加上2，赋值给pll2mull</li></ul><details class="notion-toggle notion-block-3769995fc21f8050b471e665ba882f82"><summary>RCC_CFGR2（时钟配置寄存器2）</summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f809db02dfa7301ec5514"><li>RCC_CFGR2时钟配置寄存器2在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第101~103页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f809abbc7f530b4245a3e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af1db16e3-63c9-4583-9cbf-b1ed71b19839%3Aimage.png?table=block&amp;id=3769995f-c21f-809a-bbc7-f530b4245a3e&amp;t=3769995f-c21f-809a-bbc7-f530b4245a3e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f800f9bf9d1ec7471008f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A70fd7ae2-05ab-4776-9fdb-10d2e66c89a7%3Aimage.png?table=block&amp;id=3769995f-c21f-800f-9bf9-d1ec7471008f&amp;t=3769995f-c21f-800f-9bf9-d1ec7471008f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3769995fc21f80cca422e981b444b352"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af407adf7-0366-4f6c-a6a2-5ab26449e5d6%3Aimage.png?table=block&amp;id=3769995f-c21f-80cc-a422-e981b444b352&amp;t=3769995f-c21f-80cc-a422-e981b444b352" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details></div></details><details class="notion-toggle notion-block-3769995fc21f80f8b9dee24db6e48fce"><summary><code class="notion-inline-code">usartxbase == USART1_BASE</code></summary><div><ul class="notion-list notion-list-disc notion-block-3769995fc21f80008ed8cfb617e8b1f1"><li>USART1_BASE值为0x40013800，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><div class="notion-blank notion-block-3769995fc21f80e896a4d51b9e9e2a24"> </div></div></details><details class="notion-toggle notion-block-3779995fc21f80d79ee2e607fe4c99fe"><summary><span class="notion-red"><b>配置BRR寄存器（波特率寄存器）的第三步到第六步的解释</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3779995fc21f80d78360d2d554316486"><li>上面的代码如下：</li></ul><ul class="notion-list notion-list-disc notion-block-3769995fc21f80b2b88fdb2ce88174c0"><li>解释OVER8这一位</li><ul class="notion-list notion-list-disc notion-block-3769995fc21f80b2b88fdb2ce88174c0"><li>因为芯片为STM32F103C8T6，所以是普通型，因此在参考手册中USART_CR1（控制寄存器1）的第14、15位是保留位，硬件强制为0。</li><li>而互联网型，则存在第15位为0VER8，值0默认为16倍过采样，1为8倍过采样</li><li>而上面的代码，本身是STM32F10系列的固件库文件，所以在一定程度上是兼容所有的STM32F10系列的芯片（包含普通型、互联网型等），因此代码并没有直接显示没有OVER8这一位</li><li><span class="notion-red"><b>普通型是默认16倍过采样，而互联网型则看第15位的值情况</b></span></li><details class="notion-toggle notion-block-3779995fc21f80379101fcc8ed9b1687"><summary><em><span class="notion-pink"><b>普通型参考手册上的依据</b></span></em></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f80ceb3fff3b458c35bac"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad92b530f-9a5d-4ef2-b006-6782b9824b6c%3Aimage.png?table=block&amp;id=3779995f-c21f-80ce-b3ff-f3b458c35bac&amp;t=3779995f-c21f-80ce-b3ff-f3b458c35bac" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f8022a1bfc216ad8b9e17"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5bae6e48-aa0d-434a-bae1-c421f6601428%3Aimage.png?table=block&amp;id=3779995f-c21f-8022-a1bf-c216ad8b9e17&amp;t=3779995f-c21f-8022-a1bf-c216ad8b9e17" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f806cb427da0c2e940ba3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A813885ad-b34f-454b-8626-026703155cc6%3Aimage.png?table=block&amp;id=3779995f-c21f-806c-b427-da0c2e940ba3&amp;t=3779995f-c21f-806c-b427-da0c2e940ba3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f80ee9fc8dd6fdff0249b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6eb313e9-e4c2-4f11-b9d5-93f6bceb07c8%3Aimage.png?table=block&amp;id=3779995f-c21f-80ee-9fc8-dd6fdff0249b&amp;t=3779995f-c21f-80ee-9fc8-dd6fdff0249b" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></ul></ul><details class="notion-toggle notion-block-3779995fc21f80cdbf5efc250d8fa2a1"><summary><span class="notion-red"><b>过采样的解释</b></span></summary><div><table class="notion-simple-table notion-block-3779995fc21f80ba80d7ff9ee9ca5524"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3779995fc21f80fc8f27ca546d382410"><td class="" style="width:116.2px"><div class="notion-simple-table-cell">过采样模式</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">BRR 寄存器位分配</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">小数部分位数</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">每一位的权重</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">小数部分最大值</div></td></tr><tr class="notion-simple-table-row notion-block-3779995fc21f8035ad73c8e8fb554b6d"><td class="" style="width:116.2px"><div class="notion-simple-table-cell">16 倍（OVER8=0）</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">高 12 位：整数部分低 4 位（bit3~bit0）：小数部分</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">4 位</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">1/16</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">15/16=0.9375</div></td></tr><tr class="notion-simple-table-row notion-block-3779995fc21f80ea92fbfe1a0a403870"><td class="" style="width:116.2px"><div class="notion-simple-table-cell">8 倍（OVER8=1）</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">高 12 位：整数部分低 3 位（bit2~bit0）：小数部分bit3：保留位（必须写 0）</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">3 位</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">1/8</div></td><td class="" style="width:116.2px"><div class="notion-simple-table-cell">7/8=0.875</div></td></tr></tbody></table><ul class="notion-list notion-list-disc notion-block-3779995fc21f803e9427c989e2c0db60"><li>过采样率本质是<b>串口接收端对每个数据比特位的采样次数</b>，直接决定波特率上限、BRR 寄存器计算方式和通信抗干扰能力。</li></ul><details class="notion-toggle notion-block-3779995fc21f804c96a3f0dee3111e0f"><summary>核心公式与BRR位分配对比</summary><div><ul class="notion-list notion-list-disc notion-block-3779995fc21f8019b965c03923412817"><li>STM32F103串口波特率由<b>USARTDIV</b>（串口分频系数）决定，公式和BRR寄存器位分配随OVER8位变化：</li><ul class="notion-list notion-list-disc notion-block-3779995fc21f8019b965c03923412817"><table class="notion-simple-table notion-block-3779995fc21f80f18b88ddf815a05987"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3779995fc21f8019bd13d9df790a0af2"><td class="" style="width:101px"><div class="notion-simple-table-cell">过采样率</div></td><td class="" style="width:101px"><div class="notion-simple-table-cell">OVER8位值</div></td><td class="" style="width:101px"><div class="notion-simple-table-cell">波特率计算公式</div></td><td class="" style="width:101px"><div class="notion-simple-table-cell">BRR寄存器位分配</div></td><td class="" style="width:101px"><div class="notion-simple-table-cell">最大波特率(72MHz时钟)</div></td></tr><tr class="notion-simple-table-row notion-block-3779995fc21f80d0946ed61f4813cb4b"><td class="" style="width:101px"><div class="notion-simple-table-cell">16倍(默认)</div></td><td class="" style="width:101px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:101px"><div class="notion-simple-table-cell"><code class="notion-inline-code">波特率 = 72000000 / (16 × USARTDIV)</code></div></td><td class="" style="width:101px"><div class="notion-simple-table-cell">整数部分：bit4~bit15&lt;br&gt;小数部分：bit0~bit3(4位，0~15)</div></td><td class="" style="width:101px"><div class="notion-simple-table-cell">4.5Mbps</div></td></tr><tr class="notion-simple-table-row notion-block-3779995fc21f80928672f5621458d4e4"><td class="" style="width:101px"><div class="notion-simple-table-cell">8倍</div></td><td class="" style="width:101px"><div class="notion-simple-table-cell">1</div></td><td class="" style="width:101px"><div class="notion-simple-table-cell"><code class="notion-inline-code">波特率 = 72000000 / (8 × USARTDIV)</code></div></td><td class="" style="width:101px"><div class="notion-simple-table-cell">整数部分：bit4~bit15&lt;br&gt;小数部分：bit0~bit2(3位，0~7)&lt;br&gt;<b>bit3必须强制置0</b></div></td><td class="" style="width:101px"><div class="notion-simple-table-cell">9Mbps</div></td></tr></tbody></table></ul></ul></div></details><details class="notion-toggle notion-block-3779995fc21f80018570e1b3408d65f7"><summary>115200波特率的实际计算（72MHz时钟）</summary><div><ul class="notion-list notion-list-disc notion-block-3779995fc21f80018dfbffd9a56edc12"><li>16倍过采样（默认，最常用）</li><ul class="notion-list notion-list-disc notion-block-3779995fc21f80018dfbffd9a56edc12"><li>整数部分：39 → 二进制 <code class="notion-inline-code">100111</code></li><li>小数部分：0.0625 × 16 = 1 → 二进制 <code class="notion-inline-code">0001</code></li><li>BRR寄存器值：<code class="notion-inline-code">0x0271</code>（39&lt;&lt;4 + 1 = 624 + 1 = 625）</li><li>实际波特率：72000000/(16×39.0625) = 115200 → <b>误差0%</b></li></ul></ul><ul class="notion-list notion-list-disc notion-block-3779995fc21f805bacd4c3874943edee"><li>8倍过采样</li><ul class="notion-list notion-list-disc notion-block-3779995fc21f805bacd4c3874943edee"><li>整数部分：78 → 二进制 <code class="notion-inline-code">1001110</code></li><li>小数部分：0.125 × 8 = 1 → 二进制 <code class="notion-inline-code">001</code></li><li>BRR寄存器值：<code class="notion-inline-code">0x04E1</code>（78&lt;&lt;4 + 1 = 1248 + 1 = 1249）</li><ul class="notion-list notion-list-disc notion-block-3779995fc21f80cd8f58ca5d3f290441"><li>注意：bit3必须置0，这里小数部分只有3位，所以直接加1即可</li></ul><li>实际波特率：72000000/(8×78.125) = 115200 → <b>误差0%</b></li></ul></ul></div></details><details class="notion-toggle notion-block-3779995fc21f808990bef1d261017a85"><summary>关键差异与适用场景</summary><div><table class="notion-simple-table notion-block-3779995fc21f80ffa59effe3a68144ae"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3779995fc21f806088bacca5993fc1f9"><td class="" style="width:181px"><div class="notion-simple-table-cell">特性</div></td><td class="" style="width:181px"><div class="notion-simple-table-cell">16倍过采样(默认)</div></td><td class="" style="width:181px"><div class="notion-simple-table-cell">8倍过采样</div></td></tr><tr class="notion-simple-table-row notion-block-3779995fc21f8032ad11d16388a5faac"><td class="" style="width:181px"><div class="notion-simple-table-cell">抗干扰能力</div></td><td class="" style="width:181px"><div class="notion-simple-table-cell">强（采样点多，能过滤毛刺）</div></td><td class="" style="width:181px"><div class="notion-simple-table-cell">稍弱（采样点少，对线路质量要求高）</div></td></tr><tr class="notion-simple-table-row notion-block-3779995fc21f80e6b530ee80a2fd830f"><td class="" style="width:181px"><div class="notion-simple-table-cell">波特率上限</div></td><td class="" style="width:181px"><div class="notion-simple-table-cell">低（72MHz下4.5Mbps）</div></td><td class="" style="width:181px"><div class="notion-simple-table-cell">高（72MHz下9Mbps）</div></td></tr><tr class="notion-simple-table-row notion-block-3779995fc21f8032a1eaf46e9963adc3"><td class="" style="width:181px"><div class="notion-simple-table-cell">波特率误差</div></td><td class="" style="width:181px"><div class="notion-simple-table-cell">通常更小（小数精度4位）</div></td><td class="" style="width:181px"><div class="notion-simple-table-cell">稍大（小数精度3位）</div></td></tr><tr class="notion-simple-table-row notion-block-3779995fc21f80ad86d9e57a48bf8222"><td class="" style="width:181px"><div class="notion-simple-table-cell">适用场景</div></td><td class="" style="width:181px"><div class="notion-simple-table-cell">绝大多数常规串口通信（115200及以下）</div></td><td class="" style="width:181px"><div class="notion-simple-table-cell">高速串口通信（1Mbps以上）</div></td></tr></tbody></table></div></details><details class="notion-toggle notion-block-3779995fc21f800983a0cd69d9b23f94"><summary><span class="notion-red"><b>大白话解释</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f80b6bb54f3e5672dc376"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:568.4439697265625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A59efcda4-45d8-4708-8395-a816faba02ef%3Aimage.png?table=block&amp;id=3779995f-c21f-80b6-bb54-f3e5672dc376&amp;t=3779995f-c21f-80b6-bb54-f3e5672dc376" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f8011a20ff88e45f43855"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:568.4309692382812px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3700674e-bc58-4149-84ec-51d905cd4be1%3Aimage.png?table=block&amp;id=3779995f-c21f-8011-a20f-f88e45f43855&amp;t=3779995f-c21f-8011-a20f-f88e45f43855" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f8015bbf2f9fce7bbd977"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad98e54cd-7473-425b-a808-a3319529ac87%3Aimage.png?table=block&amp;id=3779995f-c21f-8015-bbf2-f9fce7bbd977&amp;t=3779995f-c21f-8015-bbf2-f9fce7bbd977" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f80c0b951fb08ffb1c36c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae967855b-515c-489a-bd54-95ff5916e3ca%3Aimage.png?table=block&amp;id=3779995f-c21f-80c0-b951-fb08ffb1c36c&amp;t=3779995f-c21f-80c0-b951-fb08ffb1c36c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f80fb80d7ddfed5bcec6d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:568.4439697265625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae2f38d16-8e79-42a3-a5c5-856f0b8c9f55%3Aimage.png?table=block&amp;id=3779995f-c21f-80fb-80d7-ddfed5bcec6d&amp;t=3779995f-c21f-80fb-80d7-ddfed5bcec6d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f8037b0fbf5e2a7ef4bd3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:568.4309692382812px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4a61931f-568e-491e-acc8-9eb0bbb3f4fa%3Aimage.png?table=block&amp;id=3779995f-c21f-8037-b0fb-f5e2a7ef4bd3&amp;t=3779995f-c21f-8037-b0fb-f5e2a7ef4bd3" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3779995fc21f80e48032c39182084c40"><summary>假设情况：芯片STM32F103C8T6，USART1挂载在APB2总线（72MHz），波特率为115200，那么OVER8默认为16倍过采样（该位值为0）</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f807b91ddec4c5cdbb9e7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:672px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A147185dc-c012-4285-b971-032ed6ba4393%3Aimage.png?table=block&amp;id=3779995f-c21f-807b-91dd-ec4c5cdbb9e7&amp;t=3779995f-c21f-807b-91dd-ec4c5cdbb9e7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f80fd8c38c2a4f3cfc20a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:656px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A680f314a-fed3-447e-88b8-4c55e3ce778e%3Aimage.png?table=block&amp;id=3779995f-c21f-80fd-8c38-c2a4f3cfc20a&amp;t=3779995f-c21f-80fd-8c38-c2a4f3cfc20a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f803d8108d7a1dec285bb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:668px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aec90a450-d9d5-4d56-8629-7847f4e70c7a%3Aimage.png?table=block&amp;id=3779995f-c21f-803d-8108-d7a1dec285bb&amp;t=3779995f-c21f-803d-8108-d7a1dec285bb" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f8072a0baee8fdc424a68"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:675px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A12cb8903-0aba-461c-9d87-1d4a1b951641%3Aimage.png?table=block&amp;id=3779995f-c21f-8072-a0ba-ee8fdc424a68&amp;t=3779995f-c21f-8072-a0ba-ee8fdc424a68" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f80109961dbd450615e41"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:663px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af9a86f94-2ef4-43c6-abe5-783af672c43e%3Aimage.png?table=block&amp;id=3779995f-c21f-8010-9961-dbd450615e41&amp;t=3779995f-c21f-8010-9961-dbd450615e41" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f806e93c8e01b3df48ff6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:672px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac2c6a75b-f6d7-4ab7-b78a-33add15f1091%3Aimage.png?table=block&amp;id=3779995f-c21f-806e-93c8-e01b3df48ff6&amp;t=3779995f-c21f-806e-93c8-e01b3df48ff6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f8061bd81cef67fe02c89"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:674px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A31f8ca4f-a7c2-4307-8e3a-d5477146c233%3Aimage.png?table=block&amp;id=3779995f-c21f-8061-bd81-cef67fe02c89&amp;t=3779995f-c21f-8061-bd81-cef67fe02c89" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f804284d4e006a2547d26"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:613px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aea7bdc73-1b05-430e-a96f-d6e7232e3224%3Aimage.png?table=block&amp;id=3779995f-c21f-8042-84d4-e006a2547d26&amp;t=3779995f-c21f-8042-84d4-e006a2547d26" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f808e877fcadd02fa4c50"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:663px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A53178dae-41d8-44a0-a9a7-f42efe8a4cf2%3Aimage.png?table=block&amp;id=3779995f-c21f-808e-877f-cadd02fa4c50&amp;t=3779995f-c21f-808e-877f-cadd02fa4c50" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f809ea547e266f7831ab5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:680px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8ab050ab-aea1-4f15-a624-856d7daa978a%3Aimage.png?table=block&amp;id=3779995f-c21f-809e-a547-e266f7831ab5&amp;t=3779995f-c21f-809e-a547-e266f7831ab5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f80d29344c5749b2ce65e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:655px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A02b892b9-a76b-4605-bac6-9c8f8806ec8d%3Aimage.png?table=block&amp;id=3779995f-c21f-80d2-9344-c5749b2ce65e&amp;t=3779995f-c21f-80d2-9344-c5749b2ce65e" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details></div></details><details class="notion-toggle notion-block-3779995fc21f80e296fec826a85f8247"><summary>波特比率寄存器（USART_BRR）</summary><div><ul class="notion-list notion-list-disc notion-block-3779995fc21f80df8189c2d1689fde88"><li>USART_BRR波特比率寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第542页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f80ca98d9cf6554e2a089"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0b332f1f-170c-49ae-8a33-b8eeeb4bd83a%3Aimage.png?table=block&amp;id=3779995f-c21f-80ca-98d9-cf6554e2a089&amp;t=3779995f-c21f-80ca-98d9-cf6554e2a089" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3779995fc21f8064a636dc23b5585603" data-id="3779995fc21f8064a636dc23b5585603"><span><div id="3779995fc21f8064a636dc23b5585603" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3779995fc21f8064a636dc23b5585603" title="USART_ITConfig(USART1, USART_IT_RXNE, ENABLE)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">USART_ITConfig(USART1, USART_IT_RXNE, ENABLE)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3779995fc21f8055a78fe990e591de76"><li>含义：<b>操作串口控制寄存器，开启对应中断位</b></li></ul><ul class="notion-list notion-list-disc notion-block-3779995fc21f8079a54eedba8683c9ed"><li>这行代码是 <b>STM32 串口「自动接收数据」的总开关</b>：</li><ul class="notion-list notion-list-disc notion-block-3779995fc21f8079a54eedba8683c9ed"><blockquote class="notion-quote notion-block-3779995fc21f80799c79f84aecb6f2a0"><div>开启它，串口每收到 1 个字节，就会<b>自动通知 CPU</b>，并自动执行接收处理函数；</div><div class="notion-text notion-block-3779995fc21f80f5b0a1df166bc7e8a9">不开启它，串口只能被动等待程序手动查询，无法实现中断接收。</div></blockquote></ul></ul><ul class="notion-list notion-list-disc notion-block-3779995fc21f802d81ecca2cb2723635"><li>第一个参数：USART1值为0x40013800，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3779995fc21f804c830be2cc51ac256c"><li>第二个参数：USART_IT_RXNE值为0x0525【0000 0101 0010 0101】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_usart.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3779995fc21f8046bd08df6b9387391b"><summary>控制寄存器1（USART_CR1）</summary><div><ul class="notion-list notion-list-disc notion-block-3779995fc21f809e876cc5926803ff11"><li>USART_CR1控制寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第542~544页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f8090aa8cf3f312309b4a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A54a36160-27b1-48ad-86cf-4e64fdc522b3%3Aimage.png?table=block&amp;id=3779995f-c21f-8090-aa8c-f3f312309b4a&amp;t=3779995f-c21f-8090-aa8c-f3f312309b4a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f8081ad82ddb777d4a8c7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A466a37bc-953f-40fb-88cb-5e30b6d276c0%3Aimage.png?table=block&amp;id=3779995f-c21f-8081-ad82-ddb777d4a8c7&amp;t=3779995f-c21f-8081-ad82-ddb777d4a8c7" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3779995fc21f807b829fd85910629153"><summary>控制寄存器2（USART_CR2）</summary><div><ul class="notion-list notion-list-disc notion-block-3779995fc21f80dbb6abf9c9ba7f4e02"><li>USART_CR2控制寄存器2在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第544~545页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f80c294dfc7e7f111792d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A374632b4-a0f1-4d04-ba7f-59c943a10720%3Aimage.png?table=block&amp;id=3779995f-c21f-80c2-94df-c7e7f111792d&amp;t=3779995f-c21f-80c2-94df-c7e7f111792d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f800ca754fc47da684983"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A95ca369a-400d-4488-a1e0-f08cc3e2cae5%3Aimage.png?table=block&amp;id=3779995f-c21f-800c-a754-fc47da684983&amp;t=3779995f-c21f-800c-a754-fc47da684983" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3779995fc21f806bb17af91ebf8ceb76"><summary>控制寄存器3（USART_CR3）</summary><div><ul class="notion-list notion-list-disc notion-block-3779995fc21f80d0967ae54469eb7445"><li>USART_CR3控制寄存器3在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第545~546页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f8096a3b2e714050ce97c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4ebb568d-fdc4-4563-b633-95a35cecc569%3Aimage.png?table=block&amp;id=3779995f-c21f-8096-a3b2-e714050ce97c&amp;t=3779995f-c21f-8096-a3b2-e714050ce97c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f807cb108ebede900adc2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ade7c7340-6516-452a-be9c-37cd68aacdd5%3Aimage.png?table=block&amp;id=3779995f-c21f-807c-b108-ebede900adc2&amp;t=3779995f-c21f-807c-b108-ebede900adc2" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f8006b39fe3b5896e9362"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6366d3b4-03c2-4308-a0b1-3d0c78b60251%3Aimage.png?table=block&amp;id=3779995f-c21f-8006-b39f-e3b5896e9362&amp;t=3779995f-c21f-8006-b39f-e3b5896e9362" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3779995fc21f80d9b109f943e5b7474f"><li>第三个参数ENABLE值为1</li></ul><ul class="notion-list notion-list-disc notion-block-3779995fc21f804e8986d535f456afb7"><li>函数USART_ITConfig，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_usart.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3779995fc21f807ba189c67bc281b5ca" data-id="3779995fc21f807ba189c67bc281b5ca"><span><div id="3779995fc21f807ba189c67bc281b5ca" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3779995fc21f807ba189c67bc281b5ca" title="USART_Cmd(USART1, ENABLE)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">USART_Cmd(USART1, ENABLE)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3779995fc21f80bf832df860dd1d2f0e"><li>USART_Cmd函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_usart.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3779995fc21f805c8b93cae01aa50156"><summary>控制寄存器1（USART_CR1）</summary><div><ul class="notion-list notion-list-disc notion-block-3779995fc21f802680c9ed46f369883d"><li>USART_CR1控制寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第542~544页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f8049944ee31b83621b9d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A54a36160-27b1-48ad-86cf-4e64fdc522b3%3Aimage.png?table=block&amp;id=3779995f-c21f-8049-944e-e31b83621b9d&amp;t=3779995f-c21f-8049-944e-e31b83621b9d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f80fb9b72fd6e33f8ad37"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A09bd86d0-59c6-4e7c-844b-a85980224727%3Aimage.png?table=block&amp;id=3779995f-c21f-80fb-9b72-fd6e33f8ad37&amp;t=3779995f-c21f-80fb-9b72-fd6e33f8ad37" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3779995fc21f80019f83f063561f5db2" data-id="3779995fc21f80019f83f063561f5db2"><span><div id="3779995fc21f80019f83f063561f5db2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3779995fc21f80019f83f063561f5db2" title="USART_GetITStatus(USART1, USART_IT_RXNE) != RESET"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">USART_GetITStatus(USART1, USART_IT_RXNE) != RESET</span></span></h4><ul class="notion-list notion-list-disc notion-block-3779995fc21f8020a884e474e4b6f645"><li>含义：判断CR1寄存器第五位RXNEIE（接受缓冲区非空中断使能）是否成功设置，若成功设置，则该行代码为true</li></ul><ul class="notion-list notion-list-disc notion-block-3779995fc21f8018a0baeb14dd6ed03f"><li>USART_GetITStatus函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_usart.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3779995fc21f803592f1fe2950f78781" data-id="3779995fc21f803592f1fe2950f78781"><span><div id="3779995fc21f803592f1fe2950f78781" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3779995fc21f803592f1fe2950f78781" title="Res =USART_ReceiveData(USART1)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Res =USART_ReceiveData(USART1)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3779995fc21f80989758ea13e14c11f0"><li>含义：读取接收到的数据</li></ul><ul class="notion-list notion-list-disc notion-block-3779995fc21f808aba19d82945693e61"><li>USART_ReceiveData函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_usart.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3779995fc21f80f5a06fcb78df0a1dae"><summary>USART_DR（数据寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3779995fc21f8006af77c6038aa54777"><li>USART_DR数据寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第541~542页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f8080aa99d842a7ee69e2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A54454b99-4d55-453f-a89b-5afe04d8ad89%3Aimage.png?table=block&amp;id=3779995f-c21f-8080-aa99-d842a7ee69e2&amp;t=3779995f-c21f-8080-aa99-d842a7ee69e2" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f80178a70c706cfeada8e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0762fb45-0d95-4d0a-bfb8-91ff501e155c%3Aimage.png?table=block&amp;id=3779995f-c21f-8017-8a70-c706cfeada8e&amp;t=3779995f-c21f-8017-8a70-c706cfeada8e" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3779995fc21f80349f6bd5894dd8a03a" data-id="3779995fc21f80349f6bd5894dd8a03a"><span><div id="3779995fc21f80349f6bd5894dd8a03a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3779995fc21f80349f6bd5894dd8a03a" title="USART1_IRQHandler函数的模拟过程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">USART1_IRQHandler函数的模拟过程</span></span></h4><ul class="notion-list notion-list-disc notion-block-3779995fc21f8071a2f0e141e7a6ba1a"><li>初始状态</li><ul class="notion-list notion-list-disc notion-block-3779995fc21f8071a2f0e141e7a6ba1a"><li><code class="notion-inline-code">USART1_RX_STA = 0</code>（空白记录本，没收完、没收回车、收 0 个字节）</li><li><code class="notion-inline-code">USART1_RX_BUF</code> 空数组</li><li>仓库最大容量 <code class="notion-inline-code">USART1_REC_LEN=200</code></li></ul></ul><ul class="notion-list notion-list-disc notion-block-3779995fc21f8071a5e3ecf3f566a66f"><li>场景：你在串口助手发 <code class="notion-inline-code">ab</code> + 按回车键（Enter）</li><ul class="notion-list notion-list-disc notion-block-3779995fc21f8071a5e3ecf3f566a66f"><li>电脑发送顺序：<code class="notion-inline-code">a</code> → <code class="notion-inline-code">b</code> → <code class="notion-inline-code">0x0D</code>(回车) → <code class="notion-inline-code">0x0A</code>(换行)</li><li>第 1 步：收到字节 <code class="notion-inline-code">a</code></li><ul class="notion-list notion-list-disc notion-block-3779995fc21f806498dacbb0a6c6d564"><li>Res = &#x27;a&#x27;</li><li>printf 回显<code class="notion-inline-code">a</code>，串口助手显示<code class="notion-inline-code">a</code></li><li>没收完、没收回车 → 把<code class="notion-inline-code">a</code>存进<code class="notion-inline-code">USART1_RX_BUF[0]</code></li><li>字节数 + 1 → <code class="notion-inline-code">USART1_RX_STA = 1</code></li></ul><li>第 2 步：收到字节 <code class="notion-inline-code">b</code></li><ul class="notion-list notion-list-disc notion-block-3779995fc21f8019a730cd2518db1411"><li>Res = &#x27;b&#x27;</li><li>回显<code class="notion-inline-code">b</code>，串口助手显示<code class="notion-inline-code">ab</code></li><li>存进<code class="notion-inline-code">USART1_RX_BUF[1]</code></li><li>字节数 + 1 → <code class="notion-inline-code">USART1_RX_STA = 2</code></li></ul><li>第 3 步：收到字节 <code class="notion-inline-code">0x0D</code>（回车）</li><ul class="notion-list notion-list-disc notion-block-3779995fc21f80e597beec441cf673d8"><li>Res = 0x0D</li><li>回显回车，串口助手换行</li><li>标记收到回车 → <code class="notion-inline-code">USART1_RX_STA |= 0x4000</code> → 现在<code class="notion-inline-code">STA=0x4002</code></li><li>字节数不增加</li></ul><li>第 4 步：收到字节 <code class="notion-inline-code">0x0A</code>（换行）</li><ul class="notion-list notion-list-disc notion-block-3779995fc21f806ab637ee228601266a"><li>Res = 0x0A</li><li>回显换行</li><li>已经收到过回车，现在收到换行 → 标记<b>接收完成</b></li><li><code class="notion-inline-code">USART1_RX_STA |= 0x8000</code> → 最终<code class="notion-inline-code">STA=0xC002</code></li><ul class="notion-list notion-list-disc notion-block-3779995fc21f8038a117eb5ada46aecb"><li>bit15=1（收完了）</li><li>bit14=1（收到回车）</li><li>低 14 位 = 2（收了 2 个字节：ab）</li></ul></ul></ul></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3789995fc21f80ca9416d8955f69c1c5" data-id="3789995fc21f80ca9416d8955f69c1c5"><span><div id="3789995fc21f80ca9416d8955f69c1c5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3789995fc21f80ca9416d8955f69c1c5" title="USART的各个参数含义"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">USART的各个参数含义</span></span></h4><ul class="notion-list notion-list-disc notion-block-3789995fc21f800f8f54da630c6bd755"><li>波特率（USART_BaudRate）</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f800f8f54da630c6bd755"><li>是什么？</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f804cb870fcbcb742907f"><li><b>串口通信的「语速」</b></li><li>单位：bit/s（比特每秒），常见值：9600 / 115200</li></ul><li>作用</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80768035ce3a4e8a0a16"><li>决定<b>数据传输的快慢</b></li><li>之前算的 <code class="notion-inline-code">BRR</code> 寄存器分频值，<b>就是根据这个数计算出来的</b></li><li><b>核心要求：STM32 和 电脑串口助手的波特率必须一模一样！</b></li></ul><li>对串口的影响</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f8037a045f76daff02406"><li>波特率不一致 → 直接<b>乱码 / 收不到任何数据</b></li><li>115200 比 9600 速度快很多（调试首选 115200）</li></ul></ul></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f80efae09da07a79e06b6"><li>字长（USART_WordLength）</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80efae09da07a79e06b6"><li>代码固定：<code class="notion-inline-code">USART_WordLength_8b</code>（8 位字长）</li><li>是什么？</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80c6874efd23938e784e"><li><b>每个数据的「长度」</b>，也就是：发一个字符用多少位二进制</li></ul><li>作用</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f8059949ec25eeffad71e"><li>我们用的字母 / 数字 / 符号，都是 <b>8 位二进制（ASCII 码）</b></li><li>8 位 = 标准通用长度，对应 <code class="notion-inline-code">a~z</code>、<code class="notion-inline-code">0~9</code>、符号</li></ul><li>对串口的影响</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f803fa059c760a4cca291"><li>99% 的串口通信都用 <b>8 位</b></li><li>9 位字长仅用于带硬件校验的特殊场景，我们完全用不到</li></ul></ul></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f8038ba1edc19c2f0c689"><li>停止位（USART_StopBits）</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f8038ba1edc19c2f0c689"><li>代码固定：<code class="notion-inline-code">USART_StopBits_1</code>（1 位停止位）</li><li>生活比喻</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f8014b5bbfe1fcd2a1dfe"><li><b>一句话结尾的「句号」</b></li></ul><li>是什么？</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80baa3dfd1c6d684f84a"><li>发送完一个字符后，额外发的<b>结束标记位</b>，告诉接收方：这个字符传完了！准备接收下一个！</li></ul><li>作用</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80dfa29ccbc6176de71a"><li>让 STM32 和 电脑<b>同步信号</b>，避免数据粘连</li><li>通用标准：<b>1 位停止位</b></li></ul><li>对串口的影响</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80fe8eb3c444bb5b9bd9"><li>停止位不一致 → 数据接收错误、乱码</li></ul></ul></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f80a1a75df67ec80317e2"><li>校验位（USART_Parity）</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80a1a75df67ec80317e2"><li>代码固定：<code class="notion-inline-code">USART_Parity_No</code>（无校验）</li><li>生活比喻</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f804e890bdd82885d6ec3"><li><b>数据的「防伪校验码」</b></li></ul><li>是什么？</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f8096b65ff6efb297296d"><li>额外加一位，检查数据在传输过程中<b>有没有被干扰出错</b></li><li>奇校验：数据中 <code class="notion-inline-code">1</code> 的个数凑成<b>奇数</b></li><li>偶校验：数据中 <code class="notion-inline-code">1</code> 的个数凑成<b>偶数</b></li></ul><li>作用</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80478e9cd2d257681ac1"><li>简单的错误检测，<b>普通串口通信完全不需要</b>（现在传输线很稳定，几乎不会出错）</li></ul><li>对串口的影响</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80e5893cf90f57b2fc3f"><li>我们默认<b>无校验</b>，最简单、最通用</li><li>开校验会多占用 1 位，降低传输效率</li></ul></ul></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f802e857dc697f012d7e0"><li>硬件流控（USART_HardwareFlowControl）</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f802e857dc697f012d7e0"><li>代码固定：<code class="notion-inline-code">USART_HardwareFlowControl_None</code>（无硬件流控）</li><li>生活比喻</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80b98d37efe019af29a2"><li><b>收发数据的「红绿灯」</b></li></ul><li>是什么？</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f808b937beef73f4a58a1"><li>用额外的硬件引脚（CTS/RTS）控制：我忙不过来了，你先别发！</li></ul><li>作用</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80bd9b55d9a74304785e"><li>防止数据太多、接收不过来导致溢出</li></ul><li>对串口的影响</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80afb3fcf1f180187a01"><li><b>普通串口通信（连电脑）完全不用，</b>只有蓝牙、WiFi 等高速模块才会用到</li><li>关闭（NONE）是标准配置</li></ul></ul></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f80ae99abc9beae1c8f88"><li>收发模式（USART_Mode）</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80ae99abc9beae1c8f88"><li>代码固定：<code class="notion-inline-code">USART_Mode_Rx | USART_Mode_Tx</code></li><li>是什么？</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80fd8cedce485b3341e0"><li><code class="notion-inline-code">Tx</code> = Transmit <b>发送</b></li><li><code class="notion-inline-code">Rx</code> = Receive <b>接收</b></li></ul><li>作用</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80ba831ad7c10be0c2bb"><li>开启串口的<b>发送功能</b>（STM32 发数据给电脑）</li><li>开启串口的<b>接收功能</b>（电脑发数据给 STM32）</li></ul><li>对串口的影响</li><ul class="notion-list notion-list-disc notion-block-3789995fc21f80fda4daca20de39473c"><li>只开 <code class="notion-inline-code">Tx</code>：只能发，不能收</li><li>只开 <code class="notion-inline-code">Rx</code>：只能收，不能发</li><li>我们两个都开：<b>全双工通信</b>（同时收发）</li></ul></ul></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3779995fc21f807bb5e6fec2fcff15f8" data-id="3779995fc21f807bb5e6fec2fcff15f8"><span><div id="3779995fc21f807bb5e6fec2fcff15f8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3779995fc21f807bb5e6fec2fcff15f8" title="5.2 USART_SendData(USART1,0x55)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">5.2 USART_SendData(USART1,0x55)</span></span></h3><ul class="notion-list notion-list-disc notion-block-3779995fc21f800cbc9fcf05f58c2230"><li>USART_SendData函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_usart.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3779995fc21f80b8b31beb4e5cdd181b"><summary>USART_DR（数据寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3779995fc21f80efbf45cbbb25037d5a"><li>USART_DR数据寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第541~542页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f8093a7d5c49ae14b754d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A54454b99-4d55-453f-a89b-5afe04d8ad89%3Aimage.png?table=block&amp;id=3779995f-c21f-8093-a7d5-c49ae14b754d&amp;t=3779995f-c21f-8093-a7d5-c49ae14b754d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3779995fc21f80adb69dc34e3cb72b78"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0762fb45-0d95-4d0a-bfb8-91ff501e155c%3Aimage.png?table=block&amp;id=3779995f-c21f-80ad-b69d-c34e3cb72b78&amp;t=3779995f-c21f-80ad-b69d-c34e3cb72b78" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3779995fc21f80dea313e60c09a0e540" data-id="3779995fc21f80dea313e60c09a0e540"><span><div id="3779995fc21f80dea313e60c09a0e540" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3779995fc21f80dea313e60c09a0e540" title="六、LED灯显示RTC走时程序"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">六、LED灯显示RTC走时程序</span></span></h2><div class="notion-text notion-block-3789995fc21f8052a704edcb97039f6d"><span class="notion-red"><span class="notion-blue_background"><b>main.c代码文件：</b></span></span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3869995fc21f8089a5f1f653d3a32122"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A45df2e9f-f233-4556-80d5-3bbd5d9d0988%3Aimage.png?table=block&amp;id=3869995f-c21f-8089-a5f1-f653d3a32122&amp;t=3869995f-c21f-8089-a5f1-f653d3a32122" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-3789995fc21f80ce87d3ec03f7b5b68d"><span class="notion-red"><span class="notion-blue_background"><b>rtc.h代码文件：</b></span></span></div><div class="notion-text notion-block-3789995fc21f80f2b089cbb2e2d00b12"><span class="notion-red"><span class="notion-blue_background"><b>rtc.c代码文件：</b></span></span></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-37f9995fc21f807381c0d62ea380b7b0" data-id="37f9995fc21f807381c0d62ea380b7b0"><span><div id="37f9995fc21f807381c0d62ea380b7b0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#37f9995fc21f807381c0d62ea380b7b0" title="6.1 RTC_First_Config(void)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">6.1 RTC_First_Config(void)</span></span></h3><details class="notion-toggle notion-block-37f9995fc21f8035acefeea15e2be9ba"><summary><span class="notion-pink"><b>函数完整流程解析（含顺序逻辑、设计原因、依赖关系）</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37f9995fc21f8084b859f3aa705bed34"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acbe3c500-fafd-4468-bd85-b485c3be8d8d%3Aimage.png?table=block&amp;id=37f9995f-c21f-8084-b859-f3aa705bed34&amp;t=37f9995f-c21f-8084-b859-f3aa705bed34" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37f9995fc21f80fdba8deefc5a3c1665"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aef7e4247-5763-459a-9a99-a997a93ecb2c%3Aimage.png?table=block&amp;id=37f9995f-c21f-80fd-ba8d-eefc5a3c1665&amp;t=37f9995f-c21f-80fd-ba8d-eefc5a3c1665" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37f9995fc21f8009b263d1fdeee1fd66"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae6320e61-8e38-4cfb-a573-d6976017540d%3Aimage.png?table=block&amp;id=37f9995f-c21f-8009-b263-d1fdeee1fd66&amp;t=37f9995f-c21f-8009-b263-d1fdeee1fd66" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37f9995fc21f8028aa6cf1ee7d370ab6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A18581039-a948-4b97-992f-a811232237ee%3Aimage.png?table=block&amp;id=37f9995f-c21f-8028-aa6c-f1ee7d370ab6&amp;t=37f9995f-c21f-8028-aa6c-f1ee7d370ab6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37f9995fc21f80ada565e21d99eb2e37"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1f03770d-6cbc-40ba-adc1-80b33318bfe1%3Aimage.png?table=block&amp;id=37f9995f-c21f-80ad-a565-e21d99eb2e37&amp;t=37f9995f-c21f-80ad-a565-e21d99eb2e37" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37f9995fc21f80df8a74cbf54ad66408"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afa0d290e-5655-40cc-8f13-9b89ebee2a7c%3Aimage.png?table=block&amp;id=37f9995f-c21f-80df-8a74-cbf54ad66408&amp;t=37f9995f-c21f-80df-8a74-cbf54ad66408" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37f9995fc21f80c1b666efe8e6858425"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4661b6d6-7ee9-47c7-8998-35d1b3ac2d8a%3Aimage.png?table=block&amp;id=37f9995f-c21f-80c1-b666-efe8e6858425&amp;t=37f9995f-c21f-80c1-b666-efe8e6858425" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-37f9995fc21f80aaa076ff69b23e798b"><summary><span class="notion-pink"><b>什么叫「仅备份域掉电才执行一次，主芯片复位不重复执行」</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37f9995fc21f80c6addcc7f1a0f04f1f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A936799ec-7b2d-4e10-a0ca-98b3d09ae0d5%3Aimage.png?table=block&amp;id=37f9995f-c21f-80c6-addc-c7f1a0f04f1f&amp;t=37f9995f-c21f-80c6-addc-c7f1a0f04f1f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37f9995fc21f800e9681f6507eeccc70"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adc46a5e7-9dd6-4f5f-ae07-d391dfeb4790%3Aimage.png?table=block&amp;id=37f9995f-c21f-800e-9681-f6507eeccc70&amp;t=37f9995f-c21f-800e-9681-f6507eeccc70" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-37f9995fc21f80d684c5fd4adebe0d15"><summary><span class="notion-pink"><b>这个初始化流程是怎么想出来的？设计思路是什么？</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37f9995fc21f802c9e36fa58f53c2785"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6a59051c-9789-4b18-90eb-a5c128d35cc4%3Aimage.png?table=block&amp;id=37f9995f-c21f-802c-9e36-fa58f53c2785&amp;t=37f9995f-c21f-802c-9e36-fa58f53c2785" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37f9995fc21f8055bd3de636972b8663"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A64fbfc12-7b3a-4596-b21b-7b88a355af68%3Aimage.png?table=block&amp;id=37f9995f-c21f-8055-bd3d-e636972b8663&amp;t=37f9995f-c21f-8055-bd3d-e636972b8663" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37f9995fc21f8052972fff2de41b8ec3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4a3fe1db-fa02-46d6-89a8-fcba8ec9022f%3Aimage.png?table=block&amp;id=37f9995f-c21f-8052-972f-ff2de41b8ec3&amp;t=37f9995f-c21f-8052-972f-ff2de41b8ec3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37f9995fc21f80eb9236e2f619e05a46"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7efc2f71-b8b1-4497-a09d-5da6276b86f3%3Aimage.png?table=block&amp;id=37f9995f-c21f-80eb-9236-e2f619e05a46&amp;t=37f9995f-c21f-80eb-9236-e2f619e05a46" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3789995fc21f80e5a060c5f78b138b28" data-id="3789995fc21f80e5a060c5f78b138b28"><span><div id="3789995fc21f80e5a060c5f78b138b28" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3789995fc21f80e5a060c5f78b138b28" title="RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR | RCC_APB1Periph_BKP, ENABLE)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR | RCC_APB1Periph_BKP, ENABLE)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3789995fc21f8001a70bc707daeabeee"><li>含义：对APB1外设时钟使能寄存器（RCC_APB1ENR）上的第28位PWREN（电源接口时钟使能）和第27位BKPEN（备份接口时钟使能）进行开启操作</li></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f80b7913cf4ea1a9207e9"><li>第一个参数为外设的相关变量RCC_APB1Periph_PWR【值：0x10000000，二进制：0001 0000 0000 0000 0000 0000 0000 0000 】、RCC_APB1Periph_BKP值：0x08000000，二进制：0000 1000 0000 0000 0000 0000 0000 0000 】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3789995fc21f80339134c229ca45072a"><summary>RCC_APB1ENR（APB1外设时钟使能寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3789995fc21f802bb4c0d7d7f523293a"><li>APB1外设时钟使能寄存器RCC_APB1ENR在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第71~73页</span></b></span></em>有定义，<em><span class="notion-pink"><b><span class="notion-inline-underscore">英文版第115~117页</span></b></span></em>有定义（其中CAN2（第26位）和CEC（第30位），参考手册和英文版都没有找到对应定义处）</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f80c58d5bc256309c298f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac3f6563d-43df-4ed3-99b8-593f80d64212%3Aimage.png?table=block&amp;id=3789995f-c21f-80c5-8d5b-c256309c298f&amp;t=3789995f-c21f-80c5-8d5b-c256309c298f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f8090bb4ee2f39276214c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa9af5245-b70a-41c8-8183-0f7d70da70f6%3Aimage.png?table=block&amp;id=3789995f-c21f-8090-bb4e-e2f39276214c&amp;t=3789995f-c21f-8090-bb4e-e2f39276214c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f8064a1ccd42aa05a3df1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:631.9952392578125px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af5f191b2-3caa-4ad0-bafc-9a66697c112c%3Aimage.png?table=block&amp;id=3789995f-c21f-8064-a1cc-d42aa05a3df1&amp;t=3789995f-c21f-8064-a1cc-d42aa05a3df1" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f80f8bc81cd295600abe3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:648.9904174804688px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0ff2d236-38d9-42af-921a-5148dfac05f7%3Aimage.png?table=block&amp;id=3789995f-c21f-80f8-bc81-cd295600abe3&amp;t=3789995f-c21f-80f8-bc81-cd295600abe3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f80a09a43e3d88fc7b3b3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:640.99365234375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4ccc60f5-473a-406c-b2c2-b31997751a57%3Aimage.png?table=block&amp;id=3789995f-c21f-80a0-9a43-e3d88fc7b3b3&amp;t=3789995f-c21f-80a0-9a43-e3d88fc7b3b3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f8018af28d3266a8f0e76"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:645.99365234375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6407c442-437e-4fcf-9b64-d14c585ce4c2%3Aimage.png?table=block&amp;id=3789995f-c21f-8018-af28-d3266a8f0e76&amp;t=3789995f-c21f-8018-af28-d3266a8f0e76" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f80dab9ccee055a209c59"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9168be36-6349-47de-9aaf-021d9996ebde%3Aimage.png?table=block&amp;id=3789995f-c21f-80da-b9cc-ee055a209c59&amp;t=3789995f-c21f-80da-b9cc-ee055a209c59" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f80279053cfed882a9514"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A66497333-dab2-4391-af7b-93631589f4bd%3Aimage.png?table=block&amp;id=3789995f-c21f-8027-9053-cfed882a9514&amp;t=3789995f-c21f-8027-9053-cfed882a9514" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f8044ab65ff5df0dce6ef"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aaf7d316f-f9b4-4579-993a-c29c8970d018%3Aimage.png?table=block&amp;id=3789995f-c21f-8044-ab65-ff5df0dce6ef&amp;t=3789995f-c21f-8044-ab65-ff5df0dce6ef" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f80cdac7dc43212f11ce5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A21ee5c16-d4f1-4570-94f0-34dd8a644e94%3Aimage.png?table=block&amp;id=3789995f-c21f-80cd-ac7d-c43212f11ce5&amp;t=3789995f-c21f-80cd-ac7d-c43212f11ce5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f80b6bc7bdee58848f7b4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aba917ab0-3e11-4c43-be27-6f1b5e1c9fdd%3Aimage.png?table=block&amp;id=3789995f-c21f-80b6-bc7b-dee58848f7b4&amp;t=3789995f-c21f-80b6-bc7b-dee58848f7b4" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f80b6b9f2d08d1d628eba"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3aa568f8-9cbd-4917-99af-7ad5f1bbb8f6%3Aimage.png?table=block&amp;id=3789995f-c21f-80b6-b9f2-d08d1d628eba&amp;t=3789995f-c21f-80b6-b9f2-d08d1d628eba" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-3789995fc21f8003ab91e023017bbd45"> </div><div class="notion-blank notion-block-3789995fc21f80bc924bfae5494dd0fb"> </div></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3789995fc21f806cb999dd6f46c3a70d" data-id="3789995fc21f806cb999dd6f46c3a70d"><span><div id="3789995fc21f806cb999dd6f46c3a70d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3789995fc21f806cb999dd6f46c3a70d" title="PWR_BackupAccessCmd(ENABLE)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">PWR_BackupAccessCmd(ENABLE)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3799995fc21f80c48658cfaa5360c259"><li>含义：主要是对电源控制寄存器（PWR_CR）的第8位DBP（取消后备区域的写保护）设置为1（允许写入RTC和后备寄存器）</li></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f80d58cf2d51dfedad094"><li>PWR_BackupAccessCmd函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_pwr.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3789995fc21f80259b5ddff1b0dfa7e8"><summary><code class="notion-inline-code">*(__IO uint32_t *) CR_DBP_BB = (uint32_t)NewState</code></summary><div><ul class="notion-list notion-list-disc notion-block-3789995fc21f809eb09ad847f49fecf8"><li>外设PWR（电源控制）的起始地址：0x40007000~0x400073FF</li></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f80c68ee8cd90d769a091"><li>含义：对电源控制寄存器（PWR_CR）的第8位DBP（取消后备区域的写保护）设置为1（允许写入RTC和后备寄存器）</li></ul><ul class="notion-list notion-list-disc notion-block-3789995fc21f80c38981d5ef97fff002"><li>CR_DBP_BB（值为0x420E0020【0100 0010 0000 1110 0000 0000 0010 0000】）的计算过程涉及的值，分别出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_pwr.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><div class="notion-text notion-block-3789995fc21f80299280f1d77e317e5d">出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></div><div class="notion-text notion-block-3789995fc21f80ba805fc71246300ec5">计算过程：</div><details class="notion-toggle notion-block-3789995fc21f80b8bdc9c080b4cd3589"><summary>CR_DBP_BB涉及到“位段”的知识点，“位段”出自<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第29~30页</span></b></span></em>有定义</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f80b2baa2eecc4b3e1d2d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8af73c90-111c-4518-bc6f-6445bde697c5%3Aimage.png?table=block&amp;id=3789995f-c21f-80b2-baa2-eecc4b3e1d2d&amp;t=3789995f-c21f-80b2-baa2-eecc4b3e1d2d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f801e9a2fc8c69ff79deb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adfc55163-7f52-455e-b430-387be6ae0e08%3Aimage.png?table=block&amp;id=3789995f-c21f-801e-9a2f-c8c69ff79deb&amp;t=3789995f-c21f-801e-9a2f-c8c69ff79deb" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-3789995fc21f800b813cd647c834e8ff"><summary>PWR_CR（电源控制寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3789995fc21f80aaac11da6f48a388ad"><li>PWR_CR电源控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第44页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f8012a66df6f3073b2c3a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9a106c7e-4511-4830-95ef-b663b6025f7a%3Aimage.png?table=block&amp;id=3789995f-c21f-8012-a66d-f6f3073b2c3a&amp;t=3789995f-c21f-8012-a66d-f6f3073b2c3a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3789995fc21f80b680cece52ac10b7bf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A69331802-71d0-4cca-9c17-3629ac34f2f1%3Aimage.png?table=block&amp;id=3789995f-c21f-80b6-80ce-ce52ac10b7bf&amp;t=3789995f-c21f-80b6-80ce-ce52ac10b7bf" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3799995fc21f80768c26feafa0682775" data-id="3799995fc21f80768c26feafa0682775"><span><div id="3799995fc21f80768c26feafa0682775" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3799995fc21f80768c26feafa0682775" title="BKP_DeInit( )"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">BKP_DeInit( )</span></span></h4><ul class="notion-list notion-list-disc notion-block-3799995fc21f8098b5f7e91af9c7d10c"><li>含义：备份域寄存器复位</li></ul><ul class="notion-list notion-list-disc notion-block-3799995fc21f804c904cfa1c0a57b37c"><li>BKP_DeInit函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_bkp.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3799995fc21f8006afe9f77bcd82e5f8"><summary><span class="notion-pink"><b>为什么要先设置ENABLE，然后在设置DISABLE？目的？</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3799995fc21f80d1afd0d285cea42aa4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A840dfc69-7e02-48c7-a6af-3b93fda14e47%3Aimage.png?table=block&amp;id=3799995f-c21f-80d1-afd0-d285cea42aa4&amp;t=3799995f-c21f-80d1-afd0-d285cea42aa4" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3799995fc21f80c2a4c6d3879ff7af7f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad237c504-42a9-459e-b2c9-1898546d70b6%3Aimage.png?table=block&amp;id=3799995f-c21f-80c2-a4c6-d3879ff7af7f&amp;t=3799995f-c21f-80c2-a4c6-d3879ff7af7f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3799995fc21f8090808cd53afb7a4a98"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2cfb88cf-aef0-406a-9326-9f469946fbcf%3Aimage.png?table=block&amp;id=3799995f-c21f-8090-808c-d53afb7a4a98&amp;t=3799995f-c21f-8090-808c-d53afb7a4a98" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3799995fc21f80e3946acccc876f0952"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A48add395-e2ed-49b8-942c-5046168b435f%3Aimage.png?table=block&amp;id=3799995f-c21f-80e3-946a-cccc876f0952&amp;t=3799995f-c21f-80e3-946a-cccc876f0952" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3799995fc21f8007b9daf7b48c64a80d"><li>RCC_BackupResetCmd(ENABLE或DISABLE)，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3799995fc21f8096a2ddc8c02245dd6a"><summary>BDCR_BDRST_BB</summary><div><ul class="notion-list notion-list-disc notion-block-3799995fc21f801299f3faaa47ee2ef2"><li>RCC（复位和时钟控制）的起始地址：0x40021000~0x400213FF</li></ul><ul class="notion-list notion-list-disc notion-block-3799995fc21f802aa2f0ccfb815f2c4f"><li>BDCR_BDRST_BB（值为0x42451180【0100 0010 0100 0101 0001 0001 1000 0000】）的计算过程涉及的值，分别出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><div class="notion-text notion-block-3799995fc21f8090b83ff13d2193a9ff">出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></div><div class="notion-text notion-block-3799995fc21f8099a223f347f1e0f6d8">计算过程：</div><details class="notion-toggle notion-block-3799995fc21f80f99426c1d8d6db51b7"><summary>BDCR_BDRST_BB涉及到“位段”的知识点，“位段”出自<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第29~30页</span></b></span></em>有定义</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3799995fc21f8066b8d1d443fb6f8fb1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8af73c90-111c-4518-bc6f-6445bde697c5%3Aimage.png?table=block&amp;id=3799995f-c21f-8066-b8d1-d443fb6f8fb1&amp;t=3799995f-c21f-8066-b8d1-d443fb6f8fb1" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3799995fc21f80ada905caead4e33e0e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adfc55163-7f52-455e-b430-387be6ae0e08%3Aimage.png?table=block&amp;id=3799995f-c21f-80ad-a905-caead4e33e0e&amp;t=3799995f-c21f-80ad-a905-caead4e33e0e" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-3799995fc21f80d8950ed31fe0525b04"><summary>RCC_BDCR（备份域控制寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3799995fc21f805dbb65db60701c330c"><li>RCC_BDCR备份域控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第74页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3799995fc21f80a4ae2df6cb460c8ffe"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A769bdbd5-c273-4f6d-8e35-17079bf8f774%3Aimage.png?table=block&amp;id=3799995f-c21f-80a4-ae2d-f6cb460c8ffe&amp;t=3799995f-c21f-80a4-ae2d-f6cb460c8ffe" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3799995fc21f80698757ed5b01f15ac0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A616c05ec-6055-4b96-b83e-2d3a52dfe6cf%3Aimage.png?table=block&amp;id=3799995f-c21f-8069-8757-ed5b01f15ac0&amp;t=3799995f-c21f-8069-8757-ed5b01f15ac0" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3799995fc21f800cbdf6c839d7df102e" data-id="3799995fc21f800cbdf6c839d7df102e"><span><div id="3799995fc21f800cbdf6c839d7df102e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3799995fc21f800cbdf6c839d7df102e" title="RCC_LSEConfig(RCC_LSE_ON)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_LSEConfig(RCC_LSE_ON)</span></span></h4><ul class="notion-list notion-list-disc notion-block-37a9995fc21f8054adb2d2927f5f2dfb"><li>含义：将RCC_BDCR备份域控制寄存器的第0位LSEON的值1（外部32kHz振荡器开启）</li></ul><ul class="notion-list notion-list-disc notion-block-3799995fc21f8090af62fcb858a18400"><li>参数RCC_LSE_ON，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3799995fc21f804cb035d38d2d02f1d2"><li>RCC_LSEConfig函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3799995fc21f8090ba26f0e348e55455"><summary>BDCR_ADDRESS</summary><div><ul class="notion-list notion-list-disc notion-block-3799995fc21f80b0a64ce44f425bdc53"><li>RCC（复位和时钟控制）的起始地址：0x40021000~0x400213FF</li></ul><ul class="notion-list notion-list-disc notion-block-3799995fc21f8045aa43d48b17299823"><li>BDCR_ADDRESS（值为0x40021020【0100 0000 0000 0010 0001 0000 0010 0000】，<span class="notion-red"><b>表示RCC基地址的基础上偏移0x20，即RCC_BDCR（备份域控制寄存器）</b></span>）的计算过程涉及的值，分别出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><div class="notion-text notion-block-3799995fc21f80ccb5cbcce36da6b7e5">出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></div><div class="notion-text notion-block-3799995fc21f80fc8e88e8d899234f15">计算过程：</div></div></details><details class="notion-toggle notion-block-3799995fc21f8005815cc3a44e0a0052"><summary>RCC_BDCR（备份域控制寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3799995fc21f80e8893cff8dc0ce09e5"><li>RCC_BDCR备份域控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第74页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3799995fc21f808eaa30e1fee791a93a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad8ea93bb-2e53-4360-907c-fe62335b54f5%3Aimage.png?table=block&amp;id=3799995f-c21f-808e-aa30-e1fee791a93a&amp;t=3799995f-c21f-808e-aa30-e1fee791a93a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3799995fc21f80939fefce0dd9fa220d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0fbb206d-8708-4d8a-abdc-6888a279526d%3Aimage.png?table=block&amp;id=3799995f-c21f-8093-9fef-ce0dd9fa220d&amp;t=3799995f-c21f-8093-9fef-ce0dd9fa220d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3799995fc21f800f9299fbdcc62b5fbc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A24e9e122-bb0c-4dc7-806c-e7f5316d41f4%3Aimage.png?table=block&amp;id=3799995f-c21f-800f-9299-fbdcc62b5fbc&amp;t=3799995f-c21f-800f-9299-fbdcc62b5fbc" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-37a9995fc21f8019ade2e79511213c97" data-id="37a9995fc21f8019ade2e79511213c97"><span><div id="37a9995fc21f8019ade2e79511213c97" class="notion-header-anchor"></div><a class="notion-hash-link" href="#37a9995fc21f8019ade2e79511213c97" title="while (RCC_GetFlagStatus(RCC_FLAG_LSERDY) == RESET)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">while (RCC_GetFlagStatus(RCC_FLAG_LSERDY) == RESET)</span></span></h4><ul class="notion-list notion-list-disc notion-block-37b9995fc21f803fa10df97382a2d9c2"><li>含义：判断RCC_BDCR（备份域控制寄存器）的第1位LSERDY（外部低速LSE就绪）是否为0，若等于0，则循环继续；否则结束</li></ul><ul class="notion-list notion-list-disc notion-block-37a9995fc21f80a9a8b7d456293bfe3a"><li>参数RCC_FLAG_LSERDY的值为((uint8_t)0x41)，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-37a9995fc21f80738e87c215bf0f26f6"><summary>RCC_CR（时钟控制寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-37a9995fc21f80679afada52bf27e955"><li>RCC_CR时钟控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第60~61页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f80f49ca3f2236afb1f8c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A83759ec7-32a9-4774-8a75-5b871d6202b4%3Aimage.png?table=block&amp;id=37a9995f-c21f-80f4-9ca3-f2236afb1f8c&amp;t=37a9995f-c21f-80f4-9ca3-f2236afb1f8c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f805a823ed5089bcbc314"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac3c8b421-1b4c-420f-8bee-cfa381690ada%3Aimage.png?table=block&amp;id=37a9995f-c21f-805a-823e-d5089bcbc314&amp;t=37a9995f-c21f-805a-823e-d5089bcbc314" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f8046ad5bf789408e42ee"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abc9835d0-ef4e-4a30-9d47-4868ab9e1ae1%3Aimage.png?table=block&amp;id=37a9995f-c21f-8046-ad5b-f789408e42ee&amp;t=37a9995f-c21f-8046-ad5b-f789408e42ee" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f8041b9fcd3799eb7bbf6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae1226aa8-a448-4043-a2f8-9fee30006d4b%3Aimage.png?table=block&amp;id=37a9995f-c21f-8041-b9fc-d3799eb7bbf6&amp;t=37a9995f-c21f-8041-b9fc-d3799eb7bbf6" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-37a9995fc21f801f9812d1f0965a404d"><summary>RCC_BDCR（备份域控制寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-37a9995fc21f801aa963d0643d68b6bf"><li>RCC_BDCR备份域控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第74页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f8024b57acb7b4805b8eb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1732b96c-39a9-4459-845e-5170634e3fc1%3Aimage.png?table=block&amp;id=37a9995f-c21f-8024-b57a-cb7b4805b8eb&amp;t=37a9995f-c21f-8024-b57a-cb7b4805b8eb" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f80618bdce21dbc1a2143"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A62fce7d0-456d-4ba1-9790-2d46bbda4093%3Aimage.png?table=block&amp;id=37a9995f-c21f-8061-8bdc-e21dbc1a2143&amp;t=37a9995f-c21f-8061-8bdc-e21dbc1a2143" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-37a9995fc21f805d8282ce6bca6283b4"><summary>RCC_CSR（控制/状态寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-37a9995fc21f80b29ff2eb6b25aabd0b"><li>RCC_CSR控制/状态寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第75~76页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f8089971bc52b37819ec6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aae4ff086-75e1-4be0-9a73-56a90799a217%3Aimage.png?table=block&amp;id=37a9995f-c21f-8089-971b-c52b37819ec6&amp;t=37a9995f-c21f-8089-971b-c52b37819ec6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f80d49e36f5045464600e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa010c7d3-9e3d-4a59-a390-59d07e5e0add%3Aimage.png?table=block&amp;id=37a9995f-c21f-80d4-9e36-f5045464600e&amp;t=37a9995f-c21f-80d4-9e36-f5045464600e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f8050a22df1b3270faa51"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A47cecf3c-9f52-4c69-8365-ce5e21bde033%3Aimage.png?table=block&amp;id=37a9995f-c21f-8050-a22d-f1b3270faa51&amp;t=37a9995f-c21f-8050-a22d-f1b3270faa51" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f806ea68bd660c0871326"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acd8f8798-3c26-4be6-ad0c-41359d6779cf%3Aimage.png?table=block&amp;id=37a9995f-c21f-806e-a68b-d660c0871326&amp;t=37a9995f-c21f-806e-a68b-d660c0871326" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f8075bbb0f2a6fd3a70c7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2129fbf3-650c-4bc0-ac7b-b55eb1988629%3Aimage.png?table=block&amp;id=37a9995f-c21f-8075-bbb0-f2a6fd3a70c7&amp;t=37a9995f-c21f-8075-bbb0-f2a6fd3a70c7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f80079b26fdf3ff815b9c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afeece2a4-df86-4200-a1d4-573bf1ac959e%3Aimage.png?table=block&amp;id=37a9995f-c21f-8007-9b26-fdf3ff815b9c&amp;t=37a9995f-c21f-8007-9b26-fdf3ff815b9c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f80be9184cd827d84110f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A81f4e025-fdd0-4fee-a6df-60a0abd2fd65%3Aimage.png?table=block&amp;id=37a9995f-c21f-80be-9184-cd827d84110f&amp;t=37a9995f-c21f-80be-9184-cd827d84110f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f8062afd8c1fbc4e37fb5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae12e1bf3-6199-4ae5-abe8-e5ba37ec0b78%3Aimage.png?table=block&amp;id=37a9995f-c21f-8062-afd8-c1fbc4e37fb5&amp;t=37a9995f-c21f-8062-afd8-c1fbc4e37fb5" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-37a9995fc21f803faa20e99957ad8dda" data-id="37a9995fc21f803faa20e99957ad8dda"><span><div id="37a9995fc21f803faa20e99957ad8dda" class="notion-header-anchor"></div><a class="notion-hash-link" href="#37a9995fc21f803faa20e99957ad8dda" title="RCC_GetFlagStatus(RCC_FLAG_LSERDY)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_GetFlagStatus(RCC_FLAG_LSERDY)</span></span></h4><ul class="notion-list notion-list-disc notion-block-37a9995fc21f800ea5dcd31770daa86c"><li>含义：看RCC_BDCR（备份域控制寄存器）的第1位LSERDY（外部低速LSE就绪）是否为1，即看外部32kHz振荡器是否就绪</li></ul><ul class="notion-list notion-list-disc notion-block-37a9995fc21f80d1809cf3dc2730619f"><li>出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-37a9995fc21f8039bb10c78737269779" data-id="37a9995fc21f8039bb10c78737269779"><span><div id="37a9995fc21f8039bb10c78737269779" class="notion-header-anchor"></div><a class="notion-hash-link" href="#37a9995fc21f8039bb10c78737269779" title="RCC_RTCCLKConfig(RCC_RTCCLKSource_LSE)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_RTCCLKConfig(RCC_RTCCLKSource_LSE)</span></span></h4><ul class="notion-list notion-list-disc notion-block-37a9995fc21f8017a8f6f3c1ff6ce440"><li>含义：将RCC_BDCR（备份域控制寄存器）的第8~9位RTCSEL[1:0]（RTC时钟源选择）设置值01（LSE振荡器作为RTC时钟）</li></ul><ul class="notion-list notion-list-disc notion-block-37a9995fc21f807b9288c9211a11550c"><li>参数RCC_RTCCLKSource_LSE的值为0x00000100，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-37a9995fc21f801fa395d95e9c79df29"><li>RCC_RTCCLKConfig函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-37a9995fc21f80ba9fe9eced7412e12c"><summary>RCC_BDCR（备份域控制寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-37a9995fc21f805d8c7beea268dc0822"><li>RCC_BDCR备份域控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第74页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f80239083c617c7822d0d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1732b96c-39a9-4459-845e-5170634e3fc1%3Aimage.png?table=block&amp;id=37a9995f-c21f-8023-9083-c617c7822d0d&amp;t=37a9995f-c21f-8023-9083-c617c7822d0d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37a9995fc21f80059475c333f6182cb2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad5259ea6-ca2e-443d-86c0-fadbd3b8d8d8%3Aimage.png?table=block&amp;id=37a9995f-c21f-8005-9475-c333f6182cb2&amp;t=37a9995f-c21f-8005-9475-c333f6182cb2" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-37b9995fc21f80dcb4eeecc5335073b3" data-id="37b9995fc21f80dcb4eeecc5335073b3"><span><div id="37b9995fc21f80dcb4eeecc5335073b3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#37b9995fc21f80dcb4eeecc5335073b3" title="RCC_RTCCLKCmd(ENABLE)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_RTCCLKCmd(ENABLE)</span></span></h4><ul class="notion-list notion-list-disc notion-block-37b9995fc21f8033bcefdeda409df854"><li>含义：将RCC_BDCR（备份域控制寄存器）的第15位RTCEN（RTC时钟使能）设为1（RTC时钟开启）</li></ul><ul class="notion-list notion-list-disc notion-block-37b9995fc21f80608b6de688df75e57f"><li>RCC_RTCCLKCmd函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-37b9995fc21f804f9d2fe5ed123f6654"><summary>BDCR_RTCEN_BB</summary><div><ul class="notion-list notion-list-disc notion-block-37b9995fc21f803f98c5e2d595ff1ba9"><li>含义：代表RCC_BDCR（备份域控制寄存器）的第15位RTCEN（RTC时钟使能）的位带地址</li></ul><ul class="notion-list notion-list-disc notion-block-37b9995fc21f801596e7c0a0f8e27da3"><li>RCC（复位和时钟控制）的起始地址：0x40021000~0x400213FF</li></ul><ul class="notion-list notion-list-disc notion-block-37b9995fc21f806babecf2101e2c4c42"><li>BDCR_RTCEN_BB（值为0x4245117C【0100 0010 0100 0101 0001 0001 0111 1100】）的计算过程涉及的值，分别出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><div class="notion-text notion-block-37b9995fc21f80d3a563d4d2182d941c">出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></div><div class="notion-text notion-block-37b9995fc21f804fac80e6eadf47bba8">计算过程：</div><details class="notion-toggle notion-block-37b9995fc21f800fa7bae1eade7cfe1c"><summary>BDCR_RTCEN_BB涉及到“位段”的知识点，“位段”出自<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第29~30页</span></b></span></em>有定义</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37b9995fc21f80eaa9ccd5a7123e81e4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8af73c90-111c-4518-bc6f-6445bde697c5%3Aimage.png?table=block&amp;id=37b9995f-c21f-80ea-a9cc-d5a7123e81e4&amp;t=37b9995f-c21f-80ea-a9cc-d5a7123e81e4" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37b9995fc21f80c9a053e0996e096506"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adfc55163-7f52-455e-b430-387be6ae0e08%3Aimage.png?table=block&amp;id=37b9995f-c21f-80c9-a053-e0996e096506&amp;t=37b9995f-c21f-80c9-a053-e0996e096506" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-37b9995fc21f80b68318c17e07050358"><summary>RCC_BDCR（备份域控制寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-37b9995fc21f80bf821cc105aaf7339c"><li>RCC_BDCR备份域控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第74页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37b9995fc21f80dbb5dffce4d0d02225"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A769bdbd5-c273-4f6d-8e35-17079bf8f774%3Aimage.png?table=block&amp;id=37b9995f-c21f-80db-b5df-fce4d0d02225&amp;t=37b9995f-c21f-80db-b5df-fce4d0d02225" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37b9995fc21f80da8df4fd1d97f266db"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa54632b5-2096-481c-8d27-a40a5b352a7a%3Aimage.png?table=block&amp;id=37b9995f-c21f-80da-8df4-fd1d97f266db&amp;t=37b9995f-c21f-80da-8df4-fd1d97f266db" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-37c9995fc21f80d89df9eeaaa9dd0474" data-id="37c9995fc21f80d89df9eeaaa9dd0474"><span><div id="37c9995fc21f80d89df9eeaaa9dd0474" class="notion-header-anchor"></div><a class="notion-hash-link" href="#37c9995fc21f80d89df9eeaaa9dd0474" title="RTC_WaitForSynchro()"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RTC_WaitForSynchro()</span></span></h4><ul class="notion-list notion-list-disc notion-block-37c9995fc21f8070b24ae5556072ed7c"><li>含义：先对RTC_CRL（RTC控制寄存器低位）的第3位RSF（寄存器同步标志）进行清零，然后等待RTC核心寄存器与APB1总线时钟完成同步，即硬件会将第3位RSF（寄存器同步标志）置为1</li></ul><ul class="notion-list notion-list-disc notion-block-37c9995fc21f80ea9c7ec136ac7678b1"><li>RTC_WaitForSynchro函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rtc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-37c9995fc21f80329bbcde2e41e82159"><summary>RTC_FLAG_RSF</summary><div><ul class="notion-list notion-list-disc notion-block-37c9995fc21f802f9e36ef343f120b8a"><li>含义：代表RTC_CRL（RTC控制寄存器低位）的第3位RSF（寄存器同步标志）</li></ul><ul class="notion-list notion-list-disc notion-block-37c9995fc21f807b9bd0f2ac288b3670"><li>RTC_FLAG_RSF的值为：0x0008【0000 0000 0000 1000】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rtc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><div class="notion-blank notion-block-37c9995fc21f80059608c3bc397b61de"> </div></div></details><details class="notion-toggle notion-block-37c9995fc21f807eb0a9fd5c933efcb4"><summary>RTC_CRL（RTC控制寄存器低位）</summary><div><ul class="notion-list notion-list-disc notion-block-37c9995fc21f80e3a9bfe541829aeb69"><li>RTC_CRLRTC控制寄存器低位在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第311~312页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37c9995fc21f80d2b4f7c7094c625a37"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2c410a3a-5af5-45d1-ad36-e897e3eeacc8%3Aimage.png?table=block&amp;id=37c9995f-c21f-80d2-b4f7-c7094c625a37&amp;t=37c9995f-c21f-80d2-b4f7-c7094c625a37" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37c9995fc21f809ea164dc62ac609665"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afb837ce7-f1e7-4dc2-b6ea-ad7d19f9b026%3Aimage.png?table=block&amp;id=37c9995f-c21f-809e-a164-dc62ac609665&amp;t=37c9995f-c21f-809e-a164-dc62ac609665" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37c9995fc21f80cbb4c9d30e6c3405d5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad8ef22a5-e642-4891-b213-66c2454f6f03%3Aimage.png?table=block&amp;id=37c9995f-c21f-80cb-b4c9-d30e6c3405d5&amp;t=37c9995f-c21f-80cb-b4c9-d30e6c3405d5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37c9995fc21f80d8a821f7b2d51b886c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aaf5ca436-58e6-4351-b798-f6c4adc7078f%3Aimage.png?table=block&amp;id=37c9995f-c21f-80d8-a821-f7b2d51b886c&amp;t=37c9995f-c21f-80d8-a821-f7b2d51b886c" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-37c9995fc21f8080bcace6728754c50a" data-id="37c9995fc21f8080bcace6728754c50a"><span><div id="37c9995fc21f8080bcace6728754c50a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#37c9995fc21f8080bcace6728754c50a" title="RTC_WaitForLastTask()"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RTC_WaitForLastTask()</span></span></h4><ul class="notion-list notion-list-disc notion-block-37c9995fc21f8098b247c9beea5000ed"><li>含义：等待上一次对RTC寄存器的写操作已经完成，即硬件会将RTC_CRL（RTC控制寄存器低位）的第5位RTOFF（RTC操作关闭）置为1</li></ul><ul class="notion-list notion-list-disc notion-block-37c9995fc21f8093b94ad01a87c59ab0"><li>RTC_WaitForLastTask函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rtc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-37c9995fc21f8050858ceef81371ae07"><summary>RTC_FLAG_RTOFF</summary><div><ul class="notion-list notion-list-disc notion-block-37c9995fc21f801eba43ef767c89e8d4"><li>含义：代表RTC_CRL（RTC控制寄存器低位）的第5位RTOFF（RTC操作关闭）</li></ul><ul class="notion-list notion-list-disc notion-block-37c9995fc21f8048af9cd60edcb84189"><li>RTC_FLAG_RTOFF的值为：0x0020【0000 0000 0010 0000】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rtc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-37c9995fc21f80f29f24fa8a86e9bb2c"><summary>RTC_CRL（RTC控制寄存器低位）</summary><div><ul class="notion-list notion-list-disc notion-block-37c9995fc21f80de81ccd1da2a5ab74e"><li>RTC控制寄存器低位RTC_CRL在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第311~312页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37c9995fc21f8056a62fe319889ea66a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2c410a3a-5af5-45d1-ad36-e897e3eeacc8%3Aimage.png?table=block&amp;id=37c9995f-c21f-8056-a62f-e319889ea66a&amp;t=37c9995f-c21f-8056-a62f-e319889ea66a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37c9995fc21f8096945ac22ec83dbb12"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afb837ce7-f1e7-4dc2-b6ea-ad7d19f9b026%3Aimage.png?table=block&amp;id=37c9995f-c21f-8096-945a-c22ec83dbb12&amp;t=37c9995f-c21f-8096-945a-c22ec83dbb12" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37c9995fc21f808ab87cfd5df620620a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad8ef22a5-e642-4891-b213-66c2454f6f03%3Aimage.png?table=block&amp;id=37c9995f-c21f-808a-b87c-fd5df620620a&amp;t=37c9995f-c21f-808a-b87c-fd5df620620a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37c9995fc21f807cb30aefb7a7767cb0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aaf5ca436-58e6-4351-b798-f6c4adc7078f%3Aimage.png?table=block&amp;id=37c9995f-c21f-807c-b30a-efb7a7767cb0&amp;t=37c9995f-c21f-807c-b30a-efb7a7767cb0" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-37d9995fc21f80228146e8d0349ba8f7" data-id="37d9995fc21f80228146e8d0349ba8f7"><span><div id="37d9995fc21f80228146e8d0349ba8f7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#37d9995fc21f80228146e8d0349ba8f7" title="RTC_SetPrescaler(32767)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RTC_SetPrescaler(32767)</span></span></h4><ul class="notion-list notion-list-disc notion-block-37e9995fc21f8069bb3cc4a6372a9d25"><li>含义：把32767的值写入PRL寄存器中，目的是<b>把高频的 32.768kHz 时钟，分频降频成 1Hz 的秒脉冲</b>，给 RTC 计数器使用</li></ul><ul class="notion-list notion-list-disc notion-block-37d9995fc21f807183aadef8080c2376"><li>RTC_SetPrescaler函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rtc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-37e9995fc21f803295d3ef88953078b3"><summary><code class="notion-inline-code">IS_RTC_PRESCALER(PrescalerValue)</code></summary><div><ul class="notion-list notion-list-disc notion-block-37e9995fc21f80668b12edb017c1af4d"><li>IS_RTC_PRESCALER函数，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rtc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-37d9995fc21f80f8ade0d3d680b34229"><summary><code class="notion-inline-code">RTC_EnterConfigMode()</code></summary><div><ul class="notion-list notion-list-disc notion-block-37e9995fc21f8045aeeac04b6ac426a0"><li>含义：将RTC_CRL（RTC控制寄存器低位）的第4位CNF（配置标志）设为1（进入配置模式）</li></ul><ul class="notion-list notion-list-disc notion-block-37d9995fc21f80568385f6068441a390"><li>RTC_EnterConfigMode函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rtc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-37e9995fc21f806e863ae18d81294326"><summary>RTC_CRL_CNF</summary><div><ul class="notion-list notion-list-disc notion-block-37e9995fc21f803abdc1e930849256a8"><li>出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-37e9995fc21f80a6a11ef3c41b9e7a17"><summary>RTC_CRL（RTC控制寄存器低位）</summary><div><ul class="notion-list notion-list-disc notion-block-37e9995fc21f8098878be0e6748301f7"><li>RTC控制寄存器低位RTC_CRL在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第311~312页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f802cb17ee4c21bbb1f2d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2c410a3a-5af5-45d1-ad36-e897e3eeacc8%3Aimage.png?table=block&amp;id=37e9995f-c21f-802c-b17e-e4c21bbb1f2d&amp;t=37e9995f-c21f-802c-b17e-e4c21bbb1f2d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f808cb0a1d9323ce219f7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afb837ce7-f1e7-4dc2-b6ea-ad7d19f9b026%3Aimage.png?table=block&amp;id=37e9995f-c21f-808c-b0a1-d9323ce219f7&amp;t=37e9995f-c21f-808c-b0a1-d9323ce219f7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f80928e44cd72b0d999d2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad8ef22a5-e642-4891-b213-66c2454f6f03%3Aimage.png?table=block&amp;id=37e9995f-c21f-8092-8e44-cd72b0d999d2&amp;t=37e9995f-c21f-8092-8e44-cd72b0d999d2" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f80f2bd8ecf561036c20e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aaf5ca436-58e6-4351-b798-f6c4adc7078f%3Aimage.png?table=block&amp;id=37e9995f-c21f-80f2-bd8e-cf561036c20e&amp;t=37e9995f-c21f-80f2-bd8e-cf561036c20e" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-37e9995fc21f80d186fbe9704483a90d"><summary><code class="notion-inline-code">RTC-&gt;PRLH = (PrescalerValue &amp; PRLH_MSB_MASK) &gt;&gt; 16</code></summary><div><ul class="notion-list notion-list-disc notion-block-37e9995fc21f802f8ccbdc3a5409dbd0"><li>含义：将RTC_PRLH（RTC预分频装载寄存器高位）的第0~15位设置为0x0000</li></ul><ul class="notion-list notion-list-disc notion-block-37e9995fc21f8083a0f8cf53e9359e37"><li>PRLH_MSB_MASK的值为0x000F0000【0000 0000 0000 1111 0000 0000 0000 0000】</li></ul><ul class="notion-list notion-list-disc notion-block-37e9995fc21f80478c8bd09ef3d728c1"><li><code class="notion-inline-code">(PrescalerValue &amp; PRLH_MSB_MASK)</code>：在示例中，PrescalerValue为32767（0x7FFF【0111 1111 1111 1111】），那么(PrescalerValue &amp; PRLH_MSB_MASK)的值为0x00000000</li></ul><ul class="notion-list notion-list-disc notion-block-37e9995fc21f80929a3ae8f26338fee7"><li><code class="notion-inline-code">(PrescalerValue &amp; PRLH_MSB_MASK) &gt;&gt; 16</code> 的值为0x00000000</li></ul><details class="notion-toggle notion-block-37e9995fc21f80f2a028cccc55602418"><summary>RTC_PRLH（RTC预分频装载寄存器高位）</summary><div><ul class="notion-list notion-list-disc notion-block-37e9995fc21f80399bc9c5242a2e24ce"><li>RTC预分频装载寄存器高位RTC_PRLH在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第312~313页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f808a9cc1efb18ea2971f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4f31ccca-4d3e-4abe-a71e-25ecff4e4bcb%3Aimage.png?table=block&amp;id=37e9995f-c21f-808a-9cc1-efb18ea2971f&amp;t=37e9995f-c21f-808a-9cc1-efb18ea2971f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f80699865d31c711ab688"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae386742e-9232-40d7-98b1-8df16950bba6%3Aimage.png?table=block&amp;id=37e9995f-c21f-8069-9865-d31c711ab688&amp;t=37e9995f-c21f-8069-9865-d31c711ab688" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-37e9995fc21f8009b649d6d64d809315"><summary><code class="notion-inline-code">RTC-&gt;PRLL = (PrescalerValue &amp; RTC_LSB_MASK)</code></summary><div><ul class="notion-list notion-list-disc notion-block-37e9995fc21f80b08a36f5b0ebebbbdc"><li>含义：将RTC_PRLL（RTC预分频装载寄存器低位）的第0~15位设置为0x7FFF</li></ul><ul class="notion-list notion-list-disc notion-block-37e9995fc21f809c9875ce111b109e12"><li>RTC_LSB_MASK的值为0x0000FFFF【0000 0000 0000 0000 1111 1111 1111 1111】</li></ul><ul class="notion-list notion-list-disc notion-block-37e9995fc21f80138515ecead94702d8"><li><code class="notion-inline-code">(PrescalerValue &amp; RTC_LSB_MASK)</code>：在示例中，PrescalerValue为32767（0x7FFF【0111 1111 1111 1111】），那么(PrescalerValue &amp; RTC_LSB_MASK)的值为0x00007FFF</li></ul><details class="notion-toggle notion-block-37e9995fc21f80dd97a5ddad51e34ae9"><summary>RTC_PRLL（RTC预分频装载寄存器低位）</summary><div><ul class="notion-list notion-list-disc notion-block-37e9995fc21f80e4b69ed5acf1f54d6e"><li>RTC预分频装载寄存器高位RTC_PRLH在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第313页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f806fb96ef573c152ab84"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A86761db0-cbf4-4536-b5dd-ec9994443f3a%3Aimage.png?table=block&amp;id=37e9995f-c21f-806f-b96e-f573c152ab84&amp;t=37e9995f-c21f-806f-b96e-f573c152ab84" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-37d9995fc21f808c9f9ffeb43bf3d62b"><summary><code class="notion-inline-code">RTC_ExitConfigMode()</code></summary><div><ul class="notion-list notion-list-disc notion-block-37e9995fc21f80c2864fc21830bd6d4f"><li>含义：将RTC_CRL（RTC控制寄存器低位）的第4位CNF（配置标志）设为0（退出配置模式（开始更新RTC寄存器））</li></ul><ul class="notion-list notion-list-disc notion-block-37e9995fc21f801d9052d47e6c2b913b"><li>RTC_EnterConfigMode函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rtc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-37e9995fc21f80759e7feb7e477afce3"><summary>RTC_CRL_CNF</summary><div><ul class="notion-list notion-list-disc notion-block-37e9995fc21f80dd94a4d897399d8026"><li>出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-37e9995fc21f8074ba48dd55c1e23d07"><summary>RTC_CRL（RTC控制寄存器低位）</summary><div><ul class="notion-list notion-list-disc notion-block-37e9995fc21f8020aaccc479cddf31a0"><li>RTC控制寄存器低位RTC_CRL在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第311~312页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f80f7bd86f74a96d65edc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2c410a3a-5af5-45d1-ad36-e897e3eeacc8%3Aimage.png?table=block&amp;id=37e9995f-c21f-80f7-bd86-f74a96d65edc&amp;t=37e9995f-c21f-80f7-bd86-f74a96d65edc" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f80f98df2e0fae9f90aae"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afb837ce7-f1e7-4dc2-b6ea-ad7d19f9b026%3Aimage.png?table=block&amp;id=37e9995f-c21f-80f9-8df2-e0fae9f90aae&amp;t=37e9995f-c21f-80f9-8df2-e0fae9f90aae" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f8067a76ee298cdaa741f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad8ef22a5-e642-4891-b213-66c2454f6f03%3Aimage.png?table=block&amp;id=37e9995f-c21f-8067-a76e-e298cdaa741f&amp;t=37e9995f-c21f-8067-a76e-e298cdaa741f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f804cb050d41e61d0be37"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aaf5ca436-58e6-4351-b798-f6c4adc7078f%3Aimage.png?table=block&amp;id=37e9995f-c21f-804c-b050-d41e61d0be37&amp;t=37e9995f-c21f-804c-b050-d41e61d0be37" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-37e9995fc21f803e9e1dc52378692243"><summary><span class="notion-pink"><b>★ ※ 什么是 RTC 预分频？预分频装载是什么？</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f8010950cda38aee39fe3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac4922876-6d34-4763-99fc-7dd42800500c%3Aimage.png?table=block&amp;id=37e9995f-c21f-8010-950c-da38aee39fe3&amp;t=37e9995f-c21f-8010-950c-da38aee39fe3" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-37e9995fc21f80f3b645fb16bc9a516b"><summary><span class="notion-pink"><b>★ ※ 参考手册中寄存器RTC预分频装载寄存器（RTC_PRLH/RTC_PRLL）的解释</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f80b6a22ceda49812a4b4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8205d0a3-279e-4a2b-8463-292928cc2a05%3Aimage.png?table=block&amp;id=37e9995f-c21f-80b6-a22c-eda49812a4b4&amp;t=37e9995f-c21f-80b6-a22c-eda49812a4b4" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f80d9b0e2d5c02008061b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adad9d23b-ead6-4337-85b7-c8319238813d%3Aimage.png?table=block&amp;id=37e9995f-c21f-80d9-b0e2-d5c02008061b&amp;t=37e9995f-c21f-80d9-b0e2-d5c02008061b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f8050a2f0e8d7d62e79a8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aecd3b064-35f2-45e3-92e5-22fa4bb9ede2%3Aimage.png?table=block&amp;id=37e9995f-c21f-8050-a2f0-e8d7d62e79a8&amp;t=37e9995f-c21f-8050-a2f0-e8d7d62e79a8" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-37e9995fc21f80b586b4c32bb4b861b4"><summary><span class="notion-pink"><b>★ ※ 为什么这么设计？（设计原因深度解析）</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f803aa6e5ce11bb28c33f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2e18cd46-f6a7-4fb8-a098-34b59306b689%3Aimage.png?table=block&amp;id=37e9995f-c21f-803a-a6e5-ce11bb28c33f&amp;t=37e9995f-c21f-803a-a6e5-ce11bb28c33f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f8073be5ae6c4e317e3df"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acaa4562e-ced0-4781-ad21-b51e1717013e%3Aimage.png?table=block&amp;id=37e9995f-c21f-8073-be5a-e6c4e317e3df&amp;t=37e9995f-c21f-8073-be5a-e6c4e317e3df" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-37e9995fc21f8093a8e3f32c154bbe22"><summary><span class="notion-pink"><b>★ ※ 为什么要设置成 32767？（公式推导）</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37e9995fc21f800ab172f9fb64c50c37"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9d0a5e20-ff4c-407c-bb71-bd15e4e06960%3Aimage.png?table=block&amp;id=37e9995f-c21f-800a-b172-f9fb64c50c37&amp;t=37e9995f-c21f-800a-b172-f9fb64c50c37" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-37f9995fc21f8038ac16f09e740db72d" data-id="37f9995fc21f8038ac16f09e740db72d"><span><div id="37f9995fc21f8038ac16f09e740db72d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#37f9995fc21f8038ac16f09e740db72d" title="RTC_ITConfig(RTC_IT_SEC, ENABLE)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RTC_ITConfig(RTC_IT_SEC, ENABLE)</span></span></h4><ul class="notion-list notion-list-disc notion-block-37f9995fc21f8016bd94e2a7ce1e9414"><li>含义：将RTC_CRH（RTC控制寄存器高位）的第0位SECIE（允许秒中断）设置为1（允许秒中断）</li></ul><ul class="notion-list notion-list-disc notion-block-37f9995fc21f8047bf4dd21557ad09ad"><li>第一个参数RTC_IT_SEC的值为0x0001，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><table class="notion-simple-table notion-block-37f9995fc21f803a9c18ffc0a02f0ef0"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-37f9995fc21f8044a99bed9d4a383f1a"><td class="" style="width:141.4px"><div class="notion-simple-table-cell">宏定义</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">十六进制值</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">对应 CRH 寄存器位</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">位名称</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">功能说明</div></td></tr><tr class="notion-simple-table-row notion-block-37f9995fc21f801eb81adc0fec2add3d"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">RTC_IT_OW</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">0x0004</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">位 2</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">OWIE</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">溢出中断使能：1 = 开启溢出中断，0 = 屏蔽</div></td></tr><tr class="notion-simple-table-row notion-block-37f9995fc21f80a296b6c6c75726339d"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">RTC_IT_ALR</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">0x0002</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">位 1</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">ALRIE</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">闹钟中断使能：1 = 开启闹钟中断，0 = 屏蔽</div></td></tr><tr class="notion-simple-table-row notion-block-37f9995fc21f801199cae4a3c7918f95"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">RTC_IT_SEC</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">0x0001</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">位 0</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">SECIE</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">秒中断使能：1 = 开启秒中断，0 = 屏蔽</div></td></tr></tbody></table><ul class="notion-list notion-list-disc notion-block-37e9995fc21f80ed9134c030dc71c4aa"><li>RTC_ITConfig函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rtc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-37f9995fc21f80f5aabcd9fe981d42cb"><summary>RTC_CRH（RTC控制寄存器高位）</summary><div><ul class="notion-list notion-list-disc notion-block-37f9995fc21f805fa47dc440baff55ac"><li>RTC控制寄存器高位RTC_CRH在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第311页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-37f9995fc21f80b2b5f1c2661d6b078e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae36e3d8d-f374-4a89-bd63-42a5823be2a2%3Aimage.png?table=block&amp;id=37f9995f-c21f-80b2-b5f1-c2661d6b078e&amp;t=37f9995f-c21f-80b2-b5f1-c2661d6b078e" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-37f9995fc21f80d89af8d8d79a68dc2e" data-id="37f9995fc21f80d89af8d8d79a68dc2e"><span><div id="37f9995fc21f80d89af8d8d79a68dc2e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#37f9995fc21f80d89af8d8d79a68dc2e" title="6.2 RTC_Config(void)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">6.2 RTC_Config(void)</span></span></h3><details class="notion-toggle notion-block-3829995fc21f8039a551de7e6d7a85db"><summary><span class="notion-pink"><b>NRST 是什么</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f80439f61ccaa014d2285"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abe6ddeac-9fc4-499f-a2fe-d18ac8944d9e%3Aimage.png?table=block&amp;id=3829995f-c21f-8043-9f61-ccaa014d2285&amp;t=3829995f-c21f-8043-9f61-ccaa014d2285" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3829995fc21f80209007f938681722c5"><summary><span class="notion-pink"><b>为什么要写RTC_Config 函数</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f8067ab6df26192a59d0a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A606a0a04-a695-4928-941d-6bf97d1d45f4%3Aimage.png?table=block&amp;id=3829995f-c21f-8067-ab6d-f26192a59d0a&amp;t=3829995f-c21f-8067-ab6d-f26192a59d0a" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3829995fc21f80708f19f1952ac02d07"><summary><span class="notion-pink"><b>函数整体流程框架</b></span></summary><div></div></details><details class="notion-toggle notion-block-3829995fc21f80aaab09c51f1233900b"><summary><span class="notion-pink"><b>逐段拆解：每一步为什么这么设计？寄存器有什么关联？</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f808a8e27e4ed2e734489"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa71be796-3a2a-4b47-aa0e-98a5360ef625%3Aimage.png?table=block&amp;id=3829995f-c21f-808a-8e27-e4ed2e734489&amp;t=3829995f-c21f-808a-8e27-e4ed2e734489" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f80fd8fd2e1361f7a9035"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A838f5ca6-ecc7-4403-8dab-2c08de2aa95e%3Aimage.png?table=block&amp;id=3829995f-c21f-80fd-8fd2-e1361f7a9035&amp;t=3829995f-c21f-80fd-8fd2-e1361f7a9035" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f80da9554ecb351e86d06"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afd8ae215-b4a5-4b57-9e3d-083d67fdc249%3Aimage.png?table=block&amp;id=3829995f-c21f-80da-9554-ecb351e86d06&amp;t=3829995f-c21f-80da-9554-ecb351e86d06" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f8011b81bd6b36a48a56e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acbd452d8-3df8-49f5-83d6-ea8063d9ee56%3Aimage.png?table=block&amp;id=3829995f-c21f-8011-b81b-d6b36a48a56e&amp;t=3829995f-c21f-8011-b81b-d6b36a48a56e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f80818d0de6629e79993e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4bbb9c52-b872-4770-ad2d-b96f9a6a169f%3Aimage.png?table=block&amp;id=3829995f-c21f-8081-8d0d-e6629e79993e&amp;t=3829995f-c21f-8081-8d0d-e6629e79993e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f807faa91d3be1675a58c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2937bb1b-f7f5-475b-9f90-e99bba6fa798%3Aimage.png?table=block&amp;id=3829995f-c21f-807f-aa91-d3be1675a58c&amp;t=3829995f-c21f-807f-aa91-d3be1675a58c" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3829995fc21f80508387e931488d8ab8"><summary><span class="notion-pink"><b>从零开始：怎么一步步想出这个设计流程？</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f80379466fb318c2aaba7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ade3cd086-5dcf-4d94-9a84-fc410e889c27%3Aimage.png?table=block&amp;id=3829995f-c21f-8037-9466-fb318c2aaba7&amp;t=3829995f-c21f-8037-9466-fb318c2aaba7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f80498d02d8ac832ac6e9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A904359d6-fff0-44fc-ac41-e4b59367b7d1%3Aimage.png?table=block&amp;id=3829995f-c21f-8049-8d02-d8ac832ac6e9&amp;t=3829995f-c21f-8049-8d02-d8ac832ac6e9" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3829995fc21f8069b8bfd7a60b7f56d6"><summary><span class="notion-pink"><b>所有寄存器操作的依赖关系</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f8092bf23e1e587bebba4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acdfe74d5-33f9-4e8b-a647-469983d1a1d8%3Aimage.png?table=block&amp;id=3829995f-c21f-8092-bf23-e1e587bebba4&amp;t=3829995f-c21f-8092-bf23-e1e587bebba4" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3829995fc21f806da977c6f1ae2448f0"><summary><span class="notion-pink"><b>重新使能RTC（之前错误解释，现在重新解释）</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f802ebdbad936384fec29"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A22e8664d-2119-4808-9965-241c5c9f1629%3Aimage.png?table=block&amp;id=3829995f-c21f-802e-bdba-d936384fec29&amp;t=3829995f-c21f-802e-bdba-d936384fec29" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f80f790b0f39260231164"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9e2f1a11-d71d-4d57-b25e-5839be33195a%3Aimage.png?table=block&amp;id=3829995f-c21f-80f7-90b0-f39260231164&amp;t=3829995f-c21f-80f7-90b0-f39260231164" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f809fba68f4618e2e3f85"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Add2bffaf-671f-4ac1-a3cf-127ef4577002%3Aimage.png?table=block&amp;id=3829995f-c21f-809f-ba68-f4618e2e3f85&amp;t=3829995f-c21f-809f-ba68-f4618e2e3f85" alt="notion image" loading="lazy" decoding="async"/></div></figure><table class="notion-simple-table notion-block-3829995fc21f80d092adf60a3d01003f"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3829995fc21f802dac66ea2355018c97"><td class="" style="width:154.75px"><div class="notion-simple-table-cell">时钟使能</div></td><td class="" style="width:154.75px"><div class="notion-simple-table-cell">所在寄存器</div></td><td class="" style="width:154.75px"><div class="notion-simple-table-cell">所属电源域</div></td><td class="" style="width:154.75px"><div class="notion-simple-table-cell">电源复位（VDD 掉电 / 上电）的影响</div></td></tr><tr class="notion-simple-table-row notion-block-3829995fc21f80e79c9ffbb33702d8c4"><td class="" style="width:154.75px"><div class="notion-simple-table-cell"><b>RTC 内核时钟使能（RTCEN 位）</b></div></td><td class="" style="width:154.75px"><div class="notion-simple-table-cell">RCC_BDCR 第 15 位</div></td><td class="" style="width:154.75px"><div class="notion-simple-table-cell">备份域（VBAT 供电）</div></td><td class="" style="width:154.75px"><div class="notion-simple-table-cell"><b>完全无影响，不会清零</b>。只要纽扣电池有电，RTCEN 位一直保持 1，RTC 内核全程计时不中断</div></td></tr><tr class="notion-simple-table-row notion-block-3829995fc21f808280edec70255ee874"><td class="" style="width:154.75px"><div class="notion-simple-table-cell"><b>RTC/BKP 寄存器访问接口时钟（BKPEN 位）</b></div></td><td class="" style="width:154.75px"><div class="notion-simple-table-cell">RCC_APB1ENR 第 18 位</div></td><td class="" style="width:154.75px"><div class="notion-simple-table-cell">主电源域（VDD 供电）</div></td><td class="" style="width:154.75px"><div class="notion-simple-table-cell"><b>一定会清零</b>。复位后 CPU 要读写 RTC、BKP 的寄存器，必须重新开启这个接口时钟</div></td></tr></tbody></table><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f808fa951cd7f308c36d6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac401407f-0356-4a25-825b-7f576bcef653%3Aimage.png?table=block&amp;id=3829995f-c21f-808f-a951-cd7f308c36d6&amp;t=3829995f-c21f-808f-a951-cd7f308c36d6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f808d8a6cd8b0f5164108"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A67c79843-bf59-4c40-892d-6c79abc9e57f%3Aimage.png?table=block&amp;id=3829995f-c21f-808d-8a6c-d8b0f5164108&amp;t=3829995f-c21f-808d-8a6c-d8b0f5164108" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-37f9995fc21f8029bbc1c57523249aa1" data-id="37f9995fc21f8029bbc1c57523249aa1"><span><div id="37f9995fc21f8029bbc1c57523249aa1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#37f9995fc21f8029bbc1c57523249aa1" title="BKP_ReadBackupRegister(BKP_DR1) != 0xA5A5"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">BKP_ReadBackupRegister(BKP_DR1) != 0xA5A5</span></span></h4><ul class="notion-list notion-list-disc notion-block-37f9995fc21f80e2a70cda8f9ec11820"><li>含义：从0x40006C04地址读出的备份数据寄存器x（BKP_DRx）的值不等于0xA5A5，则为true；否则为false</li></ul><ul class="notion-list notion-list-disc notion-block-37f9995fc21f80f4a827e51a79eb88ba"><li>参数BKP_DR1的值为0x0004【0000 0000 0000 0100】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_bkp.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-37f9995fc21f80a2b4fbd37189cfd073"><li>BKP_ReadBackupRegister函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_bkp.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-37f9995fc21f8028a149c79f90a9bc2c"><summary>BKP_BASE</summary><div><ul class="notion-list notion-list-disc notion-block-37f9995fc21f8099b91df6b6493dd9a7"><li>后备寄存器（BKP）的起始地址：0x4000 6C00 ~ 0x4000 6FFF</li></ul><ul class="notion-list notion-list-disc notion-block-37f9995fc21f807c83f4f2c44c12e73f"><li>BKP_BASE的值为0x40006C00，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-3809995fc21f8072af13d2fcc11231cc"><summary>备份数据寄存器x（BKP_DRx）</summary><div><ul class="notion-list notion-list-disc notion-block-3809995fc21f80ec821ff341fce01696"><li>BKP_DRx备份数据寄存器x在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第48页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f800980f2e5d2fa94c7ae"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A75343cd8-3cb8-4938-8ca7-859b5e16e1b5%3Aimage.png?table=block&amp;id=3809995f-c21f-8009-80f2-e5d2fa94c7ae&amp;t=3809995f-c21f-8009-80f2-e5d2fa94c7ae" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3809995fc21f80b78f97cf4432c83c39" data-id="3809995fc21f80b78f97cf4432c83c39"><span><div id="3809995fc21f80b78f97cf4432c83c39" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3809995fc21f80b78f97cf4432c83c39" title="BKP_WriteBackupRegister(BKP_DR1, 0xA5A5)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">BKP_WriteBackupRegister(BKP_DR1, 0xA5A5)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3809995fc21f8025b93cc865e7389220"><li>含义：将0xA5A5的值写入到地址为0x40006C04的备份数据寄存器x（BKP_DRx）</li></ul><ul class="notion-list notion-list-disc notion-block-3809995fc21f800fb21bffe1296a7fc4"><li>第一个参数BKP_DR1的值为0x0004【0000 0000 0000 0100】<em><span class="notion-pink"><b>（上一个有说明）</b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3809995fc21f8048ae8bf82b696b5b66"><li>BKP_WriteBackupRegister函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_bkp.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3809995fc21f8062a82fca659b250737"><summary>备份数据寄存器x（BKP_DRx）</summary><div><ul class="notion-list notion-list-disc notion-block-3809995fc21f80519747e035a2fee87a"><li>BKP_DRx备份数据寄存器x在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第48页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f80d2858cfc97c3f56435"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A75343cd8-3cb8-4938-8ca7-859b5e16e1b5%3Aimage.png?table=block&amp;id=3809995f-c21f-80d2-858c-fc97c3f56435&amp;t=3809995f-c21f-80d2-858c-fc97c3f56435" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3809995fc21f80f0a39ecfc84d500b72" data-id="3809995fc21f80f0a39ecfc84d500b72"><span><div id="3809995fc21f80f0a39ecfc84d500b72" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3809995fc21f80f0a39ecfc84d500b72" title="RCC_GetFlagStatus(RCC_FLAG_PORRST) != RESET 和 RCC_GetFlagStatus(RCC_FLAG_PINRST) != RESET"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_GetFlagStatus(RCC_FLAG_PORRST) != RESET 和 RCC_GetFlagStatus(RCC_FLAG_PINRST) != RESET</span></span></h4><ul class="notion-list notion-list-disc notion-block-3809995fc21f80b8a96beef45ef73bc2"><li><span class="notion-red"><b>含义：</b></span></li><ul class="notion-list notion-list-disc notion-block-3809995fc21f80b8a96beef45ef73bc2"><li><span class="notion-red"><b>前者：</b></span>看RCC_CSR（控制/状态寄存器）的第27位PORRSFT（上电/掉电复位标志）是否发生上电/掉电复位，若发生，则该位的值为1，则代码为true；否则值为0，代码为false。</li><li><span class="notion-red"><b>后者：</b></span>看RCC_CSR（控制/状态寄存器）的第26位PINRSTF（NRST引脚复位标志）是否发生NRST引脚复位，若发生，则该位的值为1，则代码为true；否则值为0，代码为false。</li></ul></ul><ul class="notion-list notion-list-disc notion-block-3809995fc21f8026aa61fab0f138813c"><li>参数RCC_FLAG_PORRST的值为((uint8_t)0x7B)、RCC_FLAG_PINRST的值为((uint8_t)0x7A)，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3809995fc21f80c897e6d07d61be5944"><summary>RCC_CR（时钟控制寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3809995fc21f805f971dd164ac94e0fb"><li>RCC_CR时钟控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第60~61页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f804ab28bc0f021b78853"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A83759ec7-32a9-4774-8a75-5b871d6202b4%3Aimage.png?table=block&amp;id=3809995f-c21f-804a-b28b-c0f021b78853&amp;t=3809995f-c21f-804a-b28b-c0f021b78853" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f80979ea6c2149ae7e3d3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac3c8b421-1b4c-420f-8bee-cfa381690ada%3Aimage.png?table=block&amp;id=3809995f-c21f-8097-9ea6-c2149ae7e3d3&amp;t=3809995f-c21f-8097-9ea6-c2149ae7e3d3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f80c2936fe2f5eb63153b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abc9835d0-ef4e-4a30-9d47-4868ab9e1ae1%3Aimage.png?table=block&amp;id=3809995f-c21f-80c2-936f-e2f5eb63153b&amp;t=3809995f-c21f-80c2-936f-e2f5eb63153b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f80fa9cf2e347eaab7baf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae1226aa8-a448-4043-a2f8-9fee30006d4b%3Aimage.png?table=block&amp;id=3809995f-c21f-80fa-9cf2-e347eaab7baf&amp;t=3809995f-c21f-80fa-9cf2-e347eaab7baf" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3809995fc21f8072b12ffc8aa4f536c2"><summary>RCC_BDCR（备份域控制寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3809995fc21f808cb759f7f77233639f"><li>RCC_BDCR备份域控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第74页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f805b9222c2c95699dc51"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1732b96c-39a9-4459-845e-5170634e3fc1%3Aimage.png?table=block&amp;id=3809995f-c21f-805b-9222-c2c95699dc51&amp;t=3809995f-c21f-805b-9222-c2c95699dc51" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f80e29f58ee10a5c2d11e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A62fce7d0-456d-4ba1-9790-2d46bbda4093%3Aimage.png?table=block&amp;id=3809995f-c21f-80e2-9f58-ee10a5c2d11e&amp;t=3809995f-c21f-80e2-9f58-ee10a5c2d11e" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3809995fc21f80438ebcd306fb1416e3"><summary>RCC_CSR（控制/状态寄存器）- - - <span class="notion-teal"><b>与参数有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3809995fc21f8020a9f8c8edc20c78a9"><li>RCC_CSR控制/状态寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第75~76页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f809db6aac7a25f1a277d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aae4ff086-75e1-4be0-9a73-56a90799a217%3Aimage.png?table=block&amp;id=3809995f-c21f-809d-b6aa-c7a25f1a277d&amp;t=3809995f-c21f-809d-b6aa-c7a25f1a277d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f809c8459d323fd542ece"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa010c7d3-9e3d-4a59-a390-59d07e5e0add%3Aimage.png?table=block&amp;id=3809995f-c21f-809c-8459-d323fd542ece&amp;t=3809995f-c21f-809c-8459-d323fd542ece" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f80ad92dbc2cbffb4e564"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A47cecf3c-9f52-4c69-8365-ce5e21bde033%3Aimage.png?table=block&amp;id=3809995f-c21f-80ad-92db-c2cbffb4e564&amp;t=3809995f-c21f-80ad-92db-c2cbffb4e564" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f80ff88d6f7ad6334a5a6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acd8f8798-3c26-4be6-ad0c-41359d6779cf%3Aimage.png?table=block&amp;id=3809995f-c21f-80ff-88d6-f7ad6334a5a6&amp;t=3809995f-c21f-80ff-88d6-f7ad6334a5a6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f80c29dd0cc6a3fa9a443"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2129fbf3-650c-4bc0-ac7b-b55eb1988629%3Aimage.png?table=block&amp;id=3809995f-c21f-80c2-9dd0-cc6a3fa9a443&amp;t=3809995f-c21f-80c2-9dd0-cc6a3fa9a443" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f8024bf23d0522e181463"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afeece2a4-df86-4200-a1d4-573bf1ac959e%3Aimage.png?table=block&amp;id=3809995f-c21f-8024-bf23-d0522e181463&amp;t=3809995f-c21f-8024-bf23-d0522e181463" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f807ca39ffaf530048e8f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A81f4e025-fdd0-4fee-a6df-60a0abd2fd65%3Aimage.png?table=block&amp;id=3809995f-c21f-807c-a39f-faf530048e8f&amp;t=3809995f-c21f-807c-a39f-faf530048e8f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3809995fc21f8079bdd5df158465c541"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae12e1bf3-6199-4ae5-abe8-e5ba37ec0b78%3Aimage.png?table=block&amp;id=3809995f-c21f-8079-bdd5-df158465c541&amp;t=3809995f-c21f-8079-bdd5-df158465c541" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3809995fc21f80e0b9f2ff0e9dc276cf"><summary><span class="notion-red"><span class="notion-default_background"><b>★ </b></span></span><span class="notion-red"><b>RCC_GetFlagStatus(RCC_FLAG_PORRST) 和 RCC_GetFlagStatus(RCC_FLAG_PINRST)</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3809995fc21f8095b09cf24135a936fc"><li><b>整体作用</b>：</li><ul class="notion-list notion-list-disc notion-block-3809995fc21f8095b09cf24135a936fc"><li><span class="notion-red"><b>前者：</b></span>看是否有上电/掉电复位</li><li><span class="notion-red"><b>后者：</b></span>看是否有NRST引脚复位</li></ul></ul><ul class="notion-list notion-list-disc notion-block-3809995fc21f80ef8886f7533d3ce8ef"><li>出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3809995fc21f8073979bfc65e3ea5e35" data-id="3809995fc21f8073979bfc65e3ea5e35"><span><div id="3809995fc21f8073979bfc65e3ea5e35" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3809995fc21f8073979bfc65e3ea5e35" title="RCC_ClearFlag( )"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RCC_ClearFlag( )</span></span></h4><ul class="notion-list notion-list-disc notion-block-3819995fc21f806aa899ed69846ec64f"><li>含义：对RCC_CSR（控制/状态寄存器）的第24位RMVF（清除复位标志）置为1（清除复位标志），导致硬件自动清零全部复位标志</li></ul><ul class="notion-list notion-list-disc notion-block-3819995fc21f803196c0fc3d564884ac"><li>RCC_ClearFlag函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3819995fc21f80b79316f27fe0247abe"><summary>RCC_CSR（控制/状态寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3819995fc21f801ca1a4ceab4dbe04bf"><li>RCC_CSR控制/状态寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第75~76页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3819995fc21f807fb6e0ecba3fc21ee5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aae4ff086-75e1-4be0-9a73-56a90799a217%3Aimage.png?table=block&amp;id=3819995f-c21f-807f-b6e0-ecba3fc21ee5&amp;t=3819995f-c21f-807f-b6e0-ecba3fc21ee5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3819995fc21f805fa7a3cd8f281764ba"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8ad45f13-4650-4f02-9bc4-17c1fa605d84%3Aimage.png?table=block&amp;id=3819995f-c21f-805f-a7a3-cd8f281764ba&amp;t=3819995f-c21f-805f-a7a3-cd8f281764ba" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3819995fc21f80439ca2eb57c8c709a5" data-id="3819995fc21f80439ca2eb57c8c709a5"><span><div id="3819995fc21f80439ca2eb57c8c709a5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3819995fc21f80439ca2eb57c8c709a5" title="BKP_TamperPinCmd(DISABLE)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">BKP_TamperPinCmd(DISABLE)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3819995fc21f808e8e11d30c6de62ade"><li>含义：对备份控制寄存器（BKP_CR）的第0位TPE（启动侵入检测TAMPER引脚）设置为0（侵入检测TAMPER引脚作为通用IO口使用）</li></ul><details class="notion-toggle notion-block-3829995fc21f807897b3f9531ca7c655"><summary><span class="notion-pink"><b>Tamper 是什么意思？</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f80b3a5b5ea2fe310b487"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A81d741a0-0dc3-4855-b648-f8ed1ee01087%3Aimage.png?table=block&amp;id=3829995f-c21f-80b3-a5b5-ea2fe310b487&amp;t=3829995f-c21f-80b3-a5b5-ea2fe310b487" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3829995fc21f805fbb91f27b525062ce"><summary><span class="notion-pink"><b>Tamper 侵入检测功能是什么？侵入代表什么？（形象举例）</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f806ba059fd7fc6eee305"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae836b5a6-2a78-457a-9110-0621ebf4c477%3Aimage.png?table=block&amp;id=3829995f-c21f-806b-a059-fd7fc6eee305&amp;t=3829995f-c21f-806b-a059-fd7fc6eee305" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3819995fc21f80eea727f54d12ece166"><li>BKP_TamperPinCmd函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_bkp.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3819995fc21f804f8718cac073c55386"><summary><code class="notion-inline-code">*(__IO uint32_t *) CR_TPE_BB = (uint32_t)NewState</code></summary><div><ul class="notion-list notion-list-disc notion-block-3819995fc21f80f78e2cdd1f6d8462f1"><li>外设BKP（后备寄存器）的起始地址：0x4000 6C00 ~ 0x4000 6FFF</li></ul><ul class="notion-list notion-list-disc notion-block-3819995fc21f8055b387d30e68d2403a"><li>含义：对备份控制寄存器（BKP_CR）的第0位TPE（启动侵入检测TAMPER引脚）设置为0（侵入检测TAMPER引脚作为通用IO口使用）</li></ul><ul class="notion-list notion-list-disc notion-block-3819995fc21f80209dc9cfc13ea446fc"><li>CR_TPE_BB（值为0x420D8600【0100 0010 0000 1101 1000 0110 0000 0000】）的计算过程涉及的值，分别出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_bkp.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><div class="notion-text notion-block-3819995fc21f8056ad0ff0f0efae9a7a">出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></div><div class="notion-text notion-block-3819995fc21f8034a457f39134fcef0d">计算过程：</div><details class="notion-toggle notion-block-3819995fc21f80978d43d7b2c353a0c7"><summary>CR_TPE_BB涉及到“位段”的知识点，“位段”出自<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第29~30页</span></b></span></em>有定义</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3819995fc21f8015b52bc7b2170c0e83"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8af73c90-111c-4518-bc6f-6445bde697c5%3Aimage.png?table=block&amp;id=3819995f-c21f-8015-b52b-c7b2170c0e83&amp;t=3819995f-c21f-8015-b52b-c7b2170c0e83" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3819995fc21f8027be89fe187d060d9a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adfc55163-7f52-455e-b430-387be6ae0e08%3Aimage.png?table=block&amp;id=3819995f-c21f-8027-be89-fe187d060d9a&amp;t=3819995f-c21f-8027-be89-fe187d060d9a" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-3819995fc21f80209974dc9c39a5e44b"><summary>BKP_CR（备份控制寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3819995fc21f80cbbb44f1fc0f75be09"><li>BKP_CR备份控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第49页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3819995fc21f80b395d6c78cdfb97f3a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A832d5242-c872-4df7-85d2-aca8d6328596%3Aimage.png?table=block&amp;id=3819995f-c21f-80b3-95d6-c78cdfb97f3a&amp;t=3819995f-c21f-80b3-95d6-c78cdfb97f3a" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3819995fc21f80b595e2f5926c3d336a" data-id="3819995fc21f80b595e2f5926c3d336a"><span><div id="3819995fc21f80b595e2f5926c3d336a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3819995fc21f80b595e2f5926c3d336a" title="BKP_RTCOutputConfig(BKP_RTCOutputSource_CalibClock)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">BKP_RTCOutputConfig(BKP_RTCOutputSource_CalibClock)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3819995fc21f801d9b0ac6eebb81cc92"><li>含义：将BKP_RTCCR（RTC时钟校准寄存器）的第7位CCO（校准时钟输出）设置为1（此位置1可以在侵入检测引脚输出经64分频后的RTC时钟。当CCO位置1时，必须关闭侵入检测功能以避免检测到无用的侵入信号）</li></ul><ul class="notion-list notion-list-disc notion-block-3819995fc21f80e5b6c0e688db196570"><li>参数BKP_RTCOutputSource_CalibClock的值为0x0080【0000 0000 1000 0000】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_bkp.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><table class="notion-simple-table notion-block-3819995fc21f80b78bdcf573cee86916"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3819995fc21f803fa555f4c53154023c"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">寄存器位</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">位序号</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">对应功能模式</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">硬件功能说明</div></td></tr><tr class="notion-simple-table-row notion-block-3819995fc21f8057b85cc3f4f6b843fb"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">ASOS</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">位 9</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">闹钟 / 秒输出选择</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">仅 ASOE 置 1 时生效：0 = Tamper 引脚输出 RTC 闹钟脉冲1 = Tamper 引脚输出 RTC 秒脉冲</div></td></tr><tr class="notion-simple-table-row notion-block-3819995fc21f80c9aca2e4e5e326ab1d"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">ASOE</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">位 8</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">闹钟 / 秒输出使能</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">总开关：置 1 后允许 RTC 闹钟 / 秒脉冲输出到 Tamper 引脚</div></td></tr><tr class="notion-simple-table-row notion-block-3819995fc21f8086b9fdf0a2c8020a86"><td class="" style="width:176.75px"><div class="notion-simple-table-cell">CCO</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">位 7</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">校准时钟输出使能</div></td><td class="" style="width:176.75px"><div class="notion-simple-table-cell">置 1 后，Tamper 引脚输出经 64 分频后的 RTC 时钟，用于时钟校准</div></td></tr></tbody></table><ul class="notion-list notion-list-disc notion-block-3819995fc21f80d0a52fded864c2880b"><li>BKP_RTCOutputConfig函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_bkp.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3819995fc21f806a9090ebb8ffe185b7"><summary>BKP_RTCCR（RTC时钟校准寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3819995fc21f805aaa28e8c962535e71"><li>RTC时钟校准寄存器BKP_RTCCR在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第48~49页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3819995fc21f805f8352dfeef2d2f506"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:644.4205322265625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5c4316ca-7fb3-4db1-a807-15c4b8d36a06%3Aimage.png?table=block&amp;id=3819995f-c21f-805f-8352-dfeef2d2f506&amp;t=3819995f-c21f-805f-8352-dfeef2d2f506" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3819995fc21f80da8beef89a4c9522cd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:644.4140625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae9c87d4e-9e10-4d73-bd6b-ce6b6108ef8e%3Aimage.png?table=block&amp;id=3819995f-c21f-80da-8bee-f89a4c9522cd&amp;t=3819995f-c21f-80da-8bee-f89a4c9522cd" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3829995fc21f8034be52c0e4c220d336"><summary><span class="notion-pink"><b>BKP_RTCCR 寄存器每一位的含义（大白话 + 举例）</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f805ea16ffcac687f7fb7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9adb923c-dff5-4212-b76b-c5adb307cf07%3Aimage.png?table=block&amp;id=3829995f-c21f-805e-a16f-fcac687f7fb7&amp;t=3829995f-c21f-805e-a16f-fcac687f7fb7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f80df95aaf154667045e4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aef853c9d-6c85-4821-acf0-829190d7dddc%3Aimage.png?table=block&amp;id=3829995f-c21f-80df-95aa-f154667045e4&amp;t=3829995f-c21f-80df-95aa-f154667045e4" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-3829995fc21f8093b882c34d5317547d"> </div></div></details><details class="notion-toggle notion-block-3829995fc21f8008aea3d34c63f10638"><summary><span class="notion-pink"><b>BKP_RTCCR 每个位之间的关联和上一个图片末尾的CAL的举例计算说明</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f80c58862caebf76a438d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A506ba14f-91a0-43ea-a4ed-0b87de1a0351%3Aimage.png?table=block&amp;id=3829995f-c21f-80c5-8862-caebf76a438d&amp;t=3829995f-c21f-80c5-8862-caebf76a438d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f80de95b2f83a523a8e83"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac6e77e49-b868-40dc-beea-64291fb9cc63%3Aimage.png?table=block&amp;id=3829995f-c21f-80de-95b2-f83a523a8e83&amp;t=3829995f-c21f-80de-95b2-f83a523a8e83" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f80a8b790f465539db4bb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A936213fc-a7d2-4277-b410-9841205e7455%3Aimage.png?table=block&amp;id=3829995f-c21f-80a8-b790-f465539db4bb&amp;t=3829995f-c21f-80a8-b790-f465539db4bb" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f80ccb15aea84793aaecb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A71e8ea7d-ed75-454a-8452-815a778497c7%3Aimage.png?table=block&amp;id=3829995f-c21f-80cc-b15a-ea84793aaecb&amp;t=3829995f-c21f-80cc-b15a-ea84793aaecb" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f8044808cd7e20b81fcb0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aec4af788-3310-48cd-a93f-f4805f213792%3Aimage.png?table=block&amp;id=3829995f-c21f-8044-808c-d7e20b81fcb0&amp;t=3829995f-c21f-8044-808c-d7e20b81fcb0" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3829995fc21f807bb4bbd446831649ed"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5b9fb20b-05a5-4448-a38f-71b556dc774f%3Aimage.png?table=block&amp;id=3829995f-c21f-807b-b4bb-d446831649ed&amp;t=3829995f-c21f-807b-b4bb-d446831649ed" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3839995fc21f8096840aeb800fa8a08e" data-id="3839995fc21f8096840aeb800fa8a08e"><span><div id="3839995fc21f8096840aeb800fa8a08e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3839995fc21f8096840aeb800fa8a08e" title="6.3 RTC_IRQHandler(void)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">6.3 RTC_IRQHandler(void)</span></span></h3><details class="notion-toggle notion-block-3839995fc21f80a9af8ec62c1b26921b"><summary><span class="notion-pink"><b>函数整体定位与核心目的</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f80879e9fc17ba7804745"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2a45a887-b9dc-4a8c-953d-f11794b5e542%3Aimage.png?table=block&amp;id=3839995f-c21f-8087-9e9f-c17ba7804745&amp;t=3839995f-c21f-8087-9e9f-c17ba7804745" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3839995fc21f80218f6cef04380875bd"><summary><span class="notion-pink"><b>逐行流程拆解 + 设计逻辑（为什么是这个顺序）</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-3839995fc21f8077bc33fec0b11a46a8"><li>整个函数完全遵循 <b>STM32 外设中断的通用标准流程：「进入中断 → 校验中断源 → 执行业务逻辑 → 清除中断标志 → 等待操作生效 → 退出中断」</b>，每一步的顺序都是硬件机制决定的，不是凭空设计的。</li></ul><table class="notion-simple-table notion-block-3839995fc21f80af92f7fdc513391571"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3839995fc21f80a6bc2bd167d37a9ef4"><td class="" style="width:143.5px"><div class="notion-simple-table-cell">步骤</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">代码</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">作用与设计逻辑</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">硬件寄存器关联</div></td></tr><tr class="notion-simple-table-row notion-block-3839995fc21f800391b9de2df68cf402"><td class="" style="width:143.5px"><div class="notion-simple-table-cell">1</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell"><code class="notion-inline-code">if (RTC_GetITStatus(RTC_IT_SEC) != RESET)</code></div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell"><b>中断源校验</b>：确认本次中断是不是「秒中断」触发的。👉 设计原因：RTC 的秒、闹钟、溢出 3 个中断共用同一个中断向量，进入中断后必须先区分是哪个事件触发的，避免误处理；同时校验「中断使能 + 事件标志」双条件，排除未使能的干扰。</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">同时读取两个寄存器：- <code class="notion-inline-code">RTC_CRH</code> 位 0 <code class="notion-inline-code">SECIE</code>（秒中断使能开关）- <code class="notion-inline-code">RTC_CRL</code> 位 0 <code class="notion-inline-code">SECF</code>（秒事件标志）只有两者都为 1，才是合法的秒中断触发。</div></td></tr><tr class="notion-simple-table-row notion-block-3839995fc21f807ebf15c47dd431735f"><td class="" style="width:143.5px"><div class="notion-simple-table-cell">2</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">秒中断处理逻辑</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell"><b>业务执行</b>：放在判断分支内，只有确认是秒中断才执行。👉 设计原则：中断服务函数要「快进快出」，这里只放短平快的核心逻辑（如时间计数 + 1），绝对不能放延时、串口打印等耗时操作，否则会阻塞其他中断。</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">无寄存器操作，纯软件业务逻辑。</div></td></tr><tr class="notion-simple-table-row notion-block-3839995fc21f800b9f63d23a32ff8a9a"><td class="" style="width:143.5px"><div class="notion-simple-table-cell">3</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell"><code class="notion-inline-code">RTC_ClearITPendingBit(RTC_IT_SEC);</code></div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell"><b>清除中断挂起标志</b>：把秒事件标志位清零，应答本次中断。👉 为什么必须做？硬件机制决定：中断标志位被硬件置 1 后会一直保持，如果软件不清零，退出中断后标志位还是 1，会立刻再次触发中断，导致程序死在中断里永远出不来。</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">写 <code class="notion-inline-code">RTC_CRL</code> 位 0 <code class="notion-inline-code">SECF</code>，写 0 清零（硬件规定写 1 无效）。</div></td></tr><tr class="notion-simple-table-row notion-block-3839995fc21f80cdac3fd7342ea8ee02"><td class="" style="width:143.5px"><div class="notion-simple-table-cell">4</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell"><code class="notion-inline-code">RTC_WaitForLastTask();</code></div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell"><b>等待写操作完成</b>：等待 RTC 硬件真正完成寄存器写入。👉 为什么要等？RTC 是低速外设（时钟 32.768kHz），APB1 总线是高速时钟（最高 36MHz），软件写寄存器只是把数据发到总线接口，硬件需要几个 RTC 时钟周期才能真正写入寄存器。如果不等就退出，后续操作 RTC 可能出现写入失败、值不对的问题。</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">循环读 <code class="notion-inline-code">RTC_CRL</code> 位 5 <code class="notion-inline-code">RTOFF</code>，直到硬件将其置 1（代表上一次写操作完成）。</div></td></tr></tbody></table></div></details><details class="notion-toggle notion-block-3839995fc21f80d08761edea450c87cd"><summary><span class="notion-pink"><b>寄存器的关联与顺序必然性</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f807f9374d6abf5f3381f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A19d881da-be03-4d19-92d0-ecff181075c0%3Aimage.png?table=block&amp;id=3839995f-c21f-807f-9374-d6abf5f3381f&amp;t=3839995f-c21f-807f-9374-d6abf5f3381f" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3839995fc21f80afa8c7e44ebbfd462b"><summary><span class="notion-pink"><b>从零推导：没有参考怎么写出这个流程？</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f800c9ea1dc02820a3bea"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A68a9a706-a172-464d-a457-fa87a6a0fe74%3Aimage.png?table=block&amp;id=3839995f-c21f-800c-9ea1-dc02820a3bea&amp;t=3839995f-c21f-800c-9ea1-dc02820a3bea" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3839995fc21f8039ba9ae06a87fbf69d"><summary><span class="notion-pink"><b>核心疑问解答：为什么不一块清除中断使能？</b></span></summary><div><table class="notion-simple-table notion-block-3839995fc21f80aabe82ecf3c35add13"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3839995fc21f8094b1adfd8f53c94f7e"><td class="" style="width:143.5px"><div class="notion-simple-table-cell">概念</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">对应位</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">作用</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">类比</div></td></tr><tr class="notion-simple-table-row notion-block-3839995fc21f808fbb9ffec70fa7b42f"><td class="" style="width:143.5px"><div class="notion-simple-table-cell">中断使能 <code class="notion-inline-code">SECIE</code></div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">RTC_CRH 位 0</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">「中断总开关」：决定事件发生时要不要通知 CPU。置 1 就通知，置 0 就不通知，但事件本身还是会发生（标志位照常置 1）。</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">门铃的电源开关：开着的时候有人按就响，关了之后按了也不响。</div></td></tr><tr class="notion-simple-table-row notion-block-3839995fc21f80f4ac6acdf9c24e2aae"><td class="" style="width:143.5px"><div class="notion-simple-table-cell">中断标志 <code class="notion-inline-code">SECF</code></div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">RTC_CRL 位 0</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">「事件标记」：只要秒事件发生，硬件就自动置 1，和使能开关无关。</div></td><td class="" style="width:143.5px"><div class="notion-simple-table-cell">门铃的铃声：有人按就一直响，直到你手动关掉。</div></td></tr></tbody></table><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f80e38815dddb9f265509"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad9df65f0-7ff0-4ccf-b374-51108a636ad0%3Aimage.png?table=block&amp;id=3839995f-c21f-80e3-8815-dddb9f265509&amp;t=3839995f-c21f-80e3-8815-dddb9f265509" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3839995fc21f80b9b9d7cbf79939168f" data-id="3839995fc21f80b9b9d7cbf79939168f"><span><div id="3839995fc21f80b9b9d7cbf79939168f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3839995fc21f80b9b9d7cbf79939168f" title="RTC_GetITStatus(RTC_IT_SEC) != RESET"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RTC_GetITStatus(RTC_IT_SEC) != RESET</span></span></h4><ul class="notion-list notion-list-disc notion-block-3839995fc21f80b48791f7ba6bcc2598"><li>含义：检查RTC指定中断是否已经触发（同时校验「中断使能状态」与「中断事件标志」），即检查RTC_CRH（RTC控制寄存器高位）的第0位SECIE（允许秒中断）是否为1（允许秒中断）和RTC_CRL（RTC控制寄存器低位）的第0位SECF（秒标志）是否为1（秒标志条件成立），若都为1，则返回1，那么代码为true；否则为false</li></ul><ul class="notion-list notion-list-disc notion-block-3839995fc21f804594d5fe0201c7b575"><li>参数RTC_IT_SEC的值为0x0001，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><table class="notion-simple-table notion-block-3839995fc21f80e381fac663d5b63c39"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3839995fc21f80b99264ebf1c91cfa07"><td class="" style="width:141.4px"><div class="notion-simple-table-cell">宏定义</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">十六进制值</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">对应 CRH 寄存器位</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">位名称</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">功能说明</div></td></tr><tr class="notion-simple-table-row notion-block-3839995fc21f807cbcc8d6f1961c72d2"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">RTC_IT_OW</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">0x0004</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">位 2</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">OWIE</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">溢出中断使能：1 = 开启溢出中断，0 = 屏蔽</div></td></tr><tr class="notion-simple-table-row notion-block-3839995fc21f80da933fde920cb43088"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">RTC_IT_ALR</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">0x0002</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">位 1</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">ALRIE</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">闹钟中断使能：1 = 开启闹钟中断，0 = 屏蔽</div></td></tr><tr class="notion-simple-table-row notion-block-3839995fc21f802e8264ef02422438e6"><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">RTC_IT_SEC</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell"><code class="notion-inline-code">0x0001</code></div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">位 0</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">SECIE</div></td><td class="" style="width:141.4px"><div class="notion-simple-table-cell">秒中断使能：1 = 开启秒中断，0 = 屏蔽</div></td></tr></tbody></table><ul class="notion-list notion-list-disc notion-block-3839995fc21f80f8bc9ce8ce0b96eb47"><li>RTC_GetITStatus函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rtc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3839995fc21f80a5a98ed2efd4af0e86"><summary>RTC_CRH（RTC控制寄存器高位）</summary><div><ul class="notion-list notion-list-disc notion-block-3839995fc21f80cebf84e0e600b94eb7"><li>RTC控制寄存器高位RTC_CRH在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第311页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f808388ddcccf0ba098d5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af2b868cb-cce8-4152-acaf-5a3611bfd93f%3Aimage.png?table=block&amp;id=3839995f-c21f-8083-88dd-cccf0ba098d5&amp;t=3839995f-c21f-8083-88dd-cccf0ba098d5" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3839995fc21f8065bd6cd0388ac2e977"><summary>RTC_CRL（RTC控制寄存器低位）</summary><div><ul class="notion-list notion-list-disc notion-block-3839995fc21f80b9aca8e4afd73df10f"><li>RTC控制寄存器低位RTC_CRL在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第311~312页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f8061a4ecfad43217c403"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac0526301-44d1-42ba-ae1e-e58277ee8c4f%3Aimage.png?table=block&amp;id=3839995f-c21f-8061-a4ec-fad43217c403&amp;t=3839995f-c21f-8061-a4ec-fad43217c403" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f80708862c7ca61689d1a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4b93da8a-d942-4a6e-8f0f-d3d859a86efc%3Aimage.png?table=block&amp;id=3839995f-c21f-8070-8862-c7ca61689d1a&amp;t=3839995f-c21f-8070-8862-c7ca61689d1a" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3839995fc21f80a5aa33e192511e133f" data-id="3839995fc21f80a5aa33e192511e133f"><span><div id="3839995fc21f80a5aa33e192511e133f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3839995fc21f80a5aa33e192511e133f" title="RTC_ClearITPendingBit(RTC_IT_SEC)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RTC_ClearITPendingBit(RTC_IT_SEC)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3839995fc21f804686aff716b9885607"><li>含义：对RTC_CRL（RTC控制寄存器低位）的第0位SECF（秒标志）置为0（秒标志条件不成立），即清除RTC指定的中断挂起标志位（清除RTC_CRL寄存器中的事件标志）</li></ul><ul class="notion-list notion-list-disc notion-block-3839995fc21f80ce953ce736bd2ca3bc"><li>参数RTC_IT_SEC在上一个有说明，且值为0x0001</li></ul><ul class="notion-list notion-list-disc notion-block-3839995fc21f800d9a59d3ce25393b6b"><li>RTC_ClearITPendingBit函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rtc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3839995fc21f80fb95b2fb82ed070efb"><summary>RTC_CRL（RTC控制寄存器低位）</summary><div><ul class="notion-list notion-list-disc notion-block-3839995fc21f8097930de7600b39a336"><li>RTC控制寄存器低位RTC_CRL在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第311~312页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f80ee91adc9792020502d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac0526301-44d1-42ba-ae1e-e58277ee8c4f%3Aimage.png?table=block&amp;id=3839995f-c21f-80ee-91ad-c9792020502d&amp;t=3839995f-c21f-80ee-91ad-c9792020502d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f80a2bab2f738fcb23dc2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4b93da8a-d942-4a6e-8f0f-d3d859a86efc%3Aimage.png?table=block&amp;id=3839995f-c21f-80a2-bab2-f738fcb23dc2&amp;t=3839995f-c21f-80a2-bab2-f738fcb23dc2" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3839995fc21f8059ae3dcd5810e4b3a0" data-id="3839995fc21f8059ae3dcd5810e4b3a0"><span><div id="3839995fc21f8059ae3dcd5810e4b3a0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3839995fc21f8059ae3dcd5810e4b3a0" title="6.4 u8 const table_week[12] = {0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5}"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">6.4 u8 const table_week[12] = {0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5}</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f805ba3f0d158bdf6ff40"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad3c2d8cd-ce5e-42fd-b67f-5a6a94486a22%3Aimage.png?table=block&amp;id=3839995f-c21f-805b-a3f0-d158bdf6ff40&amp;t=3839995f-c21f-805b-a3f0-d158bdf6ff40" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f80e9ac8ef647fea67fe3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9e160250-cfa4-4af0-87bf-e63887831f04%3Aimage.png?table=block&amp;id=3839995f-c21f-80e9-ac8e-f647fea67fe3&amp;t=3839995f-c21f-80e9-ac8e-f647fea67fe3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f80a18051e1d43335addc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acf79e4f1-796d-4731-8a06-57e0a1bf83c2%3Aimage.png?table=block&amp;id=3839995f-c21f-80a1-8051-e1d43335addc&amp;t=3839995f-c21f-80a1-8051-e1d43335addc" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f80fe87c7dc88ef15574c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A634fc207-140d-475a-b00c-9971f64a6496%3Aimage.png?table=block&amp;id=3839995f-c21f-80fe-87c7-dc88ef15574c&amp;t=3839995f-c21f-80fe-87c7-dc88ef15574c" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3839995fc21f8064ae41d32b8fa7c6cb" data-id="3839995fc21f8064ae41d32b8fa7c6cb"><span><div id="3839995fc21f8064ae41d32b8fa7c6cb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3839995fc21f8064ae41d32b8fa7c6cb" title="6.5 RTC_Set(u16 syear, u8 smon, u8 sday, u8 hour, u8 min, u8 sec)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">6.5 RTC_Set(u16 syear, u8 smon, u8 sday, u8 hour, u8 min, u8 sec)</span></span></h3><details class="notion-toggle notion-block-3839995fc21f8099a72ae10e1f109e80"><summary><span class="notion-pink"><b>函数核心定位与设计目的</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f809897edf61a38e1edb0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A99de0840-059d-44a1-a82d-7ed3ceb74f5a%3Aimage.png?table=block&amp;id=3839995f-c21f-8098-97ed-f61a38e1edb0&amp;t=3839995f-c21f-8098-97ed-f61a38e1edb0" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3839995fc21f809a855cfc7ced2f888c"><summary><span class="notion-pink"><b>逐段流程拆解 + 设计逻辑</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f8078a7dbf175bf671471"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afd0e7c99-05df-4bf4-aeca-6b4a68999495%3Aimage.png?table=block&amp;id=3839995f-c21f-8078-a7db-f175bf671471&amp;t=3839995f-c21f-8078-a7db-f175bf671471" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f80c0839dc7b915a06a48"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad999c908-6d35-4462-8e3c-7465ff51a5d8%3Aimage.png?table=block&amp;id=3839995f-c21f-80c0-839d-c7b915a06a48&amp;t=3839995f-c21f-80c0-839d-c7b915a06a48" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f80fcbfcac825e9263bfe"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A937f036c-e357-4027-9d6f-de9267c3e80d%3Aimage.png?table=block&amp;id=3839995f-c21f-80fc-bfca-c825e9263bfe&amp;t=3839995f-c21f-80fc-bfca-c825e9263bfe" alt="notion image" loading="lazy" decoding="async"/></div></figure><table class="notion-simple-table notion-block-3839995fc21f80909175c73d0fbe50bc"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3839995fc21f8089bc2bdef2e1d5af8e"><td class="" style="width:309.5px"><div class="notion-simple-table-cell">硬件场景</div></td><td class="" style="width:309.5px"><div class="notion-simple-table-cell">重新初始化的作用</div></td></tr><tr class="notion-simple-table-row notion-block-3839995fc21f806aace9ff73f3773936"><td class="" style="width:309.5px"><div class="notion-simple-table-cell">第一次使用，备份域完全没电（纽扣电池也空了）</div></td><td class="" style="width:309.5px"><div class="notion-simple-table-cell">所有配置都丢了，必须从头完整初始化，否则根本写不了 RTC 寄存器</div></td></tr><tr class="notion-simple-table-row notion-block-3839995fc21f80f1923be42d0bab0134"><td class="" style="width:309.5px"><div class="notion-simple-table-cell">主电源掉电 / 复位，备份域有电池供电</div></td><td class="" style="width:309.5px"><div class="notion-simple-table-cell">主电源域的 PWR 时钟、BKP 接口时钟会被复位清零，备份域写保护会重新开启；重新初始化能重新开时钟、解写保护，恢复 CPU 对 RTC 的写权限</div></td></tr><tr class="notion-simple-table-row notion-block-3839995fc21f80539a0eec4f409dbd05"><td class="" style="width:309.5px"><div class="notion-simple-table-cell">正常运行中，用户主动修改时间</div></td><td class="" style="width:309.5px"><div class="notion-simple-table-cell">所有配置本来就是好的，重新初始化只是再写一遍相同的值，没有任何影响，相当于加了一层保险，防止万一寄存器被干扰篡改</div></td></tr></tbody></table><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f80f89951c49f714df868"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A10dac4ea-9121-416a-aeee-66f965f2b78d%3Aimage.png?table=block&amp;id=3839995f-c21f-80f8-9951-c49f714df868&amp;t=3839995f-c21f-80f8-9951-c49f714df868" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3839995fc21f8097bad2e8c598db6ac8"><summary><span class="notion-pink"><b>寄存器操作的关联与顺序必然性</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f8010984cd980cf7e2764"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A91bca348-ccbe-4ebf-833f-a5516951cdb5%3Aimage.png?table=block&amp;id=3839995f-c21f-8010-984c-d980cf7e2764&amp;t=3839995f-c21f-8010-984c-d980cf7e2764" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3839995fc21f80eab4bcec7747a60eb4"><summary><span class="notion-pink"><b>复位过程</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f80cba10ede4fd4b127d9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6b22fedd-ec2e-4996-970a-3dc433870017%3Aimage.png?table=block&amp;id=3839995f-c21f-80cb-a10e-de4fd4b127d9&amp;t=3839995f-c21f-80cb-a10e-de4fd4b127d9" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3839995fc21f800b8aadf5648f26d047" data-id="3839995fc21f800b8aadf5648f26d047"><span><div id="3839995fc21f800b8aadf5648f26d047" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3839995fc21f800b8aadf5648f26d047" title="RTC_SetCounter(seccount)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">RTC_SetCounter(seccount)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3839995fc21f80b690b4dc3ec7515b4e"><li>含义：主要是将seccount（秒的差距总数）写入RTC_CNTH / RTC_CNTL（RTC计数器寄存器）中，其中高16位写入RTC_CNTH，低16位写入RTC_CNTL</li></ul><ul class="notion-list notion-list-disc notion-block-3839995fc21f80b7be81c9fc98301845"><li>RTC_SetCounter函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rtc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3839995fc21f804b9c1dfbac4f149eb6"><summary>RTC_CRL（RTC控制寄存器低位）</summary><div><ul class="notion-list notion-list-disc notion-block-3839995fc21f80f58204ec51a1081eee"><li>RTC控制寄存器低位RTC_CRL在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第311~312页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f8018846ae1f29c438b4b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac0526301-44d1-42ba-ae1e-e58277ee8c4f%3Aimage.png?table=block&amp;id=3839995f-c21f-8018-846a-e1f29c438b4b&amp;t=3839995f-c21f-8018-846a-e1f29c438b4b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f80bb9479fc89dfbfe2a8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7954a2e7-f942-4b69-b751-a9c4a4f42c1b%3Aimage.png?table=block&amp;id=3839995f-c21f-80bb-9479-fc89dfbfe2a8&amp;t=3839995f-c21f-80bb-9479-fc89dfbfe2a8" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3839995fc21f808b9d1cd8978ed0374c"><summary>RTC_CNTH / RTC_CNTL（RTC计数器寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3839995fc21f80808c05c65c62b6b9c7"><li>RTC计数器寄存器RTC_CNTH / RTC_CNTL在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第313~314页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f805990b6d43a58bc9f96"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7fb29c34-0479-4792-a0f9-d54b473f1c29%3Aimage.png?table=block&amp;id=3839995f-c21f-8059-90b6-d43a58bc9f96&amp;t=3839995f-c21f-8059-90b6-d43a58bc9f96" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3839995fc21f803b87b8d8fcdd9346b9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac215e53e-2e49-49e0-b126-84f836f55785%3Aimage.png?table=block&amp;id=3839995f-c21f-803b-87b8-d8fcdd9346b9&amp;t=3839995f-c21f-803b-87b8-d8fcdd9346b9" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3849995fc21f803b8050c4d3bfba1272" data-id="3849995fc21f803b8050c4d3bfba1272"><span><div id="3849995fc21f803b8050c4d3bfba1272" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3849995fc21f803b8050c4d3bfba1272" title="6.6 RTC_Get(void)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">6.6 RTC_Get(void)</span></span></h3><details class="notion-toggle notion-block-3859995fc21f80569477cd61fac40210"><summary><span class="notion-pink"><b>以2024年2月29号18点20分20秒为例子进行计算</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f806fb3c4c72fac3b4372"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A86f7a063-10a7-4ecf-83fb-e70f14ad0d63%3Aimage.png?table=block&amp;id=3859995f-c21f-806f-b3c4-c72fac3b4372&amp;t=3859995f-c21f-806f-b3c4-c72fac3b4372" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f800b992bd8724bef4d1c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A70ecc518-0d7b-4f0b-81de-08c89cdeee5d%3Aimage.png?table=block&amp;id=3859995f-c21f-800b-992b-d8724bef4d1c&amp;t=3859995f-c21f-800b-992b-d8724bef4d1c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f80b6a8fff8e50a448c6b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac0e22496-aef0-448b-8670-a3758adb5d23%3Aimage.png?table=block&amp;id=3859995f-c21f-80b6-a8ff-f8e50a448c6b&amp;t=3859995f-c21f-80b6-a8ff-f8e50a448c6b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f8081858bec253931c13e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa73e5de0-dc7a-4f56-bb8f-d78284a0e3fc%3Aimage.png?table=block&amp;id=3859995f-c21f-8081-858b-ec253931c13e&amp;t=3859995f-c21f-8081-858b-ec253931c13e" alt="notion image" loading="lazy" decoding="async"/></div></figure><table class="notion-simple-table notion-block-3859995fc21f80bba2d4ccca94ece4b5"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3859995fc21f80d08e0ac1d809a37c9d"><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">循环次数</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">当前年份 temp1</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">年份类型</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">当年天数</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">剩余天数 temp</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">操作</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f80dd845afa945990b1b0"><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">1</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">1970</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">平年</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">365</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">19782-365=19417</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">temp1 自增为 1971</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f804f85e6d9515c5eafe7"><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">2</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">1971</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">平年</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">365</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">19417-365=19052</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">temp1 自增为 1972</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f800d8e90ecc720211ab5"><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">3</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">1972</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">闰年</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">366</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">19052-366=18686</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">temp1 自增为 1973</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f80338440da93f6187668"><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">...</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">...</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">...</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">...</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">...</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">...</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f800bb445e60f97a9c728"><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">54</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">2023</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">平年</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">365</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">59-365？不，循环到第 54 次后 temp 剩余 59</div></td><td class="" style="width:103.16666666666667px"><div class="notion-simple-table-cell">temp1 自增为 2024</div></td></tr></tbody></table><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f8041ad74cdfa41d97961"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab27397ac-ceb8-4317-9cd2-febf1f62b68b%3Aimage.png?table=block&amp;id=3859995f-c21f-8041-ad74-cdfa41d97961&amp;t=3859995f-c21f-8041-ad74-cdfa41d97961" alt="notion image" loading="lazy" decoding="async"/></div></figure><table class="notion-simple-table notion-block-3859995fc21f809da13cf67f65726db0"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3859995fc21f807db1caf19028b79880"><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">循环次数</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">月份索引 temp1</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">对应月份</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">月份类型</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">当月天数</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">剩余天数 temp</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">操作</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f8085a6a0fcb403448c69"><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">1</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">1 月</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">平年月</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">31</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">59-31=28</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">temp1 自增为 1</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f8014b613f8d02cff2eac"><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">2</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">1</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">2 月</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">闰年 2 月</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">29</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">28 &lt; 29，不满足减法条件</div></td><td class="" style="width:88.42857142857143px"><div class="notion-simple-table-cell">执行 break，退出循环</div></td></tr></tbody></table><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f8019b87dd1aab836e46d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae504b314-7a4c-411f-afa7-7730eeac772a%3Aimage.png?table=block&amp;id=3859995f-c21f-8019-b87d-d1aab836e46d&amp;t=3859995f-c21f-8019-b87d-d1aab836e46d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f8072a9cce1d791f6d39f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ababa95a9-1473-4ee6-bc04-fb9d939d37ed%3Aimage.png?table=block&amp;id=3859995f-c21f-8072-a9cc-e1d791f6d39f&amp;t=3859995f-c21f-8072-a9cc-e1d791f6d39f" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3849995fc21f80008bc8e6e5cd3e5bb1" data-id="3849995fc21f80008bc8e6e5cd3e5bb1"><span><div id="3849995fc21f80008bc8e6e5cd3e5bb1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3849995fc21f80008bc8e6e5cd3e5bb1" title="timecount=RTC_GetCounter()"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">timecount=RTC_GetCounter()</span></span></h4><ul class="notion-list notion-list-disc notion-block-3849995fc21f8033a838d056420e8387"><li>含义：获取RTC计数器寄存器的值，即之前的时间距离差总秒数</li></ul><ul class="notion-list notion-list-disc notion-block-3849995fc21f801487f4ef0cc32a42fd"><li>RTC_GetCounter函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rtc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3849995fc21f805cbeedc6e6bc612db1"><summary>RTC_CRL（RTC控制寄存器低位）</summary><div><ul class="notion-list notion-list-disc notion-block-3849995fc21f80ccab48e6b269c5236c"><li>RTC控制寄存器低位RTC_CRL在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第311~312页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3849995fc21f80feb2e4fd6bf9ec5299"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac0526301-44d1-42ba-ae1e-e58277ee8c4f%3Aimage.png?table=block&amp;id=3849995f-c21f-80fe-b2e4-fd6bf9ec5299&amp;t=3849995f-c21f-80fe-b2e4-fd6bf9ec5299" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3849995fc21f80fe8894d394b573dc8b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7954a2e7-f942-4b69-b751-a9c4a4f42c1b%3Aimage.png?table=block&amp;id=3849995f-c21f-80fe-8894-d394b573dc8b&amp;t=3849995f-c21f-80fe-8894-d394b573dc8b" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3849995fc21f8000948def90f5ed7140"><summary>RTC_CNTH / RTC_CNTL（RTC计数器寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3849995fc21f80daab8ed10588ccfe26"><li>RTC计数器寄存器RTC_CNTH / RTC_CNTL在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第313~314页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3849995fc21f8014a0e1c55449ab1185"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7fb29c34-0479-4792-a0f9-d54b473f1c29%3Aimage.png?table=block&amp;id=3849995f-c21f-8014-a0e1-c55449ab1185&amp;t=3849995f-c21f-8014-a0e1-c55449ab1185" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3849995fc21f80b5b5b3d75e8ec74e97"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac215e53e-2e49-49e0-b126-84f836f55785%3Aimage.png?table=block&amp;id=3849995f-c21f-80b5-b5b3-d75e8ec74e97&amp;t=3849995f-c21f-80b5-b5b3-d75e8ec74e97" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3859995fc21f8071b44dc06b4d57f395" data-id="3859995fc21f8071b44dc06b4d57f395"><span><div id="3859995fc21f8071b44dc06b4d57f395" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3859995fc21f8071b44dc06b4d57f395" title="6.7 RTC_Get_Week(u16 year, u8 month, u8 day)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">6.7 RTC_Get_Week(u16 year, u8 month, u8 day)</span></span></h3><details class="notion-toggle notion-block-3859995fc21f80ca9e9ed37f9ab9341e"><summary><span class="notion-pink"><b>函数核心定位与设计目的</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f80c48d61ea486e6581c4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4f0bf6b2-a46d-43eb-a95f-c073d7c3b7df%3Aimage.png?table=block&amp;id=3859995f-c21f-80c4-8d61-ea486e6581c4&amp;t=3859995f-c21f-80c4-8d61-ea486e6581c4" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3859995fc21f805e83f7f683734d9545"><summary><span class="notion-pink"><b>逐行代码流程拆解 + 实例验证</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f802dbfeef027d483b4aa"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1b3107db-8e1c-4b96-ba68-8299fe0321ae%3Aimage.png?table=block&amp;id=3859995f-c21f-802d-bfee-f027d483b4aa&amp;t=3859995f-c21f-802d-bfee-f027d483b4aa" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f80eab907d06f1a3bc815"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af26593d6-e6a5-4555-a27d-d85f55c23ae7%3Aimage.png?table=block&amp;id=3859995f-c21f-80ea-b907-d06f1a3bc815&amp;t=3859995f-c21f-80ea-b907-d06f1a3bc815" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f808e951fe81fedf28524"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A67cbc8c9-b029-45dc-8e70-343d1ab79745%3Aimage.png?table=block&amp;id=3859995f-c21f-808e-951f-e81fedf28524&amp;t=3859995f-c21f-808e-951f-e81fedf28524" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f80c68be1dd8981b7f814"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2ea52ea8-e0f0-4d04-9438-bf9625455283%3Aimage.png?table=block&amp;id=3859995f-c21f-80c6-8be1-dd8981b7f814&amp;t=3859995f-c21f-80c6-8be1-dd8981b7f814" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3859995fc21f800890f2c67810ef69e6"><summary><span class="notion-pink"><b>设计思路推导：没有参考也能一步步写出来</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f800e88e4fed0733c90ee"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad4577e9f-7683-42ed-bd29-e3bba2b01939%3Aimage.png?table=block&amp;id=3859995f-c21f-800e-88e4-fed0733c90ee&amp;t=3859995f-c21f-800e-88e4-fed0733c90ee" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f803cbed1fde1f7bd5eab"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7c5673d8-cbc0-4a09-a768-415137611c7a%3Aimage.png?table=block&amp;id=3859995f-c21f-803c-bed1-fde1f7bd5eab&amp;t=3859995f-c21f-803c-bed1-fde1f7bd5eab" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3859995fc21f8012a02fedc4c4de2f73"><summary><span class="notion-pink"><b>搞懂 yearL=124 到底是什么意思</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f8085bc61c80cf7355ecf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3c0bf5b6-c5c6-42c7-90db-53eefaaf52b1%3Aimage.png?table=block&amp;id=3859995f-c21f-8085-bc61-c80cf7355ecf&amp;t=3859995f-c21f-8085-bc61-c80cf7355ecf" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f80458b2cf59fe598479b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A03a34381-a5f0-46a6-8853-3b26b2dd842a%3Aimage.png?table=block&amp;id=3859995f-c21f-8045-8b2c-f59fe598479b&amp;t=3859995f-c21f-8045-8b2c-f59fe598479b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f800197ece5bdc3d8d58d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ada1af796-5772-4c6b-b642-c4aa4c47ab48%3Aimage.png?table=block&amp;id=3859995f-c21f-8001-97ec-e5bdc3d8d58d&amp;t=3859995f-c21f-8001-97ec-e5bdc3d8d58d" alt="notion image" loading="lazy" decoding="async"/></div></figure><table class="notion-simple-table notion-block-3859995fc21f805ca6f1f023939e2ebf"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3859995fc21f8044b138ce14f3e6624f"><td class="" style="width:80.125px"><div class="notion-simple-table-cell">年份编号 yearL</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">对应目标年 1 月 1 日</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">经过的整年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">经过的年是平 / 闰</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">当年带来的偏移</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">累计总偏移（实际值）</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">公式计算值 yearL + yearL/4</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">差值（公式 - 实际）</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f80009576ffc2302a13bd"><td class="" style="width:80.125px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1900 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">无</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">-</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">0 + 0 = 0</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">0</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f8035bf94d6a6f1ad3be9"><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1901 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1900 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">平年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">+1</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1 + 0 = 1</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">0</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f80ae8136efafb45c4ce8"><td class="" style="width:80.125px"><div class="notion-simple-table-cell">2</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1902 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1901 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">平年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">+1</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">2</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">2 + 0 = 2</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">0</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f805a9c6dee668d30bf46"><td class="" style="width:80.125px"><div class="notion-simple-table-cell">3</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1903 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1902 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">平年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">+1</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">3</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">3 + 0 = 3</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">0</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f80faadc5eb66da171a9b"><td class="" style="width:80.125px"><div class="notion-simple-table-cell">4</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1904 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1903 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">平年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">+1</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">4</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">4 + 1 = 5</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">+1 （第一次出现差）</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f80c8a6cad1e7ca349b89"><td class="" style="width:80.125px"><div class="notion-simple-table-cell">5</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1905 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1904 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">闰年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">+2</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">4+2=6</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">5 + 1 = 6</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">0</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f8065ba1cf81b7273cce6"><td class="" style="width:80.125px"><div class="notion-simple-table-cell">6</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1906 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1905 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">平年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">+1</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">7</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">6 + 1 = 7</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">0</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f8082ad98ee52adb76645"><td class="" style="width:80.125px"><div class="notion-simple-table-cell">7</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1907 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1906 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">平年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">+1</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">8</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">7 + 1 = 8</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">0</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f801f823de9654c0965d9"><td class="" style="width:80.125px"><div class="notion-simple-table-cell">8</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1908 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1907 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">平年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">+1</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">9</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">8 + 2 = 10</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">+1</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f80dc95bfc1c964f9d7fd"><td class="" style="width:80.125px"><div class="notion-simple-table-cell">9</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1909 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1908 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">闰年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">+2</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">11</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">9 + 2 = 11</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">0</div></td></tr><tr class="notion-simple-table-row notion-block-3859995fc21f80b28a8ec80a32911fd3"><td class="" style="width:80.125px"><div class="notion-simple-table-cell">10</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1910 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">1909 年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">平年</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">+1</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">12</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">10 + 2 = 12</div></td><td class="" style="width:80.125px"><div class="notion-simple-table-cell">0</div></td></tr></tbody></table><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3859995fc21f806b964bc0a6362a6065"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A364e5f6b-4f16-4a66-9f41-b4766d8c48bf%3Aimage.png?table=block&amp;id=3859995f-c21f-806b-964b-c0a6362a6065&amp;t=3859995f-c21f-806b-964b-c0a6362a6065" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-38b9995fc21f8012bccae7e0ad47cb10" data-id="38b9995fc21f8012bccae7e0ad47cb10"><span><div id="38b9995fc21f8012bccae7e0ad47cb10" class="notion-header-anchor"></div><a class="notion-hash-link" href="#38b9995fc21f8012bccae7e0ad47cb10" title="七、触摸按键"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">七、触摸按键</span></span></h2><div class="notion-file notion-block-38b9995fc21f804ea295f754decdc05d"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/f204f162-2a3a-4678-9df7-a6b1a7533701/TTP223%E5%8D%95%E8%A7%A6%E6%91%B8%E9%94%AE%E6%A3%80%E6%B5%8B.pdf?table=block&amp;id=38b9995f-c21f-804e-a295-f754decdc05d&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=s2sqDEBS8h-Xv0jWeKh52o6MLVK7ePUr9SsLDVvvHx0" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">TTP223单触摸键检测.pdf</div><div class="notion-file-size">981 KiB</div></div></a></div><div class="notion-file notion-block-38b9995fc21f808ab0e5d3fd6b13f490"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/41bf95a5-23d8-4f9d-8294-4df360bd4682/%E6%B4%8B%E6%A1%831%E5%8F%B7%E5%BC%80%E5%8F%91%E6%9D%BF%E7%94%B5%E8%B7%AF%E5%8E%9F%E7%90%86%E5%9B%BE%EF%BC%88%E5%BC%80%E5%8F%91%E6%9D%BF%E6%80%BB%E5%9B%BE%EF%BC%89V1.0-20180127.pdf?table=block&amp;id=38b9995f-c21f-808a-b0e5-d3fd6b13f490&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=NCnaQTK6sk38BfnS-X9rJS_8JpzVOA46DAMcFiwa9Fo" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">洋桃1号开发板电路原理图（开发板总图）V1.0-20180127.pdf</div><div class="notion-file-size">175.5 KiB</div></div></a></div><div class="notion-file notion-block-38b9995fc21f8072a56df95049474fd5"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/9819ba45-924d-4e9b-a870-62ac52b01575/%E6%B4%8B%E6%A1%831%E5%8F%B7%E5%BC%80%E5%8F%91%E6%9D%BF%E7%94%B5%E8%B7%AF%E5%8E%9F%E7%90%86%E5%9B%BE%EF%BC%88%E5%BA%95%E6%9D%BF%EF%BC%89PDF%E5%8D%95%E5%9B%BE%E7%89%88V2.0.pdf?table=block&amp;id=38b9995f-c21f-8072-a56d-f95049474fd5&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=l5_9f0zVk1cx23ihNXZizly_tCtQR79-jJXH_VLuz1g" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">洋桃1号开发板电路原理图（底板）PDF单图版V2.0.pdf</div><div class="notion-file-size">307 KiB</div></div></a></div><div class="notion-file notion-block-38b9995fc21f80b8a540c28261150a2b"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/4691dd63-c03b-4801-b509-5c811310b970/%E6%B4%8B%E6%A1%831%E5%8F%B7%E5%BC%80%E5%8F%91%E6%9D%BF%E7%94%B5%E8%B7%AF%E5%8E%9F%E7%90%86%E5%9B%BE%EF%BC%88%E5%BA%95%E6%9D%BF%EF%BC%89PDF%E5%8D%95%E5%9B%BE%E7%89%88V2.0.pdf?table=block&amp;id=38b9995f-c21f-80b8-a540-c28261150a2b&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=3P18rrp_ziy4c9iS_f3-Wurz3Rf4gi5GMOT_c5hbhHY" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">洋桃1号开发板电路原理图（底板）PDF单图版V2.0.pdf</div><div class="notion-file-size">307 KiB</div></div></a></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-38b9995fc21f80e4896df20c1b577e93" data-id="38b9995fc21f80e4896df20c1b577e93"><span><div id="38b9995fc21f80e4896df20c1b577e93" class="notion-header-anchor"></div><a class="notion-hash-link" href="#38b9995fc21f80e4896df20c1b577e93" title="7.1 根据以上的文档，对下面的图片进行解释"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">7.1 根据以上的文档，对下面的图片进行解释</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38b9995fc21f80718426f25430634343"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:389.9999694824219px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab6bce524-127f-478b-b93e-a0af64ff3234%3Aimage.png?table=block&amp;id=38b9995f-c21f-8071-8426-f25430634343&amp;t=38b9995f-c21f-8071-8426-f25430634343" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-38b9995fc21f803796bff9bc7be99006">                                                                       <span class="notion-pink"><b> 图1</b></span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38b9995fc21f806fbf6bef7d32ba67f1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:506.9791259765625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afbe78f13-6185-4e19-9d4c-84cee7e76e40%3Aimage.png?table=block&amp;id=38b9995f-c21f-806f-bf6b-ef7d32ba67f1&amp;t=38b9995f-c21f-806f-bf6b-ef7d32ba67f1" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-38b9995fc21f80908559d09fa6777669">                                                                       <span class="notion-pink"><b> 图2</b></span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38b9995fc21f8084ababf1c1f6cc369c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:638.9961547851562px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abb5ad5ba-b37b-438d-8431-d97a8d11c7f4%3Aimage.png?table=block&amp;id=38b9995f-c21f-8084-abab-f1c1f6cc369c&amp;t=38b9995f-c21f-8084-abab-f1c1f6cc369c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-38b9995fc21f808286b2d03266677964">                                                                        <span class="notion-pink"><b>图3</b></span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38b9995fc21f800ab483d8d2a3d888fa"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af5f7a63b-aef0-4f64-99b0-fa864bda269b%3Aimage.png?table=block&amp;id=38b9995f-c21f-800a-b483-d8d2a3d888fa&amp;t=38b9995f-c21f-800a-b483-d8d2a3d888fa" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-38b9995fc21f80d6bb28e63baa88ef88">                                                                        <span class="notion-pink"><b>图4</b></span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38b9995fc21f809e8371f9ef85685f85"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A776b93a8-7167-4dbd-8ac9-f87f2af59389%3Aimage.png?table=block&amp;id=38b9995f-c21f-809e-8371-f9ef85685f85&amp;t=38b9995f-c21f-809e-8371-f9ef85685f85" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-38b9995fc21f80b98db4f405fa81128b">                                                                       <span class="notion-pink"><b> 图5</b></span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38b9995fc21f80ac8a0de3dea6a7107a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2efefd57-8ff0-40cd-92fc-6a64753cac5d%3Aimage.png?table=block&amp;id=38b9995f-c21f-80ac-8a0d-e3dea6a7107a&amp;t=38b9995f-c21f-80ac-8a0d-e3dea6a7107a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-38b9995fc21f80929014ec2ea39b95df">                                                                       <span class="notion-pink"><b> 图6</b></span></div><div class="notion-blank notion-block-38b9995fc21f80f0b441d9c919ce6f70"> </div><ul class="notion-list notion-list-disc notion-block-38b9995fc21f80409a6de05600c78898"><li>根据6张图片，得出已知信息</li><ul class="notion-list notion-list-disc notion-block-38b9995fc21f80409a6de05600c78898"><li>图1和图2表明：OUT_1 = TTP223-1 = PA0</li><li>图5和6表明：PA0端口内部为上拉电阻模式</li><li>图4表明：第4脚AHLB和第6脚TOG内部为下拉电阻模式</li><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38c9995fc21f807e9f50f060b236991d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:636.0037231445312px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aed655324-ed6b-4b53-b8a1-f5e457efeae0%3Aimage.png?table=block&amp;id=38c9995f-c21f-807e-9f50-f060b236991d&amp;t=38c9995f-c21f-807e-9f50-f060b236991d" alt="notion image" loading="lazy" decoding="async"/></div></figure><li>图3的电路图表明：</li><ul class="notion-list notion-list-disc notion-block-38b9995fc21f802a8733cf0537632b29"><li>线路1：第4脚AHLB与3V电源相连</li><li>线路2：第4脚AHLB还连接C4电容到GND</li><li>线路3：第5脚VCC与3V电源相连</li><li>线路4：第6脚TOG与GND相连</li><li>线路5：第3脚IN与（J3与C3组成的并联线路）相连，最终流向GND</li><li>线路6：第2脚GND与GND相连</li><li>线路7：第1脚OUT与OUT_1相连，即第1脚OUT直接连接在PA0端口上</li><li>线路8：同时在第1脚上还并联了（LED0的指示灯并且串联了一个限流电阻R12）的线路，整个电路是连接在3V电源上</li></ul><li>图3的外围器件：</li><table class="notion-simple-table notion-block-38c9995fc21f8075bd6efbed55af773b"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-38c9995fc21f80c2a6a5cda0d4756787"><td class="" style="width:120px"><div class="notion-simple-table-cell">器件</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">参数</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">接线位置</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">角色与作用</div></td></tr><tr class="notion-simple-table-row notion-block-38c9995fc21f80cda184d941656076cd"><td class="" style="width:120px"><div class="notion-simple-table-cell">R12</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1KΩ 电阻</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">串在 OUT 脚和 LED 之间</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">限流电阻：限制流过 LED 的电流，防止电流太大烧坏 LED 和芯片输出脚</div></td></tr><tr class="notion-simple-table-row notion-block-38c9995fc21f80fb8f10fe6db6b2cfdb"><td class="" style="width:120px"><div class="notion-simple-table-cell">D1（LED0）</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">发光二极管</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">正极接 3V，负极接 R12</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">状态指示灯：触摸触发时点亮，直观显示有没有摸到按键</div></td></tr><tr class="notion-simple-table-row notion-block-38c9995fc21f80f6b32cf56722e067d0"><td class="" style="width:120px"><div class="notion-simple-table-cell">C3</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">15pF 电容</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">接在 IN 脚和 GND 之间</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">灵敏度调节电容：用来调整触摸的灵敏程度，数值越大灵敏度越低</div></td></tr><tr class="notion-simple-table-row notion-block-38c9995fc21f8050bbf3ea6b924315e2"><td class="" style="width:120px"><div class="notion-simple-table-cell">C4</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0.1μF 电容</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">接在 3V 和 GND 之间</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">电源滤波电容：过滤电源里的杂波、抖动，让芯片供电更平稳，避免电源波动导致误触发</div></td></tr></tbody></table><li>图3的J3：是<b>触摸电极接口</b>，本质就是一块裸露的铜箔、金属弹簧片或者导电触摸片，是你手指实际触摸的地方。</li><ul class="notion-list notion-list-disc notion-block-38c9995fc21f8045ac92c8032575804b"><li>角色：触摸传感器的前端，相当于芯片伸到外面的 “感应片”；</li><li>作用：手指靠近 / 触摸它时，会改变它的电容大小，芯片通过 3 脚检测到这个变化，就知道有人摸按键了。</li><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38c9995fc21f80a09cc3e21c03068e57"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6e7db3d0-32ab-4012-9216-b290c3aa4f15%3Aimage.png?table=block&amp;id=38c9995f-c21f-80a0-9cc3-e21c03068e57&amp;t=38c9995f-c21f-80a0-9cc3-e21c03068e57" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul><li>图4补充：</li><ul class="notion-list notion-list-disc notion-block-38c9995fc21f80feaf77d0d0e39659ff"><li>IO类型解释</li><table class="notion-simple-table notion-block-38c9995fc21f80b29aede5894672277b"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-38c9995fc21f80bdaa8be8920a8d48a6"><td class="" style="width:120px"><div class="notion-simple-table-cell">类型缩写</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">全称</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">含义</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">对应引脚例子</div></td></tr><tr class="notion-simple-table-row notion-block-38c9995fc21f80b293bfcb418a2c5283"><td class="" style="width:120px"><div class="notion-simple-table-cell">O</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Output</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">纯输出引脚</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1 脚 Q/OUT：只能往外发高低电平信号，不能当输入用</div></td></tr><tr class="notion-simple-table-row notion-block-38c9995fc21f8071af3fc561b8483760"><td class="" style="width:120px"><div class="notion-simple-table-cell">P</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Power</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">电源引脚</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">2 脚 VSS/GND、5 脚 VDD/VCC：只负责供电，不传输信号</div></td></tr><tr class="notion-simple-table-row notion-block-38c9995fc21f8073aef8d6b67c2057b8"><td class="" style="width:120px"><div class="notion-simple-table-cell">I/O</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Input/Output</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">双向输入输出引脚</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">3 脚 I/IN：内部有振荡电路，既可以输出充电信号，也可以输入检测电容的信号，双向工作</div></td></tr><tr class="notion-simple-table-row notion-block-38c9995fc21f80118419c98146937100"><td class="" style="width:120px"><div class="notion-simple-table-cell">I-PL</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Input with Pull-down</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">带内部下拉电阻的输入引脚</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">4 脚 AHLB、6 脚 TOG：只能读外面的电平，芯片内部自带一个接地的电阻，悬空时默认就是低电平，不用额外接零件</div></td></tr></tbody></table><li>第3脚IN：</li><ul class="notion-list notion-list-disc notion-block-38c9995fc21f80acb1f1d042177142c0"><li>内部有一个充放电的电路，可以输入和输出；</li><li>内部有一个检测电容变化的电路，原始电路（没触摸状态下）的电容为J3本身的小电容+C3的电容；触摸后，电容变大，变为J3本身小电容+人体中存在的大电容+C3的电容；</li></ul><li>第1脚OUT：CMOS输出为可以输出高电平或低电平</li><li>第4脚AHLB和第6脚TOG：只能输入</li><li>第6脚TOG有两个模式：触发模式和直接模式</li><ul class="notion-list notion-list-disc notion-block-38c9995fc21f80e386b7f537a3f2caca"><li><b>触发模式（TOG=1）</b></li><ul class="notion-list notion-list-disc notion-block-38c9995fc21f80b08f9ae1186bfc4655"><li>也叫<b>翻转模式 / 自锁模式</b>，和家里的墙壁电灯开关逻辑一样：</li><ul class="notion-list notion-list-disc notion-block-38c9995fc21f80cabe5ef2ee6a136848"><li>第一次摸按键：输出翻转一次（从关→开），松开手之后，输出保持开启状态；</li><li>第二次摸按键：输出再翻转一次（从开→关），松开手之后，输出保持关闭状态。</li></ul><li><b>适用场景</b>：触摸台灯、电源开关，不需要一直按着，摸一下切换一次状态。</li></ul><li><b>直接模式（TOG=0，本电路就是这个模式）</b></li><ul class="notion-list notion-list-disc notion-block-38c9995fc21f800e855ccf209aab4b98"><li>也叫<b>点动模式</b>，和普通机械按键行为完全一致：</li><ul class="notion-list notion-list-disc notion-block-38c9995fc21f80c38438c008492e33eb"><li>手指按住触摸键：输出一直保持触发状态（本电路里就是 LED 一直亮）；</li><li>手指一松开：输出立刻恢复成未触发状态（LED 立刻灭）。</li></ul><li><b>适用场景</b>：门铃、键盘按键、需要按住才生效的功能，和 “按下去就通、松开就断” 的普通按钮一模一样。</li></ul></ul><li>第4脚AHLB的“输出高电平或者低电平有效选择”解释</li><ul class="notion-list notion-list-disc notion-block-38c9995fc21f8075aa08f22014239b90"><li>通过 AHLB 引脚，你可以选择「摸按键的时候，OUT 脚输出高电平代表触发」，还是「摸按键的时候，OUT 脚输出低电平代表触发」。</li><li>高电平有效：没摸 = 低电平，摸了 = 高电平；</li><li>低电平有效：没摸 = 高电平，摸了 = 低电平。</li></ul></ul></ul></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-38c9995fc21f80f29b80db61acbf4a0c" data-id="38c9995fc21f80f29b80db61acbf4a0c"><span><div id="38c9995fc21f80f29b80db61acbf4a0c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#38c9995fc21f80f29b80db61acbf4a0c" title="八、数码管"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">八、数码管</span></span></h2><div class="notion-file notion-block-38f9995fc21f804d8421d4a763d8eb8b"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/25f846e5-3856-42dc-9796-e729b9b47162/TM1640_V1.2%E6%95%B0%E6%8D%AE%E6%89%8B%E5%86%8C%EF%BC%88%E4%B8%AD%E6%96%87%EF%BC%89.pdf?table=block&amp;id=38f9995f-c21f-804d-8421-d4a763d8eb8b&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=xruemXl-7szKjcz8WnF66jxSWe3AcqiSH3DHbV53KXI" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">TM1640_V1.2数据手册（中文）.pdf</div><div class="notion-file-size">611.4 KiB</div></div></a></div><div class="notion-file notion-block-38f9995fc21f80348682e066977cf14f"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/3bc94a0b-dd54-41d6-85b3-3f3cde59e582/%E6%B4%8B%E6%A1%831%E5%8F%B7%E5%BC%80%E5%8F%91%E6%9D%BF%E7%94%B5%E8%B7%AF%E5%8E%9F%E7%90%86%E5%9B%BE%EF%BC%88TM1640%E6%95%B0%E7%A0%81%E7%AE%A1%E9%83%A8%E5%88%86%EF%BC%89V1.0-20180202.pdf?table=block&amp;id=38f9995f-c21f-8034-8682-e066977cf14f&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=3JzEozTWPTPBVuo7ZM8Y1wKLAPqHkEMxUx_NDsmo40A" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">洋桃1号开发板电路原理图（TM1640数码管部分）V1.0-20180202.pdf</div><div class="notion-file-size">142.9 KiB</div></div></a></div><div class="notion-file notion-block-3909995fc21f804daad4c294f9d31c9a"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/e7488793-743a-4fd6-a2b1-8621c0265d27/%E6%B4%8B%E6%A1%831%E5%8F%B7%E5%BC%80%E5%8F%91%E6%9D%BF%E7%94%B5%E8%B7%AF%E5%8E%9F%E7%90%86%E5%9B%BE%EF%BC%88%E5%BC%80%E5%8F%91%E6%9D%BF%E6%80%BB%E5%9B%BE%EF%BC%89V1.0-20180127.pdf?table=block&amp;id=3909995f-c21f-804d-aad4-c294f9d31c9a&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=lOChky793r6TCjgyoDKbRpCuQh3GeQ15tF1Sv1jV9Q8" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">洋桃1号开发板电路原理图（开发板总图）V1.0-20180127.pdf</div><div class="notion-file-size">175.5 KiB</div></div></a></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-38f9995fc21f80efa223c538f7067633" data-id="38f9995fc21f80efa223c538f7067633"><span><div id="38f9995fc21f80efa223c538f7067633" class="notion-header-anchor"></div><a class="notion-hash-link" href="#38f9995fc21f80efa223c538f7067633" title="8.1 共阴/共阳数码管"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">8.1 共阴/共阳数码管</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38f9995fc21f80178309e7a73e34bb83"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa24c05a9-97d6-4f75-8a58-e0de611b5ff7%3A225010fcf394de7a4e517777d082e933.png?table=block&amp;id=38f9995f-c21f-8017-8309-e7a73e34bb83&amp;t=38f9995f-c21f-8017-8309-e7a73e34bb83" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-38f9995fc21f803b9da4f987e6e60783" data-id="38f9995fc21f803b9da4f987e6e60783"><span><div id="38f9995fc21f803b9da4f987e6e60783" class="notion-header-anchor"></div><a class="notion-hash-link" href="#38f9995fc21f803b9da4f987e6e60783" title="共阴"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">共阴</span></span></h4><ul class="notion-list notion-list-disc notion-block-38f9995fc21f800386d5c41aec28aaf4"><li>公共部分都接到GND上</li></ul><ul class="notion-list notion-list-disc notion-block-38f9995fc21f80af9001c91078b984fa"><li>意味着左边只有是高电平，才能使数码管上对应的LED亮</li></ul><ul class="notion-list notion-list-disc notion-block-38f9995fc21f8015b09ced8b5ed8a5a5"><li>示例：</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-38f9995fc21f80ef80e3ccd8d2930a65"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:361.9980773925781px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abf173385-c602-4b1c-8596-754bd6e2395a%3Aimage.png?table=block&amp;id=38f9995f-c21f-80ef-80e3-ccd8d2930a65&amp;t=38f9995f-c21f-80ef-80e3-ccd8d2930a65" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-38f9995fc21f80aa85eec5ba9cb10510">如图所示，当要显示数字1时，就需要点亮b、c两个LED，那么按照LED排列（a、b、c、d、e、f、g、dp 依次为 bit0、bit1、bit2、bit3、bit4、bit5、bit6、bit7），又因为点亮LED需要设置为高电平，则二进制位 0000 0110，十六进制为 0x06 = 6H</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-38f9995fc21f807da17dd32c36c029e5" data-id="38f9995fc21f807da17dd32c36c029e5"><span><div id="38f9995fc21f807da17dd32c36c029e5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#38f9995fc21f807da17dd32c36c029e5" title="共阳"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">共阳</span></span></h4><ul class="notion-list notion-list-disc notion-block-38f9995fc21f8049b30cf2f934c59b5c"><li>公共部分都接到VCC上</li></ul><ul class="notion-list notion-list-disc notion-block-38f9995fc21f80f1ac86cbc249cf8e31"><li>意味着右边只有是低电平，才能使数码管上对应的LED亮</li></ul><ul class="notion-list notion-list-disc notion-block-3909995fc21f80e281d9ec1257be4461"><li>示例：</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f8055892fe602dd14c70a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:366.9980773925781px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A81ae9829-bba6-4918-b1fa-53cdf3667651%3Aimage.png?table=block&amp;id=3909995f-c21f-8055-892f-e602dd14c70a&amp;t=3909995f-c21f-8055-892f-e602dd14c70a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-3909995fc21f80cf9cfed56cad6c7da4">如图所示，当要显示数字1时，就需要点亮b、c两个LED，那么按照LED排列（a、b、c、d、e、f、g、dp 依次为 bit0、bit1、bit2、bit3、bit4、bit5、bit6、bit7），又因为点亮LED需要设置为低电平，则二进制位 1111 1001，十六进制为 0xF9 = F9H</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3909995fc21f806596c9c35f0f5b2ba0" data-id="3909995fc21f806596c9c35f0f5b2ba0"><span><div id="3909995fc21f806596c9c35f0f5b2ba0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3909995fc21f806596c9c35f0f5b2ba0" title="8.2 两个电路原理图文档相关数码管内容解释"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">8.2 两个电路原理图文档相关数码管内容解释</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3909995fc21f8067952de520f7edf8ca" data-id="3909995fc21f8067952de520f7edf8ca"><span><div id="3909995fc21f8067952de520f7edf8ca" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3909995fc21f8067952de520f7edf8ca" title="开发板总图文档相关内容和与之相关的数码管文档的部分内容"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">开发板总图文档相关内容和与之相关的数码管文档的部分内容</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f80f28a6de2c679785545"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:345.9942932128906px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1edf2053-e070-4b36-a057-19ef0b7ef288%3Aimage.png?table=block&amp;id=3909995f-c21f-80f2-8a6d-e2c679785545&amp;t=3909995f-c21f-80f2-8a6d-e2c679785545" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f80889136e45fbc1fce70"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:679.005615234375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3cfb01cf-fa42-45d4-86de-46cc3b01dc62%3Aimage.png?table=block&amp;id=3909995f-c21f-8088-9136-e45fbc1fce70&amp;t=3909995f-c21f-8088-9136-e45fbc1fce70" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-3909995fc21f804d91c9db39bae90ca8">以上两张图：表明PA11连接在TM1640芯片的第8脚SCLK（时钟线）上，PA12连接在TM164芯片的第脚DIN（数据线）上</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3909995fc21f8015b7a7cf93f7b8b638" data-id="3909995fc21f8015b7a7cf93f7b8b638"><span><div id="3909995fc21f8015b7a7cf93f7b8b638" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3909995fc21f8015b7a7cf93f7b8b638" title="TM1640数码管文档内容"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">TM1640数码管文档内容</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f80dba149ed3108e54def"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:609.9999389648438px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac9f4f8c3-19c9-47af-85be-9c6748549234%3Aimage.png?table=block&amp;id=3909995f-c21f-80db-a149-ed3108e54def&amp;t=3909995f-c21f-80db-a149-ed3108e54def" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3909995fc21f80899e7dd085d9b15958"><li>这张图：表明 J1 右边方框内的数字 1、2、3、4 表示从下到上的数码管顺序，左边方框内的字母 A~H 分别代表一位数码管中的 a、b、c、d、e、f、g、dp 八个LED灯，且 a、b、c、d、e、f、g、dp 八个LED灯分别在图中为 SEG1、SEG2、SEG3、SEG4、SEG5、SEG6、SEG7、SGE8 </li></ul><ul class="notion-list notion-list-disc notion-block-3909995fc21f8039b2bcf99306f3ea02"><li>由于是共阴数码管，所以若要LED亮，则要使其LED对应位的值为高电平</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f80318f24fe19628e587b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:676.998046875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A87266ed2-a3ad-4356-b124-7615bd393ce5%3Aimage.png?table=block&amp;id=3909995f-c21f-8031-8f24-fe19628e587b&amp;t=3909995f-c21f-8031-8f24-fe19628e587b" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3909995fc21f800c9a7bfb6bc217df19"><li>这张图：表明 J2 右边方框内的数字 1、2、3、4 表示从下到上的数码管顺序，左边方框内的字母 A~H 分别代表一位数码管中的 a、b、c、d、e、f、g、dp 八个LED灯，且 a、b、c、d、e、f、g、dp 八个LED灯分别在图中为 SEG1、SEG2、SEG3、SEG4、SEG5、SEG6、SEG7、SGE8 </li></ul><ul class="notion-list notion-list-disc notion-block-3909995fc21f808884afd8952eef275d"><li>由于是共阴数码管，所以若要LED亮，则要使其LED对应位的值为高电平</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f80ddb528d69838786020"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac4c28f89-db69-4a5e-968d-41ac71d748ca%3Aimage.png?table=block&amp;id=3909995f-c21f-80dd-b528-d69838786020&amp;t=3909995f-c21f-80dd-b528-d69838786020" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3909995fc21f808cb91ecb5f38a9c66a"><li>结合上两张图片，第一张图 J1 右边方框内的数字 1、2、3、4 根据右边对应关系 1、2、3、4 ，连接在这张图的 TM1640 芯片的第 18 ~ 21 脚 GR1 ~ GR4 ，左边方框内的字母则连接在第 9 ~ 16 脚 SEG1 ~ SEG8；</li></ul><ul class="notion-list notion-list-disc notion-block-3909995fc21f8006a35de57cfe57f9be"><li>第二张图 J2 右边方框内的数字 1、2、3、4 根据右边对应关系 5、6、7、8 ，连接在这张图的 TM1640 芯片的第 22 ~ 25 脚 GR5 ~ GR8 ，左边方框内的字母则连接在第 9 ~ 16 脚 SEG1 ~ SEG8；</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f808ebd2ffbd1bafd6b5e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:333.0018615722656px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af3c8a809-7a05-48f8-b359-1bedb15c6f56%3Aimage.png?table=block&amp;id=3909995f-c21f-808e-bd2f-fbd1bafd6b5e&amp;t=3909995f-c21f-808e-bd2f-fbd1bafd6b5e" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3909995fc21f808b9b6ed591cee16a32"><li>这张图：表示为了更形象展示数码管的各个 LED ，又因为之前使用了 8 位 8 段共阴数码管，即第一张和第二张图的数码管，所以只能使用用于表示第 9 位数码管的 GR9（TM1640 芯片第 26 脚），然后 8 个 LED 直接用如图所示的 LED1 ~ LED8 表示；</li></ul><ul class="notion-list notion-list-disc notion-block-3909995fc21f80a5977fcfa0b17639f8"><li>倘若向 GR9 所在的显存地址 C9H 写入 0x01，那么图中 LED1 亮，其余不亮；比如下面例子。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f80bfac8cce24f18005d3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:689.9620971679688px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A43fe0503-991b-453f-9c2d-5b41eaf33f8c%3Aimage.png?table=block&amp;id=3909995f-c21f-80bf-ac8c-ce24f18005d3&amp;t=3909995f-c21f-80bf-ac8c-ce24f18005d3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f801aa373c907bc24526d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3a3a96f2-3a09-4c0f-a021-74c81d9ded67%3Aimage.png?table=block&amp;id=3909995f-c21f-801a-a373-c907bc24526d&amp;t=3909995f-c21f-801a-a373-c907bc24526d" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3909995fc21f80b58cfef7049d5155e9" data-id="3909995fc21f80b58cfef7049d5155e9"><span><div id="3909995fc21f80b58cfef7049d5155e9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3909995fc21f80b58cfef7049d5155e9" title="8.3 TM1640数据手册文档解释"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">8.3 TM1640数据手册文档解释</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3909995fc21f807093c1e7b04c2310a5" data-id="3909995fc21f807093c1e7b04c2310a5"><span><div id="3909995fc21f807093c1e7b04c2310a5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3909995fc21f807093c1e7b04c2310a5" title="SCLK与DIN对应关系"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">SCLK与DIN对应关系</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f8013bc27e19d61bf963d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A80ec6ced-3100-483d-98dd-a5196be16d89%3Aimage.png?table=block&amp;id=3909995f-c21f-8013-bc27-e19d61bf963d&amp;t=3909995f-c21f-8013-bc27-e19d61bf963d" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3909995fc21f80cc9fcff7beeb49806c"><li>这张图换种说法说明：最初 SCLK 和 DIN 都是高电平，且分别为时钟线和数据线。<em><span class="notion-red"><b>开始：</b></span></em>当 DIN 出现由高电平变成低电平的过程，且 SCLK 始终为高电平的情况下，则为数据传输开始标志。<em><span class="notion-red"><b>传输：</b></span></em>之后数据从低到高位次依次传输高电平或低电平，则只有当 SCLK 为高电平时有效。<em><span class="notion-red"><b>结束：</b></span></em>最后当在 SCLK 为高电平时，DIN 从低电平变成高电平的过程表示为数据传输结束标志。</li></ul><ul class="notion-list notion-list-disc notion-block-3909995fc21f805cb66ec4c0ef67481e"><li>代码示例：</li></ul><ul class="notion-list notion-list-disc notion-block-3909995fc21f802cafbfe2b97a10328a"><li>可参考 SCL 和 SDA 的传输方式和向寄存器读写方式</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f8025bd91f65f4c164b0f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A620e405d-0ba9-4d80-bb33-37bb52342482%3A185e58a9ea1d33c8eebb10b2a9437c6a.png?table=block&amp;id=3909995f-c21f-8025-bd91-f65f4c164b0f&amp;t=3909995f-c21f-8025-bd91-f65f4c164b0f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f80008ea2c92ba79626c6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A71fce698-5955-4f3a-85a0-394a7bf433a3%3A0c4508f758a860bfbc50e4f42fe3414e.png?table=block&amp;id=3909995f-c21f-8000-8ea2-c92ba79626c6&amp;t=3909995f-c21f-8000-8ea2-c92ba79626c6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f807b8d7dc6cd999c30ab"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A25172993-0ed2-4a39-b512-0c737355f495%3A717688e0666d55bee2aa82ccdbe2ac73.png?table=block&amp;id=3909995f-c21f-807b-8d7d-c6cd999c30ab&amp;t=3909995f-c21f-807b-8d7d-c6cd999c30ab" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3909995fc21f8077a91ac6cff823f187" data-id="3909995fc21f8077a91ac6cff823f187"><span><div id="3909995fc21f8077a91ac6cff823f187" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3909995fc21f8077a91ac6cff823f187" title="自动地址或者固定地址写数据格式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">自动地址或者固定地址写数据格式</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f80adbb43f7bd9f079a59"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A217a528c-b96c-492c-8684-ac602407e4d7%3Aimage.png?table=block&amp;id=3909995f-c21f-80ad-bb43-f7bd9f079a59&amp;t=3909995f-c21f-80ad-bb43-f7bd9f079a59" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f80a59a9af8932a6340ac"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3b54284d-04fb-47de-b06d-0db8c49722e4%3Aimage.png?table=block&amp;id=3909995f-c21f-80a5-9a9a-f8932a6340ac&amp;t=3909995f-c21f-80a5-9a9a-f8932a6340ac" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3909995fc21f80c6a799fc58a4bd27c3"><li>这两张图片：表明两种模式下的操作方式，注意每个命令（Command1、Command2、Command3）的开始和结束部分，三种命令不是连在一起发送的，而是各自有开始标志和结束标志</li></ul><ul class="notion-list notion-list-disc notion-block-3909995fc21f8032ac08d14a4153c4f4"><li>其中数据指令分类、数据命令、显示控制命令、地址命令具体要求如下：</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f80c59681de675e57d03a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:589.9810180664062px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0af85764-b63a-468a-b4b8-84c326f6137e%3Aimage.png?table=block&amp;id=3909995f-c21f-80c5-9681-de675e57d03a&amp;t=3909995f-c21f-80c5-9681-de675e57d03a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f809e9a96cba467b78255"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:680.9848022460938px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aca2d1668-2a32-429f-af19-e241388fbd07%3Aimage.png?table=block&amp;id=3909995f-c21f-809e-9a96-cba467b78255&amp;t=3909995f-c21f-809e-9a96-cba467b78255" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f80759c11d253c42b7088"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A73043470-c8d8-481b-b8ce-b39b828d6168%3Aimage.png?table=block&amp;id=3909995f-c21f-8075-9c11-d253c42b7088&amp;t=3909995f-c21f-8075-9c11-d253c42b7088" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f80b797e7f5c2444de1e7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa87bdd7d-56d3-4331-85f6-4d831bf9fdc3%3Aimage.png?table=block&amp;id=3909995f-c21f-80b7-97e7-f5c2444de1e7&amp;t=3909995f-c21f-80b7-97e7-f5c2444de1e7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f80d19f6fc797ca61d1d2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6b90cd35-64ed-424d-b6cd-7a3f62f06180%3Aimage.png?table=block&amp;id=3909995f-c21f-80d1-9f6f-c797ca61d1d2&amp;t=3909995f-c21f-80d1-9f6f-c797ca61d1d2" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3909995fc21f800eb9f8f6bfed08e545"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad2597732-82ab-4556-ac40-f2f327b16f8e%3Aimage.png?table=block&amp;id=3909995f-c21f-800e-b9f8-f6bfed08e545&amp;t=3909995f-c21f-800e-b9f8-f6bfed08e545" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3909995fc21f809b9a2ff617dee5236e"><li>代码示例：</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3909995fc21f8010b8e5ff0bddf12e7a" data-id="3909995fc21f8010b8e5ff0bddf12e7a"><span><div id="3909995fc21f8010b8e5ff0bddf12e7a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3909995fc21f8010b8e5ff0bddf12e7a" title="九、旋转编码器"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">九、旋转编码器</span></span></h2><div class="notion-file notion-block-3959995fc21f802abf14f1011ef493f0"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/5013f325-8374-43e5-8a6a-68cd6d461bfc/%E6%97%8B%E8%BD%AC%E7%BC%96%E7%A0%81%E5%99%A8%E4%BB%8B%E7%BB%8D%EF%BC%88%E4%B8%AD%E6%96%87%EF%BC%89.pdf?table=block&amp;id=3959995f-c21f-802a-bf14-f1011ef493f0&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=BIYcKFw8pt-Tn8VosFNl8ZYweUcINTPDDZIO2bZtnuc" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">旋转编码器介绍（中文）.pdf</div><div class="notion-file-size">636.3 KiB</div></div></a></div><div class="notion-file notion-block-3959995fc21f8036983cc1f08b1d6023"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/1e1b60fa-d02a-4cc6-ac5c-f6dabe5530dd/%E6%B4%8B%E6%A1%831%E5%8F%B7%E5%BC%80%E5%8F%91%E6%9D%BF%E7%94%B5%E8%B7%AF%E5%8E%9F%E7%90%86%E5%9B%BE%EF%BC%88%E7%BC%96%E7%A0%81%E5%99%A8%E5%92%8C%E6%91%87%E6%9D%86%E9%83%A8%E5%88%86%EF%BC%89V1.0-20180208.pdf?table=block&amp;id=3959995f-c21f-8036-983c-c1f08b1d6023&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=_UfZf57r5Yr1WEHSNZbIsoZa9fLJewu6-qatfATtOy4" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">洋桃1号开发板电路原理图（编码器和摇杆部分）V1.0-20180208.pdf</div><div class="notion-file-size">139 KiB</div></div></a></div><div class="notion-file notion-block-3959995fc21f8065829ddb8b8cbe80e4"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/f9785c09-2b1f-419a-8d9b-bf839a3d3e5b/%E6%B4%8B%E6%A1%831%E5%8F%B7%E5%BC%80%E5%8F%91%E6%9D%BF%E7%94%B5%E8%B7%AF%E5%8E%9F%E7%90%86%E5%9B%BE%EF%BC%88%E5%BC%80%E5%8F%91%E6%9D%BF%E6%80%BB%E5%9B%BE%EF%BC%89V1.0-20180127.pdf?table=block&amp;id=3959995f-c21f-8065-829d-db8b8cbe80e4&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=kQh6UY-Y4YagRxkHKI19zwWqbFTsyB9mQghiKBEOKzM" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">洋桃1号开发板电路原理图（开发板总图）V1.0-20180127.pdf</div><div class="notion-file-size">175.5 KiB</div></div></a></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3969995fc21f80cf8eb6d856403a363e" data-id="3969995fc21f80cf8eb6d856403a363e"><span><div id="3969995fc21f80cf8eb6d856403a363e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3969995fc21f80cf8eb6d856403a363e" title="9.1 旋转编码器介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">9.1 旋转编码器介绍</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3969995fc21f8063b719cb8f6eb883c6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:320px"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A56cc53e0-ea14-49ec-aaa6-be385b744de5%3Ac07957ba-eeb1-428f-89b3-be41a716aed3.png?table=block&amp;id=3969995f-c21f-8063-b719-cb8f6eb883c6&amp;t=3969995f-c21f-8063-b719-cb8f6eb883c6" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3969995fc21f80ac89efce910e2628db"><li>编码器具有左旋，右旋，按下三个功能。4、5 脚是中间按下去的开关接线 1 2 3 脚一般中间 2 脚接地，1、3 脚上拉电阻后，当左转、右转旋纽时，在 1、3 脚就有脉冲信号输出了。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3969995fc21f80848e0bf32595657469"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:403.28767123287673px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9287a638-ead8-45d8-b08d-7f793f5f2e4c%3A8f17a34b-8ca9-4010-a92e-6a72f3678b5e.png?table=block&amp;id=3969995f-c21f-8084-8e0b-f32595657469&amp;t=3969995f-c21f-8084-8e0b-f32595657469" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3969995fc21f807082d8ccddd78073e2"><li>输出 1 为高电平时，输出 2 出现一个高电平，这时开关就是向顺时针旋转；当输出 1 为高电平，输出 2 出现一个低电平，这时就一定是逆时针方向旋转。编程时只需要判断当输出 1 为高电平时，输出 2 当时的状态就可以判断出是左旋转或是右旋转。</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3959995fc21f80ab91ebcfdeeaeb5f12" data-id="3959995fc21f80ab91ebcfdeeaeb5f12"><span><div id="3959995fc21f80ab91ebcfdeeaeb5f12" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3959995fc21f80ab91ebcfdeeaeb5f12" title="9.2 两个电路原理图文档关于旋转编码器内容的解释"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">9.2 两个电路原理图文档关于旋转编码器内容的解释</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3959995fc21f80b1ba90d09f0f68f99a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:538.0018310546875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae3690951-32dc-43fc-a89d-569096f7e997%3Aimage.png?table=block&amp;id=3959995f-c21f-80b1-ba90-d09f0f68f99a&amp;t=3959995f-c21f-80b1-ba90-d09f0f68f99a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3959995fc21f80b88b76e248cc0c2f00"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae58f6e07-52cd-4649-a2b2-49875bbd7c5c%3Aimage.png?table=block&amp;id=3959995f-c21f-80b8-8b76-e248cc0c2f00&amp;t=3959995f-c21f-80b8-8b76-e248cc0c2f00" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3959995fc21f80218c25d002b3cb2c8a"><li>第一张图片：表明 JS_X、JS_Y、JS_D 分别连接在 PA6、PA7、PB2端口上</li></ul><ul class="notion-list notion-list-disc notion-block-3959995fc21f801684bdd7c314653222"><li>第二张图片：由于这是关于编码器的解释，所以不看模拟量摇杆部分的电路，只看编码器部分。</li></ul><ul class="notion-list notion-list-disc notion-block-3959995fc21f80b1a39dc412b7fc97cd"><li>第一、二张图片结合后的编码器 PD1 连线如下：</li><ul class="notion-list notion-list-disc notion-block-3959995fc21f80b1a39dc412b7fc97cd"><li> 1、4 两个脚接在 GND 上</li><li>2 脚连在 P18 上的右边 4 脚上，且 4 脚对应左边的 3 脚，又因为左边 3 脚连在 JS_Y（PA7端口）上</li><li>3 脚连在 P18 上的右边 6 脚上，且 6 脚对应左边的 5 脚，又因为左边 5 脚连在 JS_D（PB2端口）上</li><li>5 脚连在 P18 上的右边 2 脚上，且 2 脚对应左边的 1 脚，又因为左边 1 脚连在 JS_X（PA6端口）上</li></ul></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3969995fc21f80139b74d6e100156b9b" data-id="3969995fc21f80139b74d6e100156b9b"><span><div id="3969995fc21f80139b74d6e100156b9b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3969995fc21f80139b74d6e100156b9b" title="9.3 旋转编码器波形示意图和机械抖动图"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">9.3 旋转编码器波形示意图和机械抖动图</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3969995fc21f8031be6fdad095e69248"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af313f7c5-8808-42f2-b04b-1503c5ca26e1%3Aimage.png?table=block&amp;id=3969995f-c21f-8031-be6f-dad095e69248&amp;t=3969995f-c21f-8031-be6f-dad095e69248" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3969995fc21f80378bdceb11b7eead94"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:314.9931640625px"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3cb40316-73fd-4f0a-bca2-7b84ca6395ff%3A9da487e0-069a-4455-997e-2e8ee6c14c0a.png?table=block&amp;id=3969995f-c21f-8037-8bdc-eb11b7eead94&amp;t=3969995f-c21f-8037-8bdc-eb11b7eead94" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3969995fc21f8088978aefec597932a2"><li>第一张图表示：1、2 脚用于按下键的操作，且结合之前的图片可知，1 脚连接在 GND 上，因此 K1 按键为用于 2 脚与 1 脚的开关相连。3、4、5 脚用于左右旋转的操作，且结合之前图片可知，4 脚连接在 GND 上，因此 K2 按键为用于 4 脚与 5 脚的开关相连， K3 按键为用于 4 脚与 3 脚的开关相连</li></ul><ul class="notion-list notion-list-disc notion-block-3969995fc21f80629046c7465544a4d7"><li><em><span class="notion-red"><b>【重点】：第二张图片所示的方向 1 和 2 并不固定，因硬件本身而变，因此方向 1 可能是左转也可能是右转，方向 2 可能是右转也可能是左转</b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3969995fc21f80e790d1e5520966e288"><li>第二张图片表示（PA6/PA7/PB2 三个端口内部是上拉电阻，因此 K2/K3 一开始输出的是高电平）：</li><ul class="notion-list notion-list-disc notion-block-3969995fc21f80e790d1e5520966e288"><li>看 K2/K3 哪个先变成低电平</li><ul class="notion-list notion-list-disc notion-block-3969995fc21f80a3a923cbb4a027064c"><li>方向 1 的时候：K3 先变成低电平，随后 K2 才变成低电平</li><li>方向 2 的时候：K2 先变成低电平，随后 K3 才变成低电平</li></ul><li>K2 刚触发从高电平变成低电平的瞬间，K3 是什么情况</li><ul class="notion-list notion-list-disc notion-block-3969995fc21f802cba01e49e0e4c8d62"><li>方向 1 的时候，K3 处于低电平状态</li><li>方向 2 的时候，K3 处于高电平状态</li></ul></ul></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3969995fc21f80c6af42c9a4358721a3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A219e6c45-8ddb-442f-85c2-cacdbfa1b217%3Aimage.png?table=block&amp;id=3969995f-c21f-80c6-af42-c9a4358721a3&amp;t=3969995f-c21f-80c6-af42-c9a4358721a3" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3969995fc21f8075a65cdd0856c8d77e"><li>这张图表明：转动 1 格，由高电平变成低电平的瞬间的机械抖动小于等于 2ms，360 度内有 20 位格指的是我所持有的旋转编码器的格数，不同的旋转编码器格数各有不同</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3969995fc21f809b9856ca6f5c4945a1" data-id="3969995fc21f809b9856ca6f5c4945a1"><span><div id="3969995fc21f809b9856ca6f5c4945a1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3969995fc21f809b9856ca6f5c4945a1" title="9.4 旋转编码器数码管显示程序的示例代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">9.4 旋转编码器数码管显示程序的示例代码</span></span></h3><ul class="notion-list notion-list-disc notion-block-3969995fc21f80be86b6c54d8e475253"><li>main.c</li></ul><ul class="notion-list notion-list-disc notion-block-3969995fc21f8038a0e0d5670faf85c5"><li>encoder.h</li></ul><ul class="notion-list notion-list-disc notion-block-3969995fc21f8049b769e9941c0b87b8"><li>encoder.c</li></ul><table class="notion-simple-table notion-block-3969995fc21f80459811f580d44010f7"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3969995fc21f8051b4c3d5506f5e8a9f"><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">延时代码</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">作用对象</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">核心作用</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">消除 / 解决的问题</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">时间怎么来的</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">和图 3 的关联</div></td></tr><tr class="notion-simple-table-row notion-block-3969995fc21f80fca35ce05e5af2a83d"><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell"><code class="notion-inline-code">delay_us(100)</code></div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">旋转相位 K2（ENCODER_L）</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">初步毛刺过滤</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">K2 刚接触瞬间的极短尖峰抖动</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">经验值，100 微秒很短，只过滤最开头的杂波</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">弱关联：针对图 3 里抖动最开始的尖峰，不是完整消抖</div></td></tr><tr class="notion-simple-table-row notion-block-3969995fc21f8049bdbbd2e0ba0e2731"><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell"><code class="notion-inline-code">delay_ms(3)</code></div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">旋转相位 K2（ENCODER_L）</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">完整机械消抖</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">K2 闭合时的机械抖动，避免一次转动识别成多次</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">图 3 标注抖动≤2ms，取 3ms 略大于最大抖动时间，确保抖完</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell"><b>直接关联</b>：就是针对图 3 的 2ms 机械抖动设计的消抖延时</div></td></tr><tr class="notion-simple-table-row notion-block-3969995fc21f80578c34e7d710a7779c"><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell"><code class="notion-inline-code">delay_us(20)</code></div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">锁死计数器<code class="notion-inline-code">cou</code></div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">控制循环速度，计算超时时间</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">不是消抖，是用来算 “停多久算锁死”</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">经验值，循环一次 20us，60000 次就是 1.2 秒左右</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">无关联：纯软件逻辑的超时计时，和机械抖动没关系</div></td></tr><tr class="notion-simple-table-row notion-block-3969995fc21f8004a7d6c6adf6c40115"><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell"><code class="notion-inline-code">delay_ms(20)</code></div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">按键 K1（ENCODER_D）</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">按键机械消抖</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">按键按下时的机械抖动，避免按一次识别成多次</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">普通按键抖动通常 5~10ms，取 20ms 是保守值，确保稳定</div></td><td class="" style="width:117.83333333333333px"><div class="notion-simple-table-cell">原理关联：和图 3 的机械抖动是同一个原理，只是按键行程长，抖动更久，所以延时更长</div></td></tr></tbody></table><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3969995fc21f80a3ad60dc118592dc2c" data-id="3969995fc21f80a3ad60dc118592dc2c"><span><div id="3969995fc21f80a3ad60dc118592dc2c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3969995fc21f80a3ad60dc118592dc2c" title="十、温度传感器数码管显示程序"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">十、温度传感器数码管显示程序</span></span></h2><div class="notion-file notion-block-3af9995fc21f8011a8a1f5d50287a4b7"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/d2ca207d-08de-417a-a43c-45205df5315a/LM75A%E7%BC%96%E7%A8%8B%E8%AF%B4%E6%98%8E%EF%BC%88%E4%B8%AD%E6%96%87%EF%BC%89.pdf?table=block&amp;id=3af9995f-c21f-8011-a8a1-f5d50287a4b7&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=IwCam4akMv0wdN3UO-bXiZvHUiojrw0hUOiwpCQz1HQ" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">LM75A编程说明（中文）.pdf</div><div class="notion-file-size">367 KiB</div></div></a></div><div class="notion-file notion-block-3af9995fc21f80d18a3ff0833b4528b5"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/536e0dc4-ce81-4e6a-8595-9235ef0fdd63/LM75A%E5%BA%94%E7%94%A8%E8%8C%83%E4%BE%8B%EF%BC%88%E4%B8%AD%E6%96%87%EF%BC%89.pdf?table=block&amp;id=3af9995f-c21f-80d1-8a3f-f0833b4528b5&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=dh2Vr317zPdmKL9dy0o1INqdc9ADdWWZWZEqmSVF150" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">LM75A应用范例（中文）.pdf</div><div class="notion-file-size">649.1 KiB</div></div></a></div><div class="notion-file notion-block-3af9995fc21f8060bd5ec7af8411181c"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/332c6f95-c6c8-4860-8cb9-954a35b1e04b/LM75%E6%95%B0%E6%8D%AE%E6%89%8B%E5%86%8C%EF%BC%88%E4%B8%AD%E6%96%87%EF%BC%89.pdf?table=block&amp;id=3af9995f-c21f-8060-bd5e-c7af8411181c&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=PAVqm1OniXeJVTiplQ9mv7Tt2zBXzS91zPxQpTxpDZI" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">LM75数据手册（中文）.pdf</div><div class="notion-file-size">1.1 MiB</div></div></a></div><div class="notion-file notion-block-3af9995fc21f80e59c13de354206f5ad"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/367b02c1-8247-498c-90fb-fa1f7c02647b/%E6%B4%8B%E6%A1%831%E5%8F%B7%E5%BC%80%E5%8F%91%E6%9D%BF%E7%94%B5%E8%B7%AF%E5%8E%9F%E7%90%86%E5%9B%BE%EF%BC%88OLED%E5%92%8C%E6%B8%A9%E5%BA%A6%E4%BC%A0%E6%84%9F%E5%99%A8%E9%83%A8%E5%88%86%EF%BC%89V1.0-20180211.pdf?table=block&amp;id=3af9995f-c21f-80e5-9c13-de354206f5ad&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=gwMRuvwIJqEe-0wNVFZ5XIhq0_fFNXe6OrVkxNf-UKQ" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">洋桃1号开发板电路原理图（OLED和温度传感器部分）V1.0-20180211.pdf</div><div class="notion-file-size">144.5 KiB</div></div></a></div><div class="notion-file notion-block-3af9995fc21f8037b7fbeccd62ec1c68"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/f58883ea-e368-4694-b525-a163a50470ce/%E6%B4%8B%E6%A1%831%E5%8F%B7%E5%BC%80%E5%8F%91%E6%9D%BF%E7%94%B5%E8%B7%AF%E5%8E%9F%E7%90%86%E5%9B%BE%EF%BC%88%E5%BC%80%E5%8F%91%E6%9D%BF%E6%80%BB%E5%9B%BE%EF%BC%89V1.0-20180127.pdf?table=block&amp;id=3af9995f-c21f-8037-b7fb-eccd62ec1c68&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=VP5NDHZlkW0zV8FBLH3JaNQ-lAjbXY8sNlTjh-hVFHM" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">洋桃1号开发板电路原理图（开发板总图）V1.0-20180127.pdf</div><div class="notion-file-size">175.5 KiB</div></div></a></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3af9995fc21f80d1b076d96fcd72e777"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2e7670fb-c08e-4816-adc4-d7e7f6a1a832%3Aimage.png?table=block&amp;id=3af9995f-c21f-80d1-b076-d96fcd72e777&amp;t=3af9995f-c21f-80d1-b076-d96fcd72e777" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-3a79995fc21f8083847ce6ebbbd859a7"><summary><span class="notion-pink"><b>I2C手册内容解析</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3af9995fc21f80d3aa96ff7494f2f351"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4ee440c7-fb8d-4f31-8bfc-450d7ffe9927%3Aimage.png?table=block&amp;id=3af9995f-c21f-80d3-aa96-ff7494f2f351&amp;t=3af9995f-c21f-80d3-aa96-ff7494f2f351" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a79995fc21f80a89337dc63a1ea1bcb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4fc41897-9cdb-4a35-bde0-9124a67152ba%3Aimage.png?table=block&amp;id=3a79995f-c21f-80a8-9337-dc63a1ea1bcb&amp;t=3a79995f-c21f-80a8-9337-dc63a1ea1bcb" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-3a79995fc21f80cc879acd979bab49e7"><summary><span class="notion-pink"><b>解释1</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a79995fc21f805bbed5c5cf6e2b6eea"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0e59209c-0d55-4ca7-bc61-ed7a9b17d59b%3Aimage.png?table=block&amp;id=3a79995f-c21f-805b-bed5-c5cf6e2b6eea&amp;t=3a79995f-c21f-805b-bed5-c5cf6e2b6eea" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a79995fc21f80b08887ff63f73f7253"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A39bae7c9-90ac-4fc9-b5f8-b0e6691e3935%3Aimage.png?table=block&amp;id=3a79995f-c21f-80b0-8887-ff63f73f7253&amp;t=3a79995f-c21f-80b0-8887-ff63f73f7253" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a79995fc21f803797f7d6e34efda413"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A524f6178-62d0-4e33-b2f2-9f71df3272bd%3Aimage.png?table=block&amp;id=3a79995f-c21f-8037-97f7-d6e34efda413&amp;t=3a79995f-c21f-8037-97f7-d6e34efda413" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a79995fc21f80ca81c3c47da1c7710f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab2fb617e-2646-43ac-84f1-ea05151be233%3Aimage.png?table=block&amp;id=3a79995f-c21f-80ca-81c3-c47da1c7710f&amp;t=3a79995f-c21f-80ca-81c3-c47da1c7710f" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80f7818fd5b2332fd7dd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad33afab4-3013-4e15-930a-417809173305%3Aimage.png?table=block&amp;id=3a99995f-c21f-80f7-818f-d5b2332fd7dd&amp;t=3a99995f-c21f-80f7-818f-d5b2332fd7dd" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-3a99995fc21f80da8017c2978af5b702"><summary><span class="notion-pink"><b>解释2</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f806bbb70f1cfb2e96de5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9ee59c44-6448-4976-a649-ca24116e517d%3Aimage.png?table=block&amp;id=3a99995f-c21f-806b-bb70-f1cfb2e96de5&amp;t=3a99995f-c21f-806b-bb70-f1cfb2e96de5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80898374dde43ca4c30e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A613d74f4-ddb4-4207-9ff6-4f23f9f73a9d%3Aimage.png?table=block&amp;id=3a99995f-c21f-8089-8374-dde43ca4c30e&amp;t=3a99995f-c21f-8089-8374-dde43ca4c30e" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f80648eb9c1758cd3f901"><summary><span class="notion-pink"><b>涉及到的寄存器位</b></span></summary><div><details class="notion-toggle notion-block-3a99995fc21f80ca9322d2fd88645bdc"><summary><span class="notion-purple"><b>OAR1 - - - OAR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f8043841dcc7270946a48"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A36d378af-45ea-4a24-9670-f8dfd441b28d%3Aimage.png?table=block&amp;id=3a99995f-c21f-8043-841d-cc7270946a48&amp;t=3a99995f-c21f-8043-841d-cc7270946a48" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f800493a3cbbff73af1da"><summary><span class="notion-purple"><b>OAR2、ENDUAL - - - OAR2寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f808c9714c9c24fbf6c55"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3c6a17c1-892c-4e9f-96e0-fe2bc5b51d87%3Aimage.png?table=block&amp;id=3a99995f-c21f-808c-9714-c9c24fbf6c55&amp;t=3a99995f-c21f-808c-9714-c9c24fbf6c55" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f80ff93a2f3a29f0ce3d3"><summary><span class="notion-purple"><b>ENGC - - - CR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f809a8485e910f8326797"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4f24a507-f268-4630-9acb-7ba7468065fe%3Aimage.png?table=block&amp;id=3a99995f-c21f-809a-8485-e910f8326797&amp;t=3a99995f-c21f-809a-8485-e910f8326797" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f801ebbd9dd1fd9d491d1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa10001d4-309f-4398-950b-a268a7abd434%3Aimage.png?table=block&amp;id=3a99995f-c21f-801e-bbd9-dd1fd9d491d1&amp;t=3a99995f-c21f-801e-bbd9-dd1fd9d491d1" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f80c986b0d97903c171d4"><summary><span class="notion-purple"><b>ADDR - - - SR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80318167df6bcf52c006"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A695d63dc-6da6-4e69-a6b1-db9ce8c5bda6%3Aimage.png?table=block&amp;id=3a99995f-c21f-8031-8167-df6bcf52c006&amp;t=3a99995f-c21f-8031-8167-df6bcf52c006" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80929f37c848d154d505"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A08b728cb-1834-4fa8-8bd5-84a0c0d4c75b%3Aimage.png?table=block&amp;id=3a99995f-c21f-8092-9f37-c848d154d505&amp;t=3a99995f-c21f-8092-9f37-c848d154d505" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f804fb6a6e94f1a5052c3"><summary><span class="notion-purple"><b>ITEVTEN - - - CR2寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80258d61da4382df3d60"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abb2c80ae-0c27-459c-9055-72490449ab70%3Aimage.png?table=block&amp;id=3a99995f-c21f-8025-8d61-da4382df3d60&amp;t=3a99995f-c21f-8025-8d61-da4382df3d60" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80b997ebded41cda84a1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4123dff7-79bd-4571-8f85-94ab4cf0e75f%3Aimage.png?table=block&amp;id=3a99995f-c21f-80b9-97eb-ded41cda84a1&amp;t=3a99995f-c21f-80b9-97eb-ded41cda84a1" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f8064a457c5d6e4a9fc84"><summary><span class="notion-purple"><b>DUALF - - - SR2寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80238bbbf155b1f2c1c9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad5d3a19e-9d33-4b5d-bc9e-3181efd8651b%3Aimage.png?table=block&amp;id=3a99995f-c21f-8023-8bbb-f155b1f2c1c9&amp;t=3a99995f-c21f-8023-8bbb-f155b1f2c1c9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f802bae70e8f4258c67cf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0e89f9f6-928b-45ee-b36e-f007ebf42f46%3Aimage.png?table=block&amp;id=3a99995f-c21f-802b-ae70-e8f4258c67cf&amp;t=3a99995f-c21f-802b-ae70-e8f4258c67cf" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f8091ae15ff78e8dde1b7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6745d305-2abf-4dbb-816b-b923a3dcb5fb%3Aimage.png?table=block&amp;id=3a99995f-c21f-8091-ae15-ff78e8dde1b7&amp;t=3a99995f-c21f-8091-ae15-ff78e8dde1b7" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-3a99995fc21f80499fccf413df273403"><summary><span class="notion-pink"><b>解释3</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80759504da893d1fe028"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afc8143b2-b0ad-44a0-a9ba-2e53d48a4c30%3Aimage.png?table=block&amp;id=3a99995f-c21f-8075-9504-da893d1fe028&amp;t=3a99995f-c21f-8075-9504-da893d1fe028" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f8081aaa7e888f9c6d84e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acc27a4b0-5695-48d8-ad65-7231de4d655a%3Aimage.png?table=block&amp;id=3a99995f-c21f-8081-aaa7-e888f9c6d84e&amp;t=3a99995f-c21f-8081-aaa7-e888f9c6d84e" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f80c1ad4df68bf376b604"><summary><span class="notion-pink"><b>解释4 - - - 图 243</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80a29895fbb15514ff96"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acfc86d0a-dd1d-425d-8a58-60a28e79b136%3Aimage.png?table=block&amp;id=3a99995f-c21f-80a2-9895-fbb15514ff96&amp;t=3a99995f-c21f-80a2-9895-fbb15514ff96" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f800195b8c6942223a1b4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A20c176b0-d903-494e-ac05-cb34b789bb3c%3Aimage.png?table=block&amp;id=3a99995f-c21f-8001-95b8-c6942223a1b4&amp;t=3a99995f-c21f-8001-95b8-c6942223a1b4" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80a294add2a3bd752845"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af0d42bd5-5c73-4b25-bdf6-71ff04eac114%3Aimage.png?table=block&amp;id=3a99995f-c21f-80a2-94ad-d2a3bd752845&amp;t=3a99995f-c21f-80a2-94ad-d2a3bd752845" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f806b9408f575e355664c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aad142f39-30df-40be-8156-c9da88c94feb%3Aimage.png?table=block&amp;id=3a99995f-c21f-806b-9408-f575e355664c&amp;t=3a99995f-c21f-806b-9408-f575e355664c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80aa8c91c329b6c4ea6e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0ac0bc62-5fa9-44d1-ba64-538139878e8d%3Aimage.png?table=block&amp;id=3a99995f-c21f-80aa-8c91-c329b6c4ea6e&amp;t=3a99995f-c21f-80aa-8c91-c329b6c4ea6e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f801d8f34d1f172289c86"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9064dcca-a420-4974-b037-0126698b1d1a%3Aimage.png?table=block&amp;id=3a99995f-c21f-801d-8f34-d1f172289c86&amp;t=3a99995f-c21f-801d-8f34-d1f172289c86" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80999fa1e17199d86ddb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8b5e6634-aed7-4298-ac37-cb7f8b2b7a59%3Aimage.png?table=block&amp;id=3a99995f-c21f-8099-9fa1-e17199d86ddb&amp;t=3a99995f-c21f-8099-9fa1-e17199d86ddb" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f801bb6acdd1afe3185b6"><summary><span class="notion-pink"><b>涉及到的寄存器位</b></span></summary><div><details class="notion-toggle notion-block-3a99995fc21f802faee1e484e7c6e43d"><summary><span class="notion-purple"><b>ADDR、TxE、BTF、AF - - - SR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f808ebaa4e7c15c777620"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A695d63dc-6da6-4e69-a6b1-db9ce8c5bda6%3Aimage.png?table=block&amp;id=3a99995f-c21f-808e-baa4-e7c15c777620&amp;t=3a99995f-c21f-808e-baa4-e7c15c777620" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80deab36c305069013ff"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A08b728cb-1834-4fa8-8bd5-84a0c0d4c75b%3Aimage.png?table=block&amp;id=3a99995f-c21f-80de-ab36-c305069013ff&amp;t=3a99995f-c21f-80de-ab36-c305069013ff" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f8008bcf0ecf2490371df"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A98834a2f-4f61-417f-9240-6dd2bffe1931%3Aimage.png?table=block&amp;id=3a99995f-c21f-8008-bcf0-ecf2490371df&amp;t=3a99995f-c21f-8008-bcf0-ecf2490371df" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80d48fccd259e016770b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A82510b56-ee8e-4d71-a3c7-40bab55b5f08%3Aimage.png?table=block&amp;id=3a99995f-c21f-80d4-8fcc-d259e016770b&amp;t=3a99995f-c21f-80d4-8fcc-d259e016770b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f8092bd39dac628acfed5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad01947e0-025f-4479-9e76-9ed54abbd09e%3Aimage.png?table=block&amp;id=3a99995f-c21f-8092-bd39-dac628acfed5&amp;t=3a99995f-c21f-8092-bd39-dac628acfed5" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f80dcaf6fd005af2119be"><summary><span class="notion-purple"><b>ITEVTEN、ITBUFEN - - - CR2寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80259ac2e21bb1f8120e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abb2c80ae-0c27-459c-9055-72490449ab70%3Aimage.png?table=block&amp;id=3a99995f-c21f-8025-9ac2-e21bb1f8120e&amp;t=3a99995f-c21f-8025-9ac2-e21bb1f8120e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f8019a140eb64feb5069d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4123dff7-79bd-4571-8f85-94ab4cf0e75f%3Aimage.png?table=block&amp;id=3a99995f-c21f-8019-a140-eb64feb5069d&amp;t=3a99995f-c21f-8019-a140-eb64feb5069d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80ea8831fd0ae4eaa99c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8f64e8bc-f2a1-46ab-8ec5-33d93607cda5%3Aimage.png?table=block&amp;id=3a99995f-c21f-80ea-8831-fd0ae4eaa99c&amp;t=3a99995f-c21f-80ea-8831-fd0ae4eaa99c" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f806d9b66c9d9ff4ed431"><summary><span class="notion-purple"><b>DR - - - DR（数据）寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f800d8feac81c29f96f6f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab29d4d08-2542-41c5-ab15-121b66d263f9%3Aimage.png?table=block&amp;id=3a99995f-c21f-800d-8fea-c81c29f96f6f&amp;t=3a99995f-c21f-800d-8fea-c81c29f96f6f" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80d7aeb3f7b4be2461fa"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A47fe1525-6d06-48cf-856e-4048b2aaac9f%3Aimage.png?table=block&amp;id=3a99995f-c21f-80d7-aeb3-f7b4be2461fa&amp;t=3a99995f-c21f-80d7-aeb3-f7b4be2461fa" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-3a99995fc21f8055bf66fd94c39497f6"><summary><span class="notion-pink"><b>解释5</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80528768d9f5a70d2b8a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6bc01d7d-f0d7-4dd3-9e05-e5da6078b957%3Aimage.png?table=block&amp;id=3a99995f-c21f-8052-8768-d9f5a70d2b8a&amp;t=3a99995f-c21f-8052-8768-d9f5a70d2b8a" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f80a5bd8df63ebfd9f16b"><summary><span class="notion-pink"><b>涉及到的寄存器位</b></span></summary><div><details class="notion-toggle notion-block-3a99995fc21f8087b33eefd72fa586cf"><summary><span class="notion-purple"><b>ADDR、RxNE、BTF - - - SR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f8082a7eff72a0f29c1a6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A695d63dc-6da6-4e69-a6b1-db9ce8c5bda6%3Aimage.png?table=block&amp;id=3a99995f-c21f-8082-a7ef-f72a0f29c1a6&amp;t=3a99995f-c21f-8082-a7ef-f72a0f29c1a6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80fba213e6dd91d4e6b5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A08b728cb-1834-4fa8-8bd5-84a0c0d4c75b%3Aimage.png?table=block&amp;id=3a99995f-c21f-80fb-a213-e6dd91d4e6b5&amp;t=3a99995f-c21f-80fb-a213-e6dd91d4e6b5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80f5b871e64993dcde61"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5a935f5d-820c-4ce9-b835-eeab0e993bf0%3Aimage.png?table=block&amp;id=3a99995f-c21f-80f5-b871-e64993dcde61&amp;t=3a99995f-c21f-80f5-b871-e64993dcde61" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f8042a8e6db2fa8cc5390"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A82510b56-ee8e-4d71-a3c7-40bab55b5f08%3Aimage.png?table=block&amp;id=3a99995f-c21f-8042-a8e6-db2fa8cc5390&amp;t=3a99995f-c21f-8042-a8e6-db2fa8cc5390" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f80259481dff08c8afe35"><summary><span class="notion-purple"><b>ITEVTEN、ITBUFEN - - - CR2寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80d5922bf8838482b569"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abb2c80ae-0c27-459c-9055-72490449ab70%3Aimage.png?table=block&amp;id=3a99995f-c21f-80d5-922b-f8838482b569&amp;t=3a99995f-c21f-80d5-922b-f8838482b569" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f8055ac56c3f8aba574b3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4123dff7-79bd-4571-8f85-94ab4cf0e75f%3Aimage.png?table=block&amp;id=3a99995f-c21f-8055-ac56-c3f8aba574b3&amp;t=3a99995f-c21f-8055-ac56-c3f8aba574b3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f8015bf37d40192f72489"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8f64e8bc-f2a1-46ab-8ec5-33d93607cda5%3Aimage.png?table=block&amp;id=3a99995f-c21f-8015-bf37-d40192f72489&amp;t=3a99995f-c21f-8015-bf37-d40192f72489" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f8055b7eee6b762f91318"><summary><span class="notion-purple"><b>DR - - - DR（数据）寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80c0ae8ae7e59d49d37f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab29d4d08-2542-41c5-ab15-121b66d263f9%3Aimage.png?table=block&amp;id=3a99995f-c21f-80c0-ae8a-e7e59d49d37f&amp;t=3a99995f-c21f-80c0-ae8a-e7e59d49d37f" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f805787f6e2d2372ab890"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A798d9830-fe29-4982-b5d3-e2ef75843ff7%3Aimage.png?table=block&amp;id=3a99995f-c21f-8057-87f6-e2d2372ab890&amp;t=3a99995f-c21f-8057-87f6-e2d2372ab890" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-3a99995fc21f80b39970d1209b3dd4ea"><summary><span class="notion-pink"><b>解释6</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80b48253c471432c6f04"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac55af44c-f7c8-4771-9382-d4c932583c7a%3Aimage.png?table=block&amp;id=3a99995f-c21f-80b4-8253-c471432c6f04&amp;t=3a99995f-c21f-80b4-8253-c471432c6f04" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f80e49e14c4a9a9fa786f"><summary><span class="notion-pink"><b>涉及到的寄存器位</b></span></summary><div><details class="notion-toggle notion-block-3a99995fc21f8003a269fdb771c8a99b"><summary><span class="notion-purple"><b>ADDR、RxNE、STOPF - - - SR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f8003be67c5aba4675818"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A695d63dc-6da6-4e69-a6b1-db9ce8c5bda6%3Aimage.png?table=block&amp;id=3a99995f-c21f-8003-be67-c5aba4675818&amp;t=3a99995f-c21f-8003-be67-c5aba4675818" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f803b9cadd8a731dd2047"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A08b728cb-1834-4fa8-8bd5-84a0c0d4c75b%3Aimage.png?table=block&amp;id=3a99995f-c21f-803b-9cad-d8a731dd2047&amp;t=3a99995f-c21f-803b-9cad-d8a731dd2047" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f8043892ac9ee25a93b5f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5a935f5d-820c-4ce9-b835-eeab0e993bf0%3Aimage.png?table=block&amp;id=3a99995f-c21f-8043-892a-c9ee25a93b5f&amp;t=3a99995f-c21f-8043-892a-c9ee25a93b5f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80b5b831d24de5776e78"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af3a6b1c6-c823-40c3-87eb-43454997f9af%3Aimage.png?table=block&amp;id=3a99995f-c21f-80b5-b831-d24de5776e78&amp;t=3a99995f-c21f-80b5-b831-d24de5776e78" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f80debb98d693c78a9d67"><summary><span class="notion-purple"><b>ITEVTEN - - - CR2寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f808085c5cb79d97f0991"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abb2c80ae-0c27-459c-9055-72490449ab70%3Aimage.png?table=block&amp;id=3a99995f-c21f-8080-85c5-cb79d97f0991&amp;t=3a99995f-c21f-8080-85c5-cb79d97f0991" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f805aa5a3dd2b322bb462"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4123dff7-79bd-4571-8f85-94ab4cf0e75f%3Aimage.png?table=block&amp;id=3a99995f-c21f-805a-a5a3-dd2b322bb462&amp;t=3a99995f-c21f-805a-a5a3-dd2b322bb462" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f809497dff87eb906f2d8"><summary><span class="notion-purple"><b>DR - - - DR（数据）寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80c49290e4a6bfe6a87b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab29d4d08-2542-41c5-ab15-121b66d263f9%3Aimage.png?table=block&amp;id=3a99995f-c21f-80c4-9290-e4a6bfe6a87b&amp;t=3a99995f-c21f-80c4-9290-e4a6bfe6a87b" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f8010a189de53b98c1380"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9d1ce5bf-2201-4b80-8337-c47bc009c758%3Aimage.png?table=block&amp;id=3a99995f-c21f-8010-a189-de53b98c1380&amp;t=3a99995f-c21f-8010-a189-de53b98c1380" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-3a99995fc21f8084b866d11c6398542a"><summary><span class="notion-pink"><b>解释7</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80f1b17ae04d704f233f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af68fa54d-769f-4ba9-a3cc-67467667ec10%3Aimage.png?table=block&amp;id=3a99995f-c21f-80f1-b17a-e04d704f233f&amp;t=3a99995f-c21f-80f1-b17a-e04d704f233f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80c09270de3927dca954"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6a8fbe0d-4986-42d7-9e54-0ddad42cae31%3Aimage.png?table=block&amp;id=3a99995f-c21f-80c0-9270-de3927dca954&amp;t=3a99995f-c21f-80c0-9270-de3927dca954" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f808ca0def3723c7e7be3"><summary><span class="notion-pink"><b>涉及到的寄存器位</b></span></summary><div><details class="notion-toggle notion-block-3a99995fc21f80e0a895f096490ef1ca"><summary><span class="notion-purple"><b>START、PE（启动外设） - - - CR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80bea628dcac51798872"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4f24a507-f268-4630-9acb-7ba7468065fe%3Aimage.png?table=block&amp;id=3a99995f-c21f-80be-a628-dcac51798872&amp;t=3a99995f-c21f-80be-a628-dcac51798872" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80658656cec5a837f7af"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A39171253-fac8-47e4-9b2c-e240cfc30e16%3Aimage.png?table=block&amp;id=3a99995f-c21f-8065-8656-cec5a837f7af&amp;t=3a99995f-c21f-8065-8656-cec5a837f7af" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80c4a160d62c8688d346"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac4513aab-5a29-45d7-abdd-474da7b355e7%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80c4-a160-d62c8688d346&amp;t=3aa9995f-c21f-80c4-a160-d62c8688d346" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f8000b9b2f89c4aa4a4e3"><summary><span class="notion-purple"><b>FREQ[5:0]（设定该模块的输入时钟以产生正确时序）、ITEVTEN - - - CR2寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80c0921ceee4f62ef179"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abb2c80ae-0c27-459c-9055-72490449ab70%3Aimage.png?table=block&amp;id=3a99995f-c21f-80c0-921c-eee4f62ef179&amp;t=3a99995f-c21f-80c0-921c-eee4f62ef179" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80eea4b6c577cc3528ff"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af12d6053-5879-4b07-b9fd-d326e2ab175e%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80ee-a4b6-c577cc3528ff&amp;t=3aa9995f-c21f-80ee-a4b6-c577cc3528ff" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f801bac90f5f72fa726f9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4123dff7-79bd-4571-8f85-94ab4cf0e75f%3Aimage.png?table=block&amp;id=3a99995f-c21f-801b-ac90-f5f72fa726f9&amp;t=3a99995f-c21f-801b-ac90-f5f72fa726f9" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f80288241e2df75a32eeb"><summary><span class="notion-purple"><b>CCR时钟控制寄存器 - - - CCR寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80049b1be7569856e91e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5c888d84-0404-451a-b083-bfe15f700653%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8004-9b1b-e7569856e91e&amp;t=3aa9995f-c21f-8004-9b1b-e7569856e91e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80c49a9ccbe21429627a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3eb8d269-198e-4a14-bc9e-61188b75206b%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80c4-9a9c-cbe21429627a&amp;t=3aa9995f-c21f-80c4-9a9c-cbe21429627a" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f8090927ecb8a0f83afe6"><summary><span class="notion-purple"><b>TRISE上升时间寄存器 - - - TRISE寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80328561cc05586756cf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A62c5fa22-3419-4b9a-b036-0aeeaa6d159c%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8032-8561-cc05586756cf&amp;t=3aa9995f-c21f-8032-8561-cc05586756cf" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f809497ecd01ee9e56e0a"><summary><span class="notion-purple"><b>BUSY、MSL - - - SR2寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80488090e38857dd9c2c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa0408f9e-a38a-4ec3-8c3d-7f49c30d8a55%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8048-8090-e38857dd9c2c&amp;t=3aa9995f-c21f-8048-8090-e38857dd9c2c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f808f91d9e194991278a9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A769d6010-06c9-40e8-9b48-a3d2bcc63c2e%3Aimage.png?table=block&amp;id=3aa9995f-c21f-808f-91d9-e194991278a9&amp;t=3aa9995f-c21f-808f-91d9-e194991278a9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f807680c2cfb6bf507846"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6ac4e6f4-20b8-453b-beaf-4cd5fd1f72e6%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8076-80c2-cfb6bf507846&amp;t=3aa9995f-c21f-8076-80c2-cfb6bf507846" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f806cad09d88cc2d9774d"><summary><span class="notion-purple"><b>ADD10、ADDR、SB - - - SR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f806ead83c0c5cb8ea22c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac896fa50-3766-46a3-91cf-5a3c0115c3a0%3Aimage.png?table=block&amp;id=3aa9995f-c21f-806e-ad83-c0c5cb8ea22c&amp;t=3aa9995f-c21f-806e-ad83-c0c5cb8ea22c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80c782fac0ebc899026c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab69bec9d-3cd4-46a5-a66b-dbdec200bb1a%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80c7-82fa-c0ebc899026c&amp;t=3aa9995f-c21f-80c7-82fa-c0ebc899026c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8034b101e7cfe8305fe6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aec98c54a-3f5d-403f-8b2c-3a3f79ad7c82%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8034-b101-e7cfe8305fe6&amp;t=3aa9995f-c21f-8034-b101-e7cfe8305fe6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f803191c0cfa2a3379e44"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8d3fa7bd-a618-4a65-9262-b9fb4e15043e%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8031-91c0-cfa2a3379e44&amp;t=3aa9995f-c21f-8031-91c0-cfa2a3379e44" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f80ee946bf0938e5e4da3"><summary><span class="notion-purple"><b>DR - - - DR（数据）寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f808682a6d90c0b81ef0a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab29d4d08-2542-41c5-ab15-121b66d263f9%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8086-82a6-d90c0b81ef0a&amp;t=3aa9995f-c21f-8086-82a6-d90c0b81ef0a" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8044afd4db83bc01334f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A918776ee-1829-4ebc-9a85-f5c85cc7c2f8%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8044-afd4-db83bc01334f&amp;t=3aa9995f-c21f-8044-afd4-db83bc01334f" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-3aa9995fc21f801f8761e5cff4f8389c"><summary><span class="notion-pink"><b>解释8</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80ddb102fe712ee0fbdb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A40199ee9-cda0-423a-b9e5-4740b4771c05%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80dd-b102-fe712ee0fbdb&amp;t=3aa9995f-c21f-80dd-b102-fe712ee0fbdb" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f80dbabcad6e10b113df8"><summary><span class="notion-pink"><b>涉及到的寄存器位</b></span></summary><div><details class="notion-toggle notion-block-3aa9995fc21f805da278dba434e31fc9"><summary><span class="notion-purple"><b>ADDR - - - SR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8052bf8ac9ab0dd1eeec"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac896fa50-3766-46a3-91cf-5a3c0115c3a0%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8052-bf8a-c9ab0dd1eeec&amp;t=3aa9995f-c21f-8052-bf8a-c9ab0dd1eeec" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80f6bdfcc57f58a97217"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aec98c54a-3f5d-403f-8b2c-3a3f79ad7c82%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80f6-bdfc-c57f58a97217&amp;t=3aa9995f-c21f-80f6-bdfc-c57f58a97217" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f8058a49ff0a36d932087"><summary><span class="notion-purple"><b>ITEVTEN - - - CR2寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80cf9a10cdd8bd636918"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abb2c80ae-0c27-459c-9055-72490449ab70%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80cf-9a10-cdd8bd636918&amp;t=3aa9995f-c21f-80cf-9a10-cdd8bd636918" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f802a88c5c0064408f821"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4123dff7-79bd-4571-8f85-94ab4cf0e75f%3Aimage.png?table=block&amp;id=3aa9995f-c21f-802a-88c5-c0064408f821&amp;t=3aa9995f-c21f-802a-88c5-c0064408f821" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f805391b5c235aae3085c"><summary><span class="notion-purple"><b>TRA - - - SR2寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f809796b0c1b8bd52198a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8ad0a69b-d0b8-47ef-833f-13072bfd144b%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8097-96b0-c1b8bd52198a&amp;t=3aa9995f-c21f-8097-96b0-c1b8bd52198a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8022b6eefde5e2b8d966"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A604da69c-fa92-45e1-aae7-9daf4da394a2%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8022-b6ee-fde5e2b8d966&amp;t=3aa9995f-c21f-8022-b6ee-fde5e2b8d966" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f802f88affd2fb2bc4704"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A957ef839-814f-4709-8397-695860923f63%3Aimage.png?table=block&amp;id=3aa9995f-c21f-802f-88af-fd2fb2bc4704&amp;t=3aa9995f-c21f-802f-88af-fd2fb2bc4704" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-3aa9995fc21f808388a9f0858ad096be"><summary><span class="notion-pink"><b>解释9</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80e5a6dcf471728f2dc8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afd2d02e2-6049-4b30-9eca-2707dd114993%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80e5-a6dc-f471728f2dc8&amp;t=3aa9995f-c21f-80e5-a6dc-f471728f2dc8" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f806ca2e9ccc67163719b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad48f18ee-df89-402b-9fd3-bed929d906d3%3Aimage.png?table=block&amp;id=3aa9995f-c21f-806c-a2e9-ccc67163719b&amp;t=3aa9995f-c21f-806c-a2e9-ccc67163719b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80fc95fbf933337e2303"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A14f7ed0a-38f6-4067-8631-3b987d5f8002%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80fc-95fb-f933337e2303&amp;t=3aa9995f-c21f-80fc-95fb-f933337e2303" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f80b69376d78e40f0857f"><summary><span class="notion-pink"><b>涉及到的寄存器位</b></span></summary><div><details class="notion-toggle notion-block-3aa9995fc21f808692b4f6c9aa608581"><summary><span class="notion-purple"><b>ADDR、TxE、BTF、AF、SB、ADD10 - - - SR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80afac55d43f0eb3fbdc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A695d63dc-6da6-4e69-a6b1-db9ce8c5bda6%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80af-ac55-d43f0eb3fbdc&amp;t=3aa9995f-c21f-80af-ac55-d43f0eb3fbdc" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80308515c2250f72bc30"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A08b728cb-1834-4fa8-8bd5-84a0c0d4c75b%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8030-8515-c2250f72bc30&amp;t=3aa9995f-c21f-8030-8515-c2250f72bc30" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80959d81c36261ec95c4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A98834a2f-4f61-417f-9240-6dd2bffe1931%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8095-9d81-c36261ec95c4&amp;t=3aa9995f-c21f-8095-9d81-c36261ec95c4" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8078bf7ef489e4801901"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A82510b56-ee8e-4d71-a3c7-40bab55b5f08%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8078-bf7e-f489e4801901&amp;t=3aa9995f-c21f-8078-bf7e-f489e4801901" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f802eb984cfc8c70b9744"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad01947e0-025f-4479-9e76-9ed54abbd09e%3Aimage.png?table=block&amp;id=3aa9995f-c21f-802e-b984-cfc8c70b9744&amp;t=3aa9995f-c21f-802e-b984-cfc8c70b9744" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f805b9a40fafd6fb1b4a7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8d3fa7bd-a618-4a65-9262-b9fb4e15043e%3Aimage.png?table=block&amp;id=3aa9995f-c21f-805b-9a40-fafd6fb1b4a7&amp;t=3aa9995f-c21f-805b-9a40-fafd6fb1b4a7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8096be89de93385f0f94"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab69bec9d-3cd4-46a5-a66b-dbdec200bb1a%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8096-be89-de93385f0f94&amp;t=3aa9995f-c21f-8096-be89-de93385f0f94" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f8088942dc532b4292a0d"><summary><span class="notion-purple"><b>ITEVTEN、ITBUFEN - - - CR2寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80e08492ee281dd091ce"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abb2c80ae-0c27-459c-9055-72490449ab70%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80e0-8492-ee281dd091ce&amp;t=3aa9995f-c21f-80e0-8492-ee281dd091ce" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8083bda8e0648eb98ba5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4123dff7-79bd-4571-8f85-94ab4cf0e75f%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8083-bda8-e0648eb98ba5&amp;t=3aa9995f-c21f-8083-bda8-e0648eb98ba5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8069ac39e751ca024b39"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8f64e8bc-f2a1-46ab-8ec5-33d93607cda5%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8069-ac39-e751ca024b39&amp;t=3aa9995f-c21f-8069-ac39-e751ca024b39" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f8091959ae77588cc58c7"><summary><span class="notion-purple"><b>DR - - - DR（数据）寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8012bdf9cb1f4dbaf3bf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab29d4d08-2542-41c5-ab15-121b66d263f9%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8012-bdf9-cb1f4dbaf3bf&amp;t=3aa9995f-c21f-8012-bdf9-cb1f4dbaf3bf" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f809391ece719b5cc6bcc"><summary><span class="notion-purple"><b>MSL - - - SR2寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80cd8cb1caccbab4c70e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa0408f9e-a38a-4ec3-8c3d-7f49c30d8a55%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80cd-8cb1-caccbab4c70e&amp;t=3aa9995f-c21f-80cd-8cb1-caccbab4c70e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80bebab0d7b048b58a15"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6ac4e6f4-20b8-453b-beaf-4cd5fd1f72e6%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80be-bab0-d7b048b58a15&amp;t=3aa9995f-c21f-80be-bab0-d7b048b58a15" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f806bb554c784e4db6a85"><summary><span class="notion-purple"><b>STOP - - - CR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8007a3b8e279aea70a09"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3e253270-9102-4ac8-a98f-42a094f45ab7%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8007-a3b8-e279aea70a09&amp;t=3aa9995f-c21f-8007-a3b8-e279aea70a09" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80439802d89101982082"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8bf20b67-e681-4dca-bf0a-d5d53b4f2226%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8043-9802-d89101982082&amp;t=3aa9995f-c21f-8043-9802-d89101982082" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f808eb95fd0bf559847a8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac82097e6-1e7c-47bb-b350-974a745e8314%3Aimage.png?table=block&amp;id=3aa9995f-c21f-808e-b95f-d0bf559847a8&amp;t=3aa9995f-c21f-808e-b95f-d0bf559847a8" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-3aa9995fc21f804a86a5c845166284cb"><summary><span class="notion-pink"><b>解释10</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8004a1d4d2494099bc6b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0adb5682-1d55-4048-be93-44112d22ca44%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8004-a1d4-d2494099bc6b&amp;t=3aa9995f-c21f-8004-a1d4-d2494099bc6b" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f80628ae9c0c4855e5334"><summary><span class="notion-pink"><b>涉及到的寄存器位</b></span></summary><div><details class="notion-toggle notion-block-3aa9995fc21f808c9544dd74a1086936"><summary><span class="notion-purple"><b>ADDR、RxNE、BTF - - - SR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80de9ac0cb5d6d897e51"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A695d63dc-6da6-4e69-a6b1-db9ce8c5bda6%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80de-9ac0-cb5d6d897e51&amp;t=3aa9995f-c21f-80de-9ac0-cb5d6d897e51" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8032ac55cea6ccdc2a06"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A08b728cb-1834-4fa8-8bd5-84a0c0d4c75b%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8032-ac55-cea6ccdc2a06&amp;t=3aa9995f-c21f-8032-ac55-cea6ccdc2a06" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8045897bfd1cd34487f1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3ef27fc2-ea38-4c7e-9e00-44e4a075a954%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8045-897b-fd1cd34487f1&amp;t=3aa9995f-c21f-8045-897b-fd1cd34487f1" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f804085b2f2d0b4caf8d4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A82510b56-ee8e-4d71-a3c7-40bab55b5f08%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8040-85b2-f2d0b4caf8d4&amp;t=3aa9995f-c21f-8040-85b2-f2d0b4caf8d4" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f801d893be6f4eab3e6e3"><summary><span class="notion-purple"><b>ITEVTEN、ITBUFEN - - - CR2寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80efb72ee9f086d25208"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abb2c80ae-0c27-459c-9055-72490449ab70%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80ef-b72e-e9f086d25208&amp;t=3aa9995f-c21f-80ef-b72e-e9f086d25208" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80419be6ddcc4cf35b94"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4123dff7-79bd-4571-8f85-94ab4cf0e75f%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8041-9be6-ddcc4cf35b94&amp;t=3aa9995f-c21f-8041-9be6-ddcc4cf35b94" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8082b0ecf51ce6fccc56"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8f64e8bc-f2a1-46ab-8ec5-33d93607cda5%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8082-b0ec-f51ce6fccc56&amp;t=3aa9995f-c21f-8082-b0ec-f51ce6fccc56" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f80fe91e4cd7e9d8f4105"><summary><span class="notion-purple"><b>DR - - - DR（数据）寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80d78c9ad9c958171681"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab29d4d08-2542-41c5-ab15-121b66d263f9%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80d7-8c9a-d9c958171681&amp;t=3aa9995f-c21f-80d7-8c9a-d9c958171681" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f806ea8a4d654cde42a03"><summary><span class="notion-purple"><b>ACK - - - CR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8001a61bec1b13fd9686"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3e253270-9102-4ac8-a98f-42a094f45ab7%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8001-a61b-ec1b13fd9686&amp;t=3aa9995f-c21f-8001-a61b-ec1b13fd9686" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8022b326d72a9b30977f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A75127b24-37b6-41b2-beb0-8ba7dc155194%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8022-b326-d72a9b30977f&amp;t=3aa9995f-c21f-8022-b326-d72a9b30977f" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f809391d7d8758c094743"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad16b862a-d2c2-408a-beb9-d4c183dd8c25%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8093-91d7-d8758c094743&amp;t=3aa9995f-c21f-8093-91d7-d8758c094743" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-3aa9995fc21f806aa44ff0efab575fd4"><summary><span class="notion-pink"><b>解释11</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f808890dce53c70d2b5cd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A41b29dea-d242-49cc-aedd-1a7c85260dc2%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8088-90dc-e53c70d2b5cd&amp;t=3aa9995f-c21f-8088-90dc-e53c70d2b5cd" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80a3bc52c9fb5d7b1939"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A383f545e-07a0-4b78-9b56-38630ca28693%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80a3-bc52-c9fb5d7b1939&amp;t=3aa9995f-c21f-80a3-bc52-c9fb5d7b1939" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80aea776e6e1ca9976bd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aee728401-2a0f-4452-854c-2ab06972078e%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80ae-a776-e6e1ca9976bd&amp;t=3aa9995f-c21f-80ae-a776-e6e1ca9976bd" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f80fabc54e74c54bc7bb8"><summary><span class="notion-pink"><b>解释12 - - - 图246</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80fd89c8d349c00e9771"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa073409b-f25b-40e3-9970-d99456e9a4f5%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80fd-89c8-d349c00e9771&amp;t=3aa9995f-c21f-80fd-89c8-d349c00e9771" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80f7b94ecb89895af2bf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7d75e940-5b57-4d9d-8895-bc20a828cc7d%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80f7-b94e-cb89895af2bf&amp;t=3aa9995f-c21f-80f7-b94e-cb89895af2bf" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f806289e6c54d00db1b2a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8696a041-0253-4b6e-ab5f-1c08fa64a523%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8062-89e6-c54d00db1b2a&amp;t=3aa9995f-c21f-8062-89e6-c54d00db1b2a" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f80199549c070e5bb206d"><summary><span class="notion-pink"><b>涉及到的寄存器位</b></span></summary><div><details class="notion-toggle notion-block-3aa9995fc21f80ecb030d34be8fb6d7b"><summary><span class="notion-purple"><b>ADDR、RxNE、SB、ADD10 - - - SR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f804e854effa7c7258f64"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A695d63dc-6da6-4e69-a6b1-db9ce8c5bda6%3Aimage.png?table=block&amp;id=3aa9995f-c21f-804e-854e-ffa7c7258f64&amp;t=3aa9995f-c21f-804e-854e-ffa7c7258f64" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f800ea502fad2558304d9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A08b728cb-1834-4fa8-8bd5-84a0c0d4c75b%3Aimage.png?table=block&amp;id=3aa9995f-c21f-800e-a502-fad2558304d9&amp;t=3aa9995f-c21f-800e-a502-fad2558304d9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f809090e8eb9b3680b02f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3ef27fc2-ea38-4c7e-9e00-44e4a075a954%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8090-90e8-eb9b3680b02f&amp;t=3aa9995f-c21f-8090-90e8-eb9b3680b02f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80baa53ce391f6b7ced4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8d3fa7bd-a618-4a65-9262-b9fb4e15043e%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80ba-a53c-e391f6b7ced4&amp;t=3aa9995f-c21f-80ba-a53c-e391f6b7ced4" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f807989aeeb3fbacf638b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab69bec9d-3cd4-46a5-a66b-dbdec200bb1a%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8079-89ae-eb3fbacf638b&amp;t=3aa9995f-c21f-8079-89ae-eb3fbacf638b" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f80e29ef6e6558a06205f"><summary><span class="notion-purple"><b>DR - - - DR（数据）寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80f68d33d96228654472"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab29d4d08-2542-41c5-ab15-121b66d263f9%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80f6-8d33-d96228654472&amp;t=3aa9995f-c21f-80f6-8d33-d96228654472" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f8004a86cdb325a71d25a"><summary><span class="notion-purple"><b>MSL - - - SR2寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80ecaea7ed82d21aa382"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa0408f9e-a38a-4ec3-8c3d-7f49c30d8a55%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80ec-aea7-ed82d21aa382&amp;t=3aa9995f-c21f-80ec-aea7-ed82d21aa382" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8098b013fd05d60e3ff7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6ac4e6f4-20b8-453b-beaf-4cd5fd1f72e6%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8098-b013-fd05d60e3ff7&amp;t=3aa9995f-c21f-8098-b013-fd05d60e3ff7" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f8015b456dfbfb0ab428f"><summary><span class="notion-purple"><b>ACK、STOP、START - - - CR1寄存器</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80b69483f36ab725f844"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3e253270-9102-4ac8-a98f-42a094f45ab7%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80b6-9483-f36ab725f844&amp;t=3aa9995f-c21f-80b6-9483-f36ab725f844" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f805ebfc4de96f42f60ff"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A75127b24-37b6-41b2-beb0-8ba7dc155194%3Aimage.png?table=block&amp;id=3aa9995f-c21f-805e-bfc4-de96f42f60ff&amp;t=3aa9995f-c21f-805e-bfc4-de96f42f60ff" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80de8358daf277e0f814"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8bf20b67-e681-4dca-bf0a-d5d53b4f2226%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80de-8358-daf277e0f814&amp;t=3aa9995f-c21f-80de-8358-daf277e0f814" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f80eba757d2ecd6a01437"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae44cb276-c07b-4199-be9c-66e3df9f7cef%3Aimage.png?table=block&amp;id=3aa9995f-c21f-80eb-a757-d2ecd6a01437&amp;t=3aa9995f-c21f-80eb-a757-d2ecd6a01437" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details></div></details><details class="notion-toggle notion-block-3af9995fc21f807b8383e5ce8770bade"><summary><span class="notion-pink"><b>LM75温度传感器相关手册和电路图解析</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3af9995fc21f8007ac54c104e5c7a5a3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:621.9872436523438px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A44e555a6-094e-4701-9604-4715b4753679%3Aimage.png?table=block&amp;id=3af9995f-c21f-8007-ac54-c104e5c7a5a3&amp;t=3af9995f-c21f-8007-ac54-c104e5c7a5a3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3af9995fc21f809083c3e6a1d8b7879f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A18039b3c-abbc-4614-b199-4b4e1edd88e2%3Aimage.png?table=block&amp;id=3af9995f-c21f-8090-83c3-e6a1d8b7879f&amp;t=3af9995f-c21f-8090-83c3-e6a1d8b7879f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3af9995fc21f8048bfaec400952871be"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:566.9952392578125px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5560935e-915f-4e88-99fe-90a6d5be626b%3Aimage.png?table=block&amp;id=3af9995f-c21f-8048-bfae-c400952871be&amp;t=3af9995f-c21f-8048-bfae-c400952871be" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3af9995fc21f80879ac9e8d367d1de43"><li>在本案例上（第二张图所示），LM75A温度传感器A0、A1、A2，即第7、6、5脚连接在3V（高电平）的电源上；第三图所示，LM75A温度传感器的SDA、SCL，即第1、2脚分别连接在PB7、PB6端口上；</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3af9995fc21f80c6961cc193c860f9cd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A08f9d5f6-d3e8-4f7b-942b-dc87683875b6%3Aimage.png?table=block&amp;id=3af9995f-c21f-80c6-961c-c193c860f9cd&amp;t=3af9995f-c21f-80c6-961c-c193c860f9cd" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3af9995fc21f8093ad03d4863edad312"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A51ad9681-6a98-4b7b-8ed4-0f05f9c6dca3%3Aimage.png?table=block&amp;id=3af9995f-c21f-8093-ad03-d4863edad312&amp;t=3af9995f-c21f-8093-ad03-d4863edad312" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3af9995fc21f80e3b1e2ec0bff3980b7"><li>LM75温度传感器的从机地址按从高位到低位的顺序规定为1001+A2+A1+A0+R（1）/W（0），根据A2/A1/A0的不同值，可以分出8个不同从地址</li></ul><ul class="notion-list notion-list-disc notion-block-3af9995fc21f807484dacf5a077112b1"><li>温度寄存器的地址为0x00，只能读取，且读取两个字节（共16位）</li></ul><ul class="notion-list notion-list-disc notion-block-3af9995fc21f80ca93d5c8a007381e72"><li>配置寄存器的地址为0x01，读/写皆可，为1个字节（共8位）</li></ul><ul class="notion-list notion-list-disc notion-block-3af9995fc21f801980bbc169c907aaa2"><li>滞后（Thyst）寄存器的地址为0x02，读/写皆可，为0x4B0X（0100 1011 0XXX XXXX）</li></ul><ul class="notion-list notion-list-disc notion-block-3af9995fc21f8090a1acf4759448aee4"><li>过温关断阈值（Tos）寄存器的地址为0x03，读/写皆可，为0x500X（0101 0000 0XXX XXXX）</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3af9995fc21f8054ababc0b295b6fd7f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0a199cc8-7f61-4fba-a0ab-a6df3179ce01%3Aimage.png?table=block&amp;id=3af9995f-c21f-8054-abab-c0b295b6fd7f&amp;t=3af9995f-c21f-8054-abab-c0b295b6fd7f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3af9995fc21f80b489b3c36c1924cbf9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0fafc4fd-abc4-451f-b13e-ac79a4638cc4%3Aimage.png?table=block&amp;id=3af9995f-c21f-80b4-89b3-c36c1924cbf9&amp;t=3af9995f-c21f-80b4-89b3-c36c1924cbf9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3af9995fc21f806abac0c60d1e8a9556"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad8b55fe7-d667-413f-8589-5d67bc2509f6%3Aimage.png?table=block&amp;id=3af9995f-c21f-806a-bac0-c60d1e8a9556&amp;t=3af9995f-c21f-806a-bac0-c60d1e8a9556" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3af9995fc21f804f8eb0eeb553da652b"><li>除了第二张图所展示的温度计算方法之外，第一张图所展示的方法为温度相加，因此D7为0.5，D6为0.25，D5为0.125</li></ul><ul class="notion-list notion-list-disc notion-block-3af9995fc21f80c9a536e14ca3ae0da7"><li>第二张图所说的补码是在原码的基础上，进行反码操作，再加上1</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3af9995fc21f804cae70ef1f5ae5ba85"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af5f31625-fd4f-469a-9266-2e0f5a4d2e16%3Aimage.png?table=block&amp;id=3af9995f-c21f-804c-ae70-ef1f5ae5ba85&amp;t=3af9995f-c21f-804c-ae70-ef1f5ae5ba85" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3af9995fc21f803cbe10f2f8f416a67d"><li>D0=1，为代码中所说的省电模式</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3af9995fc21f80e7821bd2752ab889e7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A71b88a6f-0798-40fd-936c-1002a9a3dd86%3Aimage.png?table=block&amp;id=3af9995f-c21f-80e7-821b-d2752ab889e7&amp;t=3af9995f-c21f-80e7-821b-d2752ab889e7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3af9995fc21f8057a415c1dd340efe17"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9fb9103d-4f4f-451a-94ac-e9ac7ebcd946%3Aimage.png?table=block&amp;id=3af9995f-c21f-8057-a415-c1dd340efe17&amp;t=3af9995f-c21f-8057-a415-c1dd340efe17" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><div class="notion-text notion-block-3979995fc21f8042aa20ddfb63f1edb0"><span class="notion-red"><span class="notion-blue_background"><b>main.c文件代码文件：</b></span></span></div><div class="notion-text notion-block-3979995fc21f80fd967fe8e38a20c128"><span class="notion-red"><span class="notion-blue_background"><b>i2c.h文件代码文件：</b></span></span></div><div class="notion-text notion-block-3979995fc21f80d4b214eac54f4d1d60"><span class="notion-red"><span class="notion-blue_background"><b>i2c.c文件代码文件：</b></span></span></div><div class="notion-text notion-block-3af9995fc21f80ac9694f3d53a54dc54"><span class="notion-red"><span class="notion-blue_background"><b>Im75a.h文件代码文件：</b></span></span></div><div class="notion-text notion-block-3af9995fc21f800784e3e1cf60f8edff"><span class="notion-red"><span class="notion-blue_background"><b>Im75a.c文件代码文件：</b></span></span></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3999995fc21f80839bf5e2c353678540" data-id="3999995fc21f80839bf5e2c353678540"><span><div id="3999995fc21f80839bf5e2c353678540" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3999995fc21f80839bf5e2c353678540" title="10.1 I2C_Configuration(void)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">10.1 I2C_Configuration(void)</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3999995fc21f80f7add1f765907c04cf" data-id="3999995fc21f80f7add1f765907c04cf"><span><div id="3999995fc21f80f7add1f765907c04cf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3999995fc21f80f7add1f765907c04cf" title="I2C_InitTypeDef  I2C_InitStructure"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I2C_InitTypeDef  I2C_InitStructure</span></span></h4><ul class="notion-list notion-list-disc notion-block-3999995fc21f808b9b5afeb9cd1f5e49"><li>I2C_InitTypeDef类型的结构体，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_i2c.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3999995fc21f80ad9ce9cfe6bd34fc92" data-id="3999995fc21f80ad9ce9cfe6bd34fc92"><span><div id="3999995fc21f80ad9ce9cfe6bd34fc92" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3999995fc21f80ad9ce9cfe6bd34fc92" title="I2C_InitStructure.I2C_Mode = I2C_Mode_I2C"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I2C_InitStructure.I2C_Mode = I2C_Mode_I2C</span></span></h4><ul class="notion-list notion-list-disc notion-block-3999995fc21f80fd886cdcfcb9c60678"><li>含义：将I2C_CR1（控制寄存器1）的第1位SMBUS（SMBus模式）设置为0（I2C模式）</li></ul><ul class="notion-list notion-list-disc notion-block-3999995fc21f80a78f3ed6a6387612de"><li>I2C_Mode_I2C，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_i2c.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3a49995fc21f803d9adcc8eeaaae4525"><summary>I2C_CR1（控制寄存器1）- - -<span class="notion-purple"><b>【因涉及代码中I2C模式和SMBUS模式，所以在此做出解释】</b></span></summary><div><details class="notion-toggle notion-block-3a49995fc21f80cea4cbfaca978f2660"><summary><span class="notion-pink"><b>对下方手册内容的解释【豆包】- - - SMBUS和I2C区别和联系</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80818c74d30bf5ae4c46"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2628c91a-1b0f-4455-8e6c-55552d886518%3Aimage.png?table=block&amp;id=3a49995f-c21f-8081-8c74-d30bf5ae4c46&amp;t=3a49995f-c21f-8081-8c74-d30bf5ae4c46" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80378da1cfe8b3dad5ee"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A773070d7-7bd4-4257-9b5c-9a7b2db9cd43%3Aimage.png?table=block&amp;id=3a49995f-c21f-8037-8da1-cfe8b3dad5ee&amp;t=3a49995f-c21f-8037-8da1-cfe8b3dad5ee" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f805fa93cf78cfa2786f5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0ce3af09-709d-4232-9fb7-995b239e479d%3Aimage.png?table=block&amp;id=3a49995f-c21f-805f-a93c-f78cfa2786f5&amp;t=3a49995f-c21f-805f-a93c-f78cfa2786f5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80378c6be04ed2bac4d8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A90bacdc2-32ca-456a-8569-7fd50065291a%3Aimage.png?table=block&amp;id=3a49995f-c21f-8037-8c6b-e04ed2bac4d8&amp;t=3a49995f-c21f-8037-8c6b-e04ed2bac4d8" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3a49995fc21f8036a15aed24ed50e8e7"><li>I2C_CR1控制寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第505~507页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f8028bcdfe86e9077a641"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A24239ab9-9594-491c-bb45-f07b9e698719%3Aimage.png?table=block&amp;id=3a49995f-c21f-8028-bcdf-e86e9077a641&amp;t=3a49995f-c21f-8028-bcdf-e86e9077a641" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f806ca591d489a21a00eb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa8fd3598-48c8-40d2-a552-8b812ae5b8ab%3Aimage.png?table=block&amp;id=3a49995f-c21f-806c-a591-d489a21a00eb&amp;t=3a49995f-c21f-806c-a591-d489a21a00eb" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3999995fc21f8051a25bfd54b5d8c6b2" data-id="3999995fc21f8051a25bfd54b5d8c6b2"><span><div id="3999995fc21f8051a25bfd54b5d8c6b2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3999995fc21f8051a25bfd54b5d8c6b2" title="I2C_InitStructure.I2C_DutyCycle = I2C_DutyCycle_2"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I2C_InitStructure.I2C_DutyCycle = I2C_DutyCycle_2</span></span></h4><ul class="notion-list notion-list-disc notion-block-3999995fc21f801c9c63c4bbbcd7bd63"><li>含义：将I2C_CCR（时钟控制寄存器）下的第14位DUTY（快速模式时的占空比）设置为0（快速模式下：<span role="button" tabindex="0" class="notion-equation notion-equation-inline"><span></span></span>/<span role="button" tabindex="0" class="notion-equation notion-equation-inline"><span></span></span> = 2）</li></ul><ul class="notion-list notion-list-disc notion-block-3999995fc21f80039d17c23a054d7f18"><li>I2C_DutyCycle_2，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_i2c.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3a39995fc21f8061a02bdaa98db9fcfc"><summary>I2C_CCR（时钟控制寄存器）- - -<span class="notion-purple"><b>【因涉及代码中计算问题（I2C标准/快速模式的CCR），所以在此做出解释】</b></span></summary><div><details class="notion-toggle notion-block-3a39995fc21f80349367e5ee9942786e"><summary><span class="notion-pink"><b>对下方手册内容的解释【豆包】</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a39995fc21f801fadaacc1bcd0c707d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A586f6c83-8805-4e16-a6c9-6911c359db18%3Aimage.png?table=block&amp;id=3a39995f-c21f-801f-adaa-cc1bcd0c707d&amp;t=3a39995f-c21f-801f-adaa-cc1bcd0c707d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a39995fc21f807b9486e51f3bab7d41"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9456dc45-e219-4aed-8970-aaaa08d7819d%3Aimage.png?table=block&amp;id=3a39995f-c21f-807b-9486-e51f3bab7d41&amp;t=3a39995f-c21f-807b-9486-e51f3bab7d41" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a39995fc21f809798a5ddf0b4722902"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2660b73c-04a7-488e-a527-1dd4116d9e94%3Aimage.png?table=block&amp;id=3a39995f-c21f-8097-98a5-ddf0b4722902&amp;t=3a39995f-c21f-8097-98a5-ddf0b4722902" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a39995fc21f80a5bac6fe662823bd7c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6c1ab451-b6fe-4587-ab56-963eb971a6b5%3Aimage.png?table=block&amp;id=3a39995f-c21f-80a5-bac6-fe662823bd7c&amp;t=3a39995f-c21f-80a5-bac6-fe662823bd7c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a39995fc21f8056bb3cfd8ec3235385"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0ab1da1d-d01d-4abc-bc21-24d7625d16ad%3Aimage.png?table=block&amp;id=3a39995f-c21f-8056-bb3c-fd8ec3235385&amp;t=3a39995f-c21f-8056-bb3c-fd8ec3235385" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3a39995fc21f80a8b6c1d91511e399fb"><li>I2C_CCR时钟控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第513~514页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a39995fc21f8028bc04f98c545c9443"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abce537f2-26de-4e0c-b05c-9c84e20a639d%3Aimage.png?table=block&amp;id=3a39995f-c21f-8028-bc04-f98c545c9443&amp;t=3a39995f-c21f-8028-bc04-f98c545c9443" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a39995fc21f803880a8ee0d91af3bbc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5a4aa953-c522-47a7-b922-22deddcc635b%3Aimage.png?table=block&amp;id=3a39995f-c21f-8038-80a8-ee0d91af3bbc&amp;t=3a39995f-c21f-8038-80a8-ee0d91af3bbc" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-3a39995fc21f80c090e9e530e8350189"> </div></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3999995fc21f8031b417f980d8a2c435" data-id="3999995fc21f8031b417f980d8a2c435"><span><div id="3999995fc21f8031b417f980d8a2c435" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3999995fc21f8031b417f980d8a2c435" title="I2C_InitStructure.I2C_OwnAddress1 = HostAddress"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I2C_InitStructure.I2C_OwnAddress1 = HostAddress</span></span></h4><ul class="notion-list notion-list-disc notion-block-3999995fc21f80ea8c59deac6fd7c3e9"><li>含义：I2C的总线主机的器件地址为0xc0【1100 0000】，即将I2C_OAR1（自身地址寄存器1）的第1~7位ADD[7:1]（接口地址）设置为11000000（0xc0，总线主机的器件地址）</li></ul><ul class="notion-list notion-list-disc notion-block-3999995fc21f80f9ac87cf403ed24e9c"><li>HostAdress，出自i2c.h文件</li></ul><details class="notion-toggle notion-block-3a49995fc21f80c2b7a2cecf2ed4d19e"><summary>I2C_OAR1（自身地址寄存器1）</summary><div><ul class="notion-list notion-list-disc notion-block-3a49995fc21f8051880efb66466c7606"><li>I2C_OAR1自身地址寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第508~509页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f8027a5a0ff83c68724c7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adf5c5a13-c112-489d-bf68-4e65b1d4cad1%3Aimage.png?table=block&amp;id=3a49995f-c21f-8027-a5a0-ff83c68724c7&amp;t=3a49995f-c21f-8027-a5a0-ff83c68724c7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f809b9bcbe7ec2e10aea4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6cc98d1e-4074-40a1-aec1-10b374104705%3Aimage.png?table=block&amp;id=3a49995f-c21f-809b-9bcb-e7ec2e10aea4&amp;t=3a49995f-c21f-809b-9bcb-e7ec2e10aea4" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3999995fc21f806ab219f81c7d8863f9" data-id="3999995fc21f806ab219f81c7d8863f9"><span><div id="3999995fc21f806ab219f81c7d8863f9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3999995fc21f806ab219f81c7d8863f9" title="I2C_InitStructure.I2C_Ack = I2C_Ack_Enable"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I2C_InitStructure.I2C_Ack = I2C_Ack_Enable</span></span></h4><ul class="notion-list notion-list-disc notion-block-3999995fc21f808f8d20f59ff2f5dbcd"><li>含义：将I2C_CR1（控制寄存器1）的第10位ACK（应答使能）设置为1（在接收到一个字节后返回一个应答(匹配的地址或数据)）</li></ul><ul class="notion-list notion-list-disc notion-block-3999995fc21f802db921ce4dbb797381"><li>I2C_Ack_Enable，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_i2c.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3a49995fc21f8073a84aea4ab6a14314"><summary>I2C_CR1（控制寄存器1）</summary><div><ul class="notion-list notion-list-disc notion-block-3a49995fc21f8077a9a6e0508b5381b2"><li>I2C_CR1控制寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第505~507页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f8057a565d401063f942f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A24239ab9-9594-491c-bb45-f07b9e698719%3Aimage.png?table=block&amp;id=3a49995f-c21f-8057-a565-d401063f942f&amp;t=3a49995f-c21f-8057-a565-d401063f942f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80918945e2fdf6d89862"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7724c33e-a54a-4ce8-9400-8a126cb8921d%3Aimage.png?table=block&amp;id=3a49995f-c21f-8091-8945-e2fdf6d89862&amp;t=3a49995f-c21f-8091-8945-e2fdf6d89862" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3999995fc21f8096b958f4ae5d38aa96" data-id="3999995fc21f8096b958f4ae5d38aa96"><span><div id="3999995fc21f8096b958f4ae5d38aa96" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3999995fc21f8096b958f4ae5d38aa96" title="I2C_InitStructure.I2C_AcknowledgedAddress = I2C_AcknowledgedAddress_7bit"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I2C_InitStructure.I2C_AcknowledgedAddress = I2C_AcknowledgedAddress_7bit</span></span></h4><ul class="notion-list notion-list-disc notion-block-3999995fc21f802fbc53f425e70ad02a"><li>含义：将I2C_OAR1（自身地址寄存器1）的第15位ADDMODE（寻址模式（从模式））设置为0（7位从地址（不响应10位地址））</li></ul><ul class="notion-list notion-list-disc notion-block-3999995fc21f800fa5fddfc040dd0003"><li>I2C_AcknowledgedAddress_7bit，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_i2c.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3a49995fc21f80108ad6d1ee4ae245af"><summary>I2C_OAR1（自身地址寄存器1）</summary><div><ul class="notion-list notion-list-disc notion-block-3a49995fc21f808bb731e444473d282b"><li>I2C_OAR1自身地址寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第508~509页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80ebb859e9d191c40731"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adf5c5a13-c112-489d-bf68-4e65b1d4cad1%3Aimage.png?table=block&amp;id=3a49995f-c21f-80eb-b859-e9d191c40731&amp;t=3a49995f-c21f-80eb-b859-e9d191c40731" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f800a9773f7d4186bc1a2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6cc98d1e-4074-40a1-aec1-10b374104705%3Aimage.png?table=block&amp;id=3a49995f-c21f-800a-9773-f7d4186bc1a2&amp;t=3a49995f-c21f-800a-9773-f7d4186bc1a2" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3999995fc21f8057973dfbd6ea3ae57c" data-id="3999995fc21f8057973dfbd6ea3ae57c"><span><div id="3999995fc21f8057973dfbd6ea3ae57c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3999995fc21f8057973dfbd6ea3ae57c" title="I2C_InitStructure.I2C_ClockSpeed = BusSpeed"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I2C_InitStructure.I2C_ClockSpeed = BusSpeed</span></span></h4><ul class="notion-list notion-list-disc notion-block-3999995fc21f80ffaad5dc601e229927"><li>含义：I2C的总线速度为200000，I2C标准模式和快速模式下的速度分别为100kHz和400kHz</li></ul><ul class="notion-list notion-list-disc notion-block-3999995fc21f8004a47fcf05d66c0f1b"><li>BusSpeed，出自i2c.h文件</li></ul><details class="notion-toggle notion-block-3a49995fc21f80d6abc6d8862ba7b6bd"><summary>I2C_CCR（时钟控制寄存器）- - -<span class="notion-purple"><b>【因涉及代码中计算问题（I2C标准/快速模式的CCR），所以在此做出解释】</b></span></summary><div><details class="notion-toggle notion-block-3a49995fc21f80118121ccf883690241"><summary><span class="notion-pink"><b>对下方手册内容的解释【豆包】</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80afbee5f82200d56d5a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A586f6c83-8805-4e16-a6c9-6911c359db18%3Aimage.png?table=block&amp;id=3a49995f-c21f-80af-bee5-f82200d56d5a&amp;t=3a49995f-c21f-80af-bee5-f82200d56d5a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80c0b23ef5c5d560121a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9456dc45-e219-4aed-8970-aaaa08d7819d%3Aimage.png?table=block&amp;id=3a49995f-c21f-80c0-b23e-f5c5d560121a&amp;t=3a49995f-c21f-80c0-b23e-f5c5d560121a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80789200e2693e9a451b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2660b73c-04a7-488e-a527-1dd4116d9e94%3Aimage.png?table=block&amp;id=3a49995f-c21f-8078-9200-e2693e9a451b&amp;t=3a49995f-c21f-8078-9200-e2693e9a451b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80af9664f141f6a22be8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6c1ab451-b6fe-4587-ab56-963eb971a6b5%3Aimage.png?table=block&amp;id=3a49995f-c21f-80af-9664-f141f6a22be8&amp;t=3a49995f-c21f-80af-9664-f141f6a22be8" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80d59754f1674199609f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0ab1da1d-d01d-4abc-bc21-24d7625d16ad%3Aimage.png?table=block&amp;id=3a49995f-c21f-80d5-9754-f1674199609f&amp;t=3a49995f-c21f-80d5-9754-f1674199609f" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3a49995fc21f80958cbce0355e4f9fb7"><li>I2C_CCR时钟控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第513~514页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80df9a31f34e8cb16b78"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abce537f2-26de-4e0c-b05c-9c84e20a639d%3Aimage.png?table=block&amp;id=3a49995f-c21f-80df-9a31-f34e8cb16b78&amp;t=3a49995f-c21f-80df-9a31-f34e8cb16b78" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80f3ba43cbf561657bec"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5a4aa953-c522-47a7-b922-22deddcc635b%3Aimage.png?table=block&amp;id=3a49995f-c21f-80f3-ba43-cbf561657bec&amp;t=3a49995f-c21f-80f3-ba43-cbf561657bec" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-3a49995fc21f8073a6c8f522e6289ca1"> </div></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3999995fc21f80739583c20f5be882c0" data-id="3999995fc21f80739583c20f5be882c0"><span><div id="3999995fc21f80739583c20f5be882c0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3999995fc21f80739583c20f5be882c0" title="I2C_Init(I2C1,&amp;I2C_InitStructure)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I2C_Init(I2C1,&amp;I2C_InitStructure)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3999995fc21f80d39f8eef2bf0027abd"><li>含义：根据之前配置的结构体I2C_InitStruct，来将对应寄存器的相应位进行配置I2C</li></ul><ul class="notion-list notion-list-disc notion-block-3a49995fc21f80a39e2bdeab742c080a"><li>I2C1的起始地址：0x4000 5400 ~ 0x4000 57FF</li></ul><ul class="notion-list notion-list-disc notion-block-3a49995fc21f80a5b605ce568846a098"><li>第一个参数I2C1的地址值为0x4000 5400，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-39a9995fc21f807f8119e4fb3321b3b7"><li>I2C_Init函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_i2c.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3a49995fc21f8039b0b5e0d9503a39d8"><summary><code class="notion-inline-code">IS_I2C_ALL_PERIPH(I2Cx)</code></summary><div><ul class="notion-list notion-list-disc notion-block-3a49995fc21f80c88042d8bb4708a638"><li>IS_I2C_ALL_PERIPH函数，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_i2c.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-39e9995fc21f802a99b1db48f6830cf0"><summary>I2C_CR2（控制寄存器2）</summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f8009a358d9f95f2f2f04"><li>I2C_CR2控制寄存器2在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第507~508页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f804b8f95db751f98d3d7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad6568128-a257-4238-932a-bc94c586cf80%3Aimage.png?table=block&amp;id=39e9995f-c21f-804b-8f95-db751f98d3d7&amp;t=39e9995f-c21f-804b-8f95-db751f98d3d7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f807c826ef2dcc885065c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0c53460c-e7e2-47e3-a821-510e047ecef4%3Aimage.png?table=block&amp;id=39e9995f-c21f-807c-826e-f2dcc885065c&amp;t=39e9995f-c21f-807c-826e-f2dcc885065c" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-39e9995fc21f80a6a3bbeb5e0dfcf380"><summary><code class="notion-inline-code">RCC_ClocksTypeDef  rcc_clocks</code></summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80fea018d489328d582a"><li>创建了RCC_ClocksTypeDef类型的变量，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_rcc.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-39e9995fc21f80f8be29d9ad2b10e5bb"><summary><code class="notion-inline-code">RCC_GetClocksFreq(&amp;RCC_ClocksStatus)</code></summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f800893e1ff3c425b2e35"><li>RCC_GetClocksFreq函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-39e9995fc21f8001996ce7bdc28ef03f"><summary><code class="notion-inline-code">tmp = RCC-&gt;CFGR &amp; CFGR_SWS_Mask</code></summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80bbae47e0e74c83c5c7"><li>CFGR_SWS_Mask的值为((uint32_t)0x0000000C)，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-39e9995fc21f8071b9cdcbea3b6a2a0a"><summary>RCC_CFGR（时钟配置寄存器）- - - <span class="notion-teal"><b>与代码语句有关</b></span></summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f8024a26ed39c1e72103a"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f805f8705f30ab72d609a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5d9edeab-2815-4fde-9734-7d9dc29aa0a9%3Aimage.png?table=block&amp;id=39e9995f-c21f-805f-8705-f30ab72d609a&amp;t=39e9995f-c21f-805f-8705-f30ab72d609a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f807e93b7e9b2efcd19ed"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aafd65d92-70df-4f6c-a4e9-fecef4a6b6e2%3Aimage.png?table=block&amp;id=39e9995f-c21f-807e-93b7-e9b2efcd19ed&amp;t=39e9995f-c21f-807e-93b7-e9b2efcd19ed" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-39e9995fc21f8011863cde000c4f3f7b"><summary><code class="notion-inline-code">RCC_Clocks-&gt;SYSCLK_Frequency = HSI_VALUE</code></summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80859421d14ddc28e27c"><li>含义：将SYSCLK 系统主时钟频率设为HSI（内部高速）</li></ul><ul class="notion-list notion-list-disc notion-block-39e9995fc21f808b8a0adf80ab47c73f"><li>RCC_Clocks-&gt;SYSCLK_Frequency：SYSCLK 系统主时钟频率</li></ul><ul class="notion-list notion-list-disc notion-block-39e9995fc21f808cbbf8fd27cf852161"><li>HSI_VALUE，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-39e9995fc21f804e9031f46bd83acc7a"><summary><code class="notion-inline-code">RCC_Clocks-&gt;SYSCLK_Frequency = HSE_VALUE</code></summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f8036ab21d1914fb7c9bb"><li>含义：将SYSCLK 系统主时钟频率设为HSE（外部高速）</li></ul><ul class="notion-list notion-list-disc notion-block-39e9995fc21f806898a4f6e4f0b19686"><li>RCC_Clocks-&gt;SYSCLK_Frequency：SYSCLK 系统主时钟频率</li></ul><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80ca8b26ff1b9b43c0b4"><li>HSE_VALUE，出自CMSIS文件夹下的外设相关的stm32f10x.h（外设寄存器的定义）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul></div></details><details class="notion-toggle notion-block-39e9995fc21f80bfaacbc7fb87531a8b"><summary><code class="notion-inline-code">pllmull = RCC-&gt;CFGR &amp; CFGR_PLLMull_Mask和pllsource = RCC-&gt;CFGR &amp; CFGR_PLLSRC_Mask</code></summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f8020bd4deb0603152126"><li>含义：前者：读取PLL倍频系数（CFGR寄存器的PLLMULL[21:18]位）；后者：读取PLL时钟源选择（CFGR寄存器的PLLSRC[16]位）</li></ul><details class="notion-toggle notion-block-39e9995fc21f80b8a15dec9afbe1e064"><summary>RCC_CFGR（时钟配置寄存器，非互联网型）</summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80288f24fc8763c30c28"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f80859a38e07b4e921cfd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5d9edeab-2815-4fde-9734-7d9dc29aa0a9%3Aimage.png?table=block&amp;id=39e9995f-c21f-8085-9a38-e07b4e921cfd&amp;t=39e9995f-c21f-8085-9a38-e07b4e921cfd" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f8092950bdaf591837aba"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:568.4439697265625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abdd9c5ae-a1d0-463c-84bf-c49730d59bb2%3Aimage.png?table=block&amp;id=39e9995f-c21f-8092-950b-daf591837aba&amp;t=39e9995f-c21f-8092-950b-daf591837aba" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f80dd8dfed2653e58f939"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:568.4244384765625px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abeef2b6a-07a3-4040-9802-7d94e481fc6e%3Aimage.png?table=block&amp;id=39e9995f-c21f-80dd-8dfe-d2653e58f939&amp;t=39e9995f-c21f-80dd-8dfe-d2653e58f939" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-39e9995fc21f809dbdafd861ee6ac423"><summary>RCC_CFGR（时钟配置寄存器，互联网型）</summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80e5aa53ee90eac99c03"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第86~88页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f807b86a8f0610014c1ac"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0b152d3d-4460-47cf-8502-b5c2d324adf1%3Aimage.png?table=block&amp;id=39e9995f-c21f-807b-86a8-f0610014c1ac&amp;t=39e9995f-c21f-807b-86a8-f0610014c1ac" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f805e8b2fd44acb4d73ad"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aadac0de4-657a-427b-b83b-c2d0f0a33445%3Aimage.png?table=block&amp;id=39e9995f-c21f-805e-8b2f-d44acb4d73ad&amp;t=39e9995f-c21f-805e-8b2f-d44acb4d73ad" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f80389dafdee18e974f8d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A91df991c-0e46-4d8e-a35c-451ed1828acf%3Aimage.png?table=block&amp;id=39e9995f-c21f-8038-9daf-dee18e974f8d&amp;t=39e9995f-c21f-8038-9daf-dee18e974f8d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f80b2978ff7bd773e16fd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aee5b6595-8479-4cd6-b278-f62320c1ccf3%3Aimage.png?table=block&amp;id=39e9995f-c21f-80b2-978f-f7bd773e16fd&amp;t=39e9995f-c21f-80b2-978f-f7bd773e16fd" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-39e9995fc21f80399d84e1ee5fad0b31"><summary><code class="notion-inline-code">prediv1factor = (RCC-&gt;CFGR2 &amp; CFGR2_PREDIV1) + 1和RCC_Clocks-&gt;SYSCLK_Frequency = (HSE_VALUE / prediv1factor) * pllmull</code></summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f8048958eeb8a766b412a"><li><span class="notion-red"><b>属于超值型范畴</b></span></li></ul><ul class="notion-list notion-list-disc notion-block-39e9995fc21f8031ba54cd6aa3775db4"><li>含义：前者：读取CFGR2寄存器的0~3位，然后在此基础上加上1，最后赋值给prediv1factor。后者：将HSE_VALUE（8000000）除以prediv1factor，得出的值乘以之前“<code class="notion-inline-code">pllmull = (pllmull &gt;&gt; 18) + 2;</code>”处理的倍频系数值，最后写回到RCC_Clocks对象的SYSCLK系统主时钟频率中。</li></ul><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80b4b232c29375656436"><li>CFGR2_PREDIV1，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_rcc.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-39e9995fc21f807887f5e9dde74f3409"><summary>RCC_CFGR2（时钟配置寄存器2）</summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80689ca2cd330008de9c"><li>RCC_CFGR2时钟配置寄存器2在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第101~103页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f8000a6b8f963caf02e4d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af1db16e3-63c9-4583-9cbf-b1ed71b19839%3Aimage.png?table=block&amp;id=39e9995f-c21f-8000-a6b8-f963caf02e4d&amp;t=39e9995f-c21f-8000-a6b8-f963caf02e4d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f80fa92d6d3398b7a41c8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A70fd7ae2-05ab-4776-9fdb-10d2e66c89a7%3Aimage.png?table=block&amp;id=39e9995f-c21f-80fa-92d6-d3398b7a41c8&amp;t=39e9995f-c21f-80fa-92d6-d3398b7a41c8" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f80169deec1e5dbaabb8b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:568.4309692382812px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad6663bb2-38a9-4607-97f8-1a1878263d1d%3Aimage.png?table=block&amp;id=39e9995f-c21f-8016-9dee-c1e5dbaabb8b&amp;t=39e9995f-c21f-8016-9dee-c1e5dbaabb8b" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-39e9995fc21f80a2b944c5e460f890a2"><summary><code class="notion-inline-code">RCC-&gt;CFGR &amp; CFGR_PLLXTPRE_Mask</code></summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80378a8eef8b64e3544f"><li>含义：读取CFGR寄存器的第17位PLLXTPRE（HSE分频器作为PLL输入）</li></ul><details class="notion-toggle notion-block-39e9995fc21f8047b12fccda66463b77"><summary>RCC_CFGR（时钟配置寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80f48292cda2415a8f6b"><li>RCC_CFGR时钟配置寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第61~63页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f80ada6c8ed457ab47e27"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5d9edeab-2815-4fde-9734-7d9dc29aa0a9%3Aimage.png?table=block&amp;id=39e9995f-c21f-80ad-a6c8-ed457ab47e27&amp;t=39e9995f-c21f-80ad-a6c8-ed457ab47e27" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f80faad01f5870ee2ccff"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:568.4309692382812px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afb3d210e-04c3-4000-abfd-7460d40d0514%3Aimage.png?table=block&amp;id=39e9995f-c21f-80fa-ad01-f5870ee2ccff&amp;t=39e9995f-c21f-80fa-ad01-f5870ee2ccff" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-39e9995fc21f80e58850cf5bf5470489"><summary><code class="notion-inline-code">prediv1source = RCC-&gt;CFGR2 &amp; CFGR2_PREDIV1SRC</code></summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f8031895ddd1c8fb79156"><li><span class="notion-red"><b>属于互联网型范畴</b></span></li></ul><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80c98fedc3b057a286d6"><li>含义：读取CFGR2寄存器的第16位，赋值给prediv1source</li></ul><details class="notion-toggle notion-block-39e9995fc21f80b4b197f187d669e55f"><summary>RCC_CFGR2（时钟配置寄存器2）</summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80768895c434ba178675"><li>RCC_CFGR2时钟配置寄存器2在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第101~103页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f806d8656e4ae115d4548"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af1db16e3-63c9-4583-9cbf-b1ed71b19839%3Aimage.png?table=block&amp;id=39e9995f-c21f-806d-8656-e4ae115d4548&amp;t=39e9995f-c21f-806d-8656-e4ae115d4548" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f801fa2d6ff992fca29db"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A70fd7ae2-05ab-4776-9fdb-10d2e66c89a7%3Aimage.png?table=block&amp;id=39e9995f-c21f-801f-a2d6-ff992fca29db&amp;t=39e9995f-c21f-801f-a2d6-ff992fca29db" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f80b0a95bf0022f2d078b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abae03b72-8eed-4342-af2c-a1e35a9163d5%3Aimage.png?table=block&amp;id=39e9995f-c21f-80b0-a95b-f0022f2d078b&amp;t=39e9995f-c21f-80b0-a95b-f0022f2d078b" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-39e9995fc21f80e18e10d2730991898d"><summary><code class="notion-inline-code">prediv2factor = ((RCC-&gt;CFGR2 &amp; CFGR2_PREDIV2) &gt;&gt; 4) + 1</code></summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f8082880ce28bc4af98d4"><li><span class="notion-red"><b>属于互联网型范畴</b></span></li></ul><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80b4ba95eaba77bd3c72"><li>含义：读取CFGR2寄存器的第4~7位，然后右移4位，变成原本第4~7位移到了第0~3位，之后加上1，赋值给prediv2factor</li></ul><details class="notion-toggle notion-block-39e9995fc21f803ebc13c6312381e6e2"><summary>RCC_CFGR2（时钟配置寄存器2）</summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80f8b460dd02d330726c"><li>RCC_CFGR2时钟配置寄存器2在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第101~103页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f809c8e16eaadf128a9c1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af1db16e3-63c9-4583-9cbf-b1ed71b19839%3Aimage.png?table=block&amp;id=39e9995f-c21f-809c-8e16-eaadf128a9c1&amp;t=39e9995f-c21f-809c-8e16-eaadf128a9c1" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f80b2ae54f76b2df365ed"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A70fd7ae2-05ab-4776-9fdb-10d2e66c89a7%3Aimage.png?table=block&amp;id=39e9995f-c21f-80b2-ae54-f76b2df365ed&amp;t=39e9995f-c21f-80b2-ae54-f76b2df365ed" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f80da970cd63a9ab850e0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A94dabe41-3a52-4ca0-b1b3-aa9d6b4e6675%3Aimage.png?table=block&amp;id=39e9995f-c21f-80da-970c-d63a9ab850e0&amp;t=39e9995f-c21f-80da-970c-d63a9ab850e0" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-39e9995fc21f80c199c6d06dd42e7e03"><summary><code class="notion-inline-code">pll2mull = ((RCC-&gt;CFGR2 &amp; CFGR2_PLL2MUL) &gt;&gt; 8 ) + 2</code></summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f8051ad1cdd208a339256"><li><span class="notion-red"><b>属于互联网型范畴</b></span></li></ul><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80b3aa71fce6028aca59"><li>含义：读取CFGR2寄存器的第8~11位，然后右移8位，变成原本第8~11位移到了第0~3位，之后加上2，赋值给pll2mull</li></ul><details class="notion-toggle notion-block-39e9995fc21f806c8b05df2ecf437365"><summary>RCC_CFGR2（时钟配置寄存器2）</summary><div><ul class="notion-list notion-list-disc notion-block-39e9995fc21f80619babcac978b0b1fd"><li>RCC_CFGR2时钟配置寄存器2在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第101~103页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f80f09e48d259ddb63abb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af1db16e3-63c9-4583-9cbf-b1ed71b19839%3Aimage.png?table=block&amp;id=39e9995f-c21f-80f0-9e48-d259ddb63abb&amp;t=39e9995f-c21f-80f0-9e48-d259ddb63abb" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f80e898b3cbc6af958e2b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A70fd7ae2-05ab-4776-9fdb-10d2e66c89a7%3Aimage.png?table=block&amp;id=39e9995f-c21f-80e8-98b3-cbc6af958e2b&amp;t=39e9995f-c21f-80e8-98b3-cbc6af958e2b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39e9995fc21f8085951ad03ede6d152a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af407adf7-0366-4f6c-a6a2-5ab26449e5d6%3Aimage.png?table=block&amp;id=39e9995f-c21f-8085-951a-d03ede6d152a&amp;t=39e9995f-c21f-8085-951a-d03ede6d152a" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details></div></details><details class="notion-toggle notion-block-39f9995fc21f805ea11dd2fa1d2d38f6"><summary>I2C_CR1（控制寄存器1）- - -<span class="notion-purple"><b>【因涉及代码中I2C模式和SMBUS模式，所以在此做出解释】</b></span></summary><div><details class="notion-toggle notion-block-3a49995fc21f8039ab9ed481c41d62dd"><summary><span class="notion-pink"><b>对下方手册内容的解释【豆包】- - - SMBUS和I2C区别和联系</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f8002b31de197cdade7f3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2628c91a-1b0f-4455-8e6c-55552d886518%3Aimage.png?table=block&amp;id=3a49995f-c21f-8002-b31d-e197cdade7f3&amp;t=3a49995f-c21f-8002-b31d-e197cdade7f3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f800a8541e9ab5e71732c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A773070d7-7bd4-4257-9b5c-9a7b2db9cd43%3Aimage.png?table=block&amp;id=3a49995f-c21f-800a-8541-e9ab5e71732c&amp;t=3a49995f-c21f-800a-8541-e9ab5e71732c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f8012824df610e15913c1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0ce3af09-709d-4232-9fb7-995b239e479d%3Aimage.png?table=block&amp;id=3a49995f-c21f-8012-824d-f610e15913c1&amp;t=3a49995f-c21f-8012-824d-f610e15913c1" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80d5a28ada8cd298a6af"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A90bacdc2-32ca-456a-8569-7fd50065291a%3Aimage.png?table=block&amp;id=3a49995f-c21f-80d5-a28a-da8cd298a6af&amp;t=3a49995f-c21f-80d5-a28a-da8cd298a6af" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-39f9995fc21f806c9f58ea57eef93353"><li>I2C_CR1控制寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第505~507页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-39f9995fc21f80639298c9fd47223558"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A24239ab9-9594-491c-bb45-f07b9e698719%3Aimage.png?table=block&amp;id=39f9995f-c21f-8063-9298-c9fd47223558&amp;t=39f9995f-c21f-8063-9298-c9fd47223558" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f801ea4d1d46889eb4093"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7724c33e-a54a-4ce8-9400-8a126cb8921d%3Aimage.png?table=block&amp;id=3a49995f-c21f-801e-a4d1-d46889eb4093&amp;t=3a49995f-c21f-801e-a4d1-d46889eb4093" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f804d9ee1ecc0976756cb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa8fd3598-48c8-40d2-a552-8b812ae5b8ab%3Aimage.png?table=block&amp;id=3a49995f-c21f-804d-9ee1-ecc0976756cb&amp;t=3a49995f-c21f-804d-9ee1-ecc0976756cb" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a29995fc21f802e90c4c93d4360322d"><summary>I2C_CCR（时钟控制寄存器）- - -<span class="notion-purple"><b>【因涉及代码中计算问题（I2C标准/快速模式的CCR），所以在此做出解释】</b></span></summary><div><details class="notion-toggle notion-block-3a29995fc21f80a1b0cce29b010cdd4a"><summary><span class="notion-pink"><b>对下方手册内容的解释【豆包】</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f803c9ab9d2dfb165a935"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A586f6c83-8805-4e16-a6c9-6911c359db18%3Aimage.png?table=block&amp;id=3a29995f-c21f-803c-9ab9-d2dfb165a935&amp;t=3a29995f-c21f-803c-9ab9-d2dfb165a935" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f8006967cc3268434c22d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9456dc45-e219-4aed-8970-aaaa08d7819d%3Aimage.png?table=block&amp;id=3a29995f-c21f-8006-967c-c3268434c22d&amp;t=3a29995f-c21f-8006-967c-c3268434c22d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f800c96bcfc8045b8dd2f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2660b73c-04a7-488e-a527-1dd4116d9e94%3Aimage.png?table=block&amp;id=3a29995f-c21f-800c-96bc-fc8045b8dd2f&amp;t=3a29995f-c21f-800c-96bc-fc8045b8dd2f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f80c8a3c7f8fda012042b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6c1ab451-b6fe-4587-ab56-963eb971a6b5%3Aimage.png?table=block&amp;id=3a29995f-c21f-80c8-a3c7-f8fda012042b&amp;t=3a29995f-c21f-80c8-a3c7-f8fda012042b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f80099be2d868f3bc0662"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0ab1da1d-d01d-4abc-bc21-24d7625d16ad%3Aimage.png?table=block&amp;id=3a29995f-c21f-8009-9be2-d868f3bc0662&amp;t=3a29995f-c21f-8009-9be2-d868f3bc0662" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3a29995fc21f800595f5fdd5aeda4e31"><li>I2C_CCR时钟控制寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第513~514页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f802ea696dbdf6482d0a8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abce537f2-26de-4e0c-b05c-9c84e20a639d%3Aimage.png?table=block&amp;id=3a29995f-c21f-802e-a696-dbdf6482d0a8&amp;t=3a29995f-c21f-802e-a696-dbdf6482d0a8" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f802c8a96e754ac7e4399"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5a4aa953-c522-47a7-b922-22deddcc635b%3Aimage.png?table=block&amp;id=3a29995f-c21f-802c-8a96-e754ac7e4399&amp;t=3a29995f-c21f-802c-8a96-e754ac7e4399" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-3a29995fc21f803bb1b0e189ae582d0a"> </div></div></details><details class="notion-toggle notion-block-3a29995fc21f80dc99d8c21a49bb4aa0"><summary>I2C_TRISE（TRISE寄存器）- - -<span class="notion-purple"><b>【因涉及代码中计算问题（I2C标准/快速模式的TRISE（单次最大上升时间）），所以在此做出解释】</b></span></summary><div><details class="notion-toggle notion-block-3a29995fc21f80fb8bc8c2e132a69d99"><summary><span class="notion-pink"><b>对下方手册内容的解释【豆包】</b></span></summary><div><details class="notion-toggle notion-block-3a29995fc21f8092be5cdf8629387076"><summary><span class="notion-pink"><b>PCLK和SCL区别</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f8093b2bae5bcd49887a4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A473ddead-7c0e-4846-8827-10cd1c227b15%3Aimage.png?table=block&amp;id=3a29995f-c21f-8093-b2ba-e5bcd49887a4&amp;t=3a29995f-c21f-8093-b2ba-e5bcd49887a4" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f8098a097ee0817dbc840"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A44fc27a8-c1ee-4b0f-ae71-62ceb302d6a6%3Aimage.png?table=block&amp;id=3a29995f-c21f-8098-a097-ee0817dbc840&amp;t=3a29995f-c21f-8098-a097-ee0817dbc840" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f806dbd46fb1fed6d1654"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A39067235-8f80-474a-9ebd-d406767e34e8%3Aimage.png?table=block&amp;id=3a29995f-c21f-806d-bd46-fb1fed6d1654&amp;t=3a29995f-c21f-806d-bd46-fb1fed6d1654" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a29995fc21f8059b78ed4d173c8b311"><summary><span class="notion-pink"><b>手册内容解释1</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f803fb9b0fe58443e1dcb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aec52be29-9c85-4e49-afe7-f1237bd944eb%3Aimage.png?table=block&amp;id=3a29995f-c21f-803f-b9b0-fe58443e1dcb&amp;t=3a29995f-c21f-803f-b9b0-fe58443e1dcb" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f8071be50ff84d22d0141"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7864eb86-167d-4ecd-a882-19c7d6471e99%3Aimage.png?table=block&amp;id=3a29995f-c21f-8071-be50-ff84d22d0141&amp;t=3a29995f-c21f-8071-be50-ff84d22d0141" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f80a09f77ffbd04b57d0c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aef2d4c7c-79b5-4465-a4af-6161dbfe4edd%3Aimage.png?table=block&amp;id=3a29995f-c21f-80a0-9f77-ffbd04b57d0c&amp;t=3a29995f-c21f-80a0-9f77-ffbd04b57d0c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f80e4a0d4c15efebe6196"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6a18bd6d-2f16-4636-9bc5-96b440965cfa%3Aimage.png?table=block&amp;id=3a29995f-c21f-80e4-a0d4-c15efebe6196&amp;t=3a29995f-c21f-80e4-a0d4-c15efebe6196" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f80b78a67ec01f455a896"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3809562e-e7de-4d98-aa74-d1c42f860b1e%3Aimage.png?table=block&amp;id=3a29995f-c21f-80b7-8a67-ec01f455a896&amp;t=3a29995f-c21f-80b7-8a67-ec01f455a896" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a29995fc21f807d9443e07cea62dc32"><summary><span class="notion-pink"><b>手册内容解释2</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f8005936dda8d07a340a5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9b7b2f99-1699-4bb6-a6dd-fd0a7cb56920%3Aimage.png?table=block&amp;id=3a29995f-c21f-8005-936d-da8d07a340a5&amp;t=3a29995f-c21f-8005-936d-da8d07a340a5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f8036b508e750a000497e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A77352efe-63b2-41ad-b360-012e38a33561%3Aimage.png?table=block&amp;id=3a29995f-c21f-8036-b508-e750a000497e&amp;t=3a29995f-c21f-8036-b508-e750a000497e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f801aa272da4c936ccbb9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A577f0784-14be-4a06-aa8a-0fc5636b5cb7%3Aimage.png?table=block&amp;id=3a29995f-c21f-801a-a272-da4c936ccbb9&amp;t=3a29995f-c21f-801a-a272-da4c936ccbb9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f803db946ecff60235fa7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8c1b8a13-ec94-456b-b291-e312e20d4fff%3Aimage.png?table=block&amp;id=3a29995f-c21f-803d-b946-ecff60235fa7&amp;t=3a29995f-c21f-803d-b946-ecff60235fa7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f8052935ed9952cb94d65"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A817a3514-40ab-4537-9bb2-446d9b622414%3Aimage.png?table=block&amp;id=3a29995f-c21f-8052-935e-d9952cb94d65&amp;t=3a29995f-c21f-8052-935e-d9952cb94d65" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a29995fc21f80989bbdf745a33c779d"><summary><span class="notion-pink"><b>那TRISE最大上升时间指的是总共要花费的时间的吗？还是指单次由低电平到高电平的上升沿的时间？</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f807f833edfe4a5a079e9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ada4932e1-2533-478d-ac7f-a3d610766a0e%3Aimage.png?table=block&amp;id=3a29995f-c21f-807f-833e-dfe4a5a079e9&amp;t=3a29995f-c21f-807f-833e-dfe4a5a079e9" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><ul class="notion-list notion-list-disc notion-block-3a29995fc21f80999539f1638ee30459"><li>TRISE寄存器I2C_TRISE在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第514页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a29995fc21f8076bf90efa374479a75"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7cc97f82-2ede-4190-83ac-00c13732aef5%3Aimage.png?table=block&amp;id=3a29995f-c21f-8076-bf90-efa374479a75&amp;t=3a29995f-c21f-8076-bf90-efa374479a75" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-3a29995fc21f80999aece1f0d2760c48"> </div></div></details><details class="notion-toggle notion-block-3a49995fc21f80b4abbbd2669e9f608a"><summary>I2C_OAR1（自身地址寄存器1）</summary><div><ul class="notion-list notion-list-disc notion-block-3a49995fc21f809aa16fef6891f430fe"><li>I2C_OAR1自身地址寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第508~509页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80e993bcf353cd5be355"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adf5c5a13-c112-489d-bf68-4e65b1d4cad1%3Aimage.png?table=block&amp;id=3a49995f-c21f-80e9-93bc-f353cd5be355&amp;t=3a49995f-c21f-80e9-93bc-f353cd5be355" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f804f8824f403c7db1099"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6cc98d1e-4074-40a1-aec1-10b374104705%3Aimage.png?table=block&amp;id=3a49995f-c21f-804f-8824-f403c7db1099&amp;t=3a49995f-c21f-804f-8824-f403c7db1099" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3a49995fc21f80a996a0ed5655676699" data-id="3a49995fc21f80a996a0ed5655676699"><span><div id="3a49995fc21f80a996a0ed5655676699" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3a49995fc21f80a996a0ed5655676699" title="I2C_Cmd(I2C1,ENABLE)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I2C_Cmd(I2C1,ENABLE)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3a49995fc21f80b2980fe9a555db73ea"><li>含义：将I2C_CR1（控制寄存器1）的第0位PE（I2C模块使能）设置为1（启用I2C模块：根据SMBus位的设置，相应的I/O口需配置为复用功能）</li></ul><ul class="notion-list notion-list-disc notion-block-3a49995fc21f80cfb1e6ed0589da5934"><li>I2C_Cmd函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_i2c.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3a49995fc21f807bacc7c5337b55a214"><summary>I2C_CR1（控制寄存器1）</summary><div><ul class="notion-list notion-list-disc notion-block-3a49995fc21f80ee82baec4007fedcac"><li>I2C_CR1控制寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第505~507页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80279aeaf216bdde8494"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A24239ab9-9594-491c-bb45-f07b9e698719%3Aimage.png?table=block&amp;id=3a49995f-c21f-8027-9aea-f216bdde8494&amp;t=3a49995f-c21f-8027-9aea-f216bdde8494" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80ce97accf5f2f71f72d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac90fc466-41e9-4e4a-ac16-7066a7a3ba51%3Aimage.png?table=block&amp;id=3a49995f-c21f-80ce-97ac-cf5f2f71f72d&amp;t=3a49995f-c21f-80ce-97ac-cf5f2f71f72d" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3a49995fc21f8059a8c4c0e425f2bdb8" data-id="3a49995fc21f8059a8c4c0e425f2bdb8"><span><div id="3a49995fc21f8059a8c4c0e425f2bdb8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3a49995fc21f8059a8c4c0e425f2bdb8" title="10.2 I2C_SAND_BUFFER(u8 SlaveAddr,u8 WriteAddr,u8* pBuffer,u16 NumByteToWrite)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">10.2 I2C_SAND_BUFFER(u8 SlaveAddr,u8 WriteAddr,u8* pBuffer,u16 NumByteToWrite)</span></span></h3><ul class="notion-list notion-list-disc notion-block-3a49995fc21f80c3b712ded8bbfc5215"><li>含义：I2C发送数据串（器件地址，寄存器内部地址，数据串，数量）</li></ul><details class="notion-toggle notion-block-3ad9995fc21f802e9387f6e33d1db01a"><summary><span class="notion-pink"><b>★※【注意事项】该函数中EV事件的触发顺序（此触发顺序较参考手册略有不同，故在此做出解释）</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f8033b2fadea646cc8d36"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A60948236-26a1-4a57-a6a9-4c66f6a1e233%3Aimage.png?table=block&amp;id=3ad9995f-c21f-8033-b2fa-dea646cc8d36&amp;t=3ad9995f-c21f-8033-b2fa-dea646cc8d36" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f80de9586d4c4b28a9d4f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7e38c305-a5ad-47aa-a245-9866a13d6808%3Aimage.png?table=block&amp;id=3ad9995f-c21f-80de-9586-d4c4b28a9d4f&amp;t=3ad9995f-c21f-80de-9586-d4c4b28a9d4f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f8021a3ced4e7a02e2808"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa6f4ed85-8a33-4b79-8482-e64bf956d294%3Aimage.png?table=block&amp;id=3ad9995f-c21f-8021-a3ce-d4e7a02e2808&amp;t=3ad9995f-c21f-8021-a3ce-d4e7a02e2808" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f80d9bcbaf62b12a475f0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aad86a35b-6249-49be-a465-b4c6d4d453e5%3Aimage.png?table=block&amp;id=3ad9995f-c21f-80d9-bcba-f62b12a475f0&amp;t=3ad9995f-c21f-80d9-bcba-f62b12a475f0" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f80508a4ef5d8cb9ead3a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A275588b4-f351-4534-963a-63e0cb38453b%3Aimage.png?table=block&amp;id=3ad9995f-c21f-8050-8a4e-f5d8cb9ead3a&amp;t=3ad9995f-c21f-8050-8a4e-f5d8cb9ead3a" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3a49995fc21f80269f81fb8157f45d85" data-id="3a49995fc21f80269f81fb8157f45d85"><span><div id="3a49995fc21f80269f81fb8157f45d85" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3a49995fc21f80269f81fb8157f45d85" title="I2C_GenerateSTART(I2C1,ENABLE)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I2C_GenerateSTART(I2C1,ENABLE)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3a49995fc21f80df9eb0f06872e089d2"><li>含义：将I2C_CR1（控制寄存器1）的第8位START（起始条件产生）设置为1（在主模式下：重复产生起始条件；在从模式下：当总线空闲时，产生起始条件）</li></ul><ul class="notion-list notion-list-disc notion-block-3a49995fc21f80c6878ccbbae29a2ae3"><li>I2C_GenerateSTART函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_i2c.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3a49995fc21f80b2aedec05a32d28d79"><summary>I2C_CR1（控制寄存器1）- - -<span class="notion-purple"><b>【因涉及代码中主模式和从模式，所以在此做出解释】</b></span></summary><div><details class="notion-toggle notion-block-3a49995fc21f80db9302faaf8b3172a1"><summary><span class="notion-pink"><b>对下方手册内容的解释【豆包】- - - 主模式和从模式</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80908d7ee6f2082b735e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af1c87c50-b086-4142-8186-7c9f05b3a260%3Aimage.png?table=block&amp;id=3a49995f-c21f-8090-8d7e-e6f2082b735e&amp;t=3a49995f-c21f-8090-8d7e-e6f2082b735e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f80adba99f0dbb9f99217"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A41bd0e3c-ff90-4267-85bd-415b9810829b%3Aimage.png?table=block&amp;id=3a49995f-c21f-80ad-ba99-f0dbb9f99217&amp;t=3a49995f-c21f-80ad-ba99-f0dbb9f99217" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f801e9893f2ffe364aa40"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afe12e9c8-a51e-4efb-bdc3-dd8ecea1a4ed%3Aimage.png?table=block&amp;id=3a49995f-c21f-801e-9893-f2ffe364aa40&amp;t=3a49995f-c21f-801e-9893-f2ffe364aa40" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3a49995fc21f80519413c1cb150cfc3e"><li>I2C_CR1控制寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第505~507页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f8025be84c153672bacd7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A24239ab9-9594-491c-bb45-f07b9e698719%3Aimage.png?table=block&amp;id=3a49995f-c21f-8025-be84-c153672bacd7&amp;t=3a49995f-c21f-8025-be84-c153672bacd7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a49995fc21f809abfcbdc47b654027a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae3cd6adc-f3fc-41b1-a2f8-18de91178b53%3Aimage.png?table=block&amp;id=3a49995f-c21f-809a-bfcb-dc47b654027a&amp;t=3a49995f-c21f-809a-bfcb-dc47b654027a" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3a49995fc21f809cac09dd0269d75774" data-id="3a49995fc21f809cac09dd0269d75774"><span><div id="3a49995fc21f809cac09dd0269d75774" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3a49995fc21f809cac09dd0269d75774" title="while(!I2C_CheckEvent(I2C1,I2C_EVENT_MASTER_MODE_SELECT))"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">while(!I2C_CheckEvent(I2C1,I2C_EVENT_MASTER_MODE_SELECT))</span></span></h4><ul class="notion-list notion-list-disc notion-block-3aa9995fc21f806bbbccd07621c84204"><li>含义：判断已指定的事件I2C_EVENT_MASTER_MODE_SELECT：EV5（<span class="notion-orange">SR1寄存器的第0位SB【起始位（主模式）；值：0（未发送起始条件），1（起始条件已发送）】和SR2寄存器的第0位MSL【主从模式；值：0（从模式），1（主模式）】和SR2寄存器的第1位BUSY【总线忙；值：0（在总线上无数据通讯），1（在总线上正在进行数据通讯）】</span>）是否发生（若发生，则三个位都为1），若发生，则退出循环</li></ul><ul class="notion-list notion-list-disc notion-block-3a49995fc21f80fa888dcc680a78afba"><li>第二个参数I2C_EVENT_MASTER_MODE_SELECT的值为0x00030001【0000 0000 0000 0011 0000 0000 0000 0001】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_i2c.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3a59995fc21f80c788a0dabe724637a3"><li>I2C_CheckEvent函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_i2c.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3a59995fc21f80ea81b1f37f6cc6452b"><summary>I2C_SR1（状态寄存器1）</summary><div><ul class="notion-list notion-list-disc notion-block-3a59995fc21f80e78de8d55ee37f9d95"><li>I2C_SR1状态寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第510~512页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a59995fc21f8010984ddc2692b3335d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:583.9904174804688px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8eca2d9a-e085-460b-ae3a-c3069ac1d3ad%3Aimage.png?table=block&amp;id=3a59995f-c21f-8010-984d-dc2692b3335d&amp;t=3a59995f-c21f-8010-984d-dc2692b3335d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a59995fc21f80fb8d7ac6e7bc611b6b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:592.9888305664062px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A00ce305f-e4bc-4304-aa2f-6c64ae1291b1%3Aimage.png?table=block&amp;id=3a59995f-c21f-80fb-8d7a-c6e7bc611b6b&amp;t=3a59995f-c21f-80fb-8d7a-c6e7bc611b6b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a59995fc21f809db75dc665cc8cfadd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:569.9920043945312px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae33f28ba-7b2c-44e3-90c1-761b20961d7d%3Aimage.png?table=block&amp;id=3a59995f-c21f-809d-b75d-c665cc8cfadd&amp;t=3a59995f-c21f-809d-b75d-c665cc8cfadd" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a59995fc21f801892bffa8875088894"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:574.9760131835938px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac95a597c-268c-44a5-ba44-0d085f0cf1ce%3Aimage.png?table=block&amp;id=3a59995f-c21f-8018-92bf-fa8875088894&amp;t=3a59995f-c21f-8018-92bf-fa8875088894" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a59995fc21f80f0accaee275cffc588"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:568.9984130859375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae2c1c301-872a-447e-8cf6-971e088d9e16%3Aimage.png?table=block&amp;id=3a59995f-c21f-80f0-acca-ee275cffc588&amp;t=3a59995f-c21f-80f0-acca-ee275cffc588" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a59995fc21f80339de0e821e1b03039"><summary>I2C_SR2（状态寄存器2）</summary><div><ul class="notion-list notion-list-disc notion-block-3a59995fc21f80e19b0fd8962e904e3e"><li>I2C_SR2状态寄存器2在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第512~513页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a59995fc21f807e975bd9f4bc131b85"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:611.9872436523438px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A069abbd1-5e0b-4ef9-8c44-d79876dc44c7%3Aimage.png?table=block&amp;id=3a59995f-c21f-807e-975b-d9f4bc131b85&amp;t=3a59995f-c21f-807e-975b-d9f4bc131b85" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a59995fc21f8071bd16e3e21b58621c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:587.996826171875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9d5b20a4-9479-41ec-9a45-cecf370f64b3%3Aimage.png?table=block&amp;id=3a59995f-c21f-8071-bd16-e3e21b58621c&amp;t=3a59995f-c21f-8071-bd16-e3e21b58621c" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f809fa8eafbaf0d943595"><summary>SR1和SR2区别和各自位详解</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80718c4bc6c98d146bcc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0d626f55-fbfb-47f4-b11a-6d8b7fe217bf%3Aimage.png?table=block&amp;id=3a99995f-c21f-8071-8c4b-c6c98d146bcc&amp;t=3a99995f-c21f-8071-8c4b-c6c98d146bcc" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80fda221cd6740e7c98c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae7cbfad9-d84b-44b6-9027-99ed15bcc084%3Aimage.png?table=block&amp;id=3a99995f-c21f-80fd-a221-cd6740e7c98c&amp;t=3a99995f-c21f-80fd-a221-cd6740e7c98c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80db9047c80d4df1e872"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1bd041f6-e044-4f17-a664-133da55f75f1%3Aimage.png?table=block&amp;id=3a99995f-c21f-80db-9047-c80d4df1e872&amp;t=3a99995f-c21f-80db-9047-c80d4df1e872" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80d78d5be79211753fca"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad46a8370-b8d0-4747-bae5-aa00d35584d5%3Aimage.png?table=block&amp;id=3a99995f-c21f-80d7-8d5b-e79211753fca&amp;t=3a99995f-c21f-80d7-8d5b-e79211753fca" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3a99995fc21f809b80c5d5a9191500c3"><summary>代码为什么要把两个寄存器拼起来</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80b4ae06f3fd4b39abdc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac97e81c7-0aa3-4e16-8bd6-9781d8b927aa%3Aimage.png?table=block&amp;id=3a99995f-c21f-80b4-ae06-f3fd4b39abdc&amp;t=3a99995f-c21f-80b4-ae06-f3fd4b39abdc" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3a99995fc21f80e8ac90d1988b664c16"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7ee3080d-8264-4649-a8f0-1b8e16769045%3Aimage.png?table=block&amp;id=3a99995f-c21f-80e8-ac90-d1988b664c16&amp;t=3a99995f-c21f-80e8-ac90-d1988b664c16" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3aa9995fc21f80759877efdc3c9d98bc"><summary>为什么要设置三个位（SB/BUSY/MSL），才能表示清除EV5</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8008af11e51fcf2e97f9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab7653069-c7d1-49f2-87c0-4bcbcd10a917%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8008-af11-e51fcf2e97f9&amp;t=3aa9995f-c21f-8008-af11-e51fcf2e97f9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f8006bcefedae4d61675b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1f7d3fc5-2a2b-4775-af60-e983b3454a89%3Aimage.png?table=block&amp;id=3aa9995f-c21f-8006-bcef-edae4d61675b&amp;t=3aa9995f-c21f-8006-bcef-edae4d61675b" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3a59995fc21f80069164dbc112afe545" data-id="3a59995fc21f80069164dbc112afe545"><span><div id="3a59995fc21f80069164dbc112afe545" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3a59995fc21f80069164dbc112afe545" title="I2C_Send7bitAddress(I2C1,SlaveAddr,I2C_Direction_Transmitter)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I2C_Send7bitAddress(I2C1,SlaveAddr,I2C_Direction_Transmitter)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3aa9995fc21f806e959cde83245c1a09"><li>含义：将数据寄存器I2C_DR的第0~7位DR[7:0]写入（器件地址（SlaveAddr，高7位）+I2C_Direction_Transmitter（写操作，低1位，值为0））</li></ul><ul class="notion-list notion-list-disc notion-block-3aa9995fc21f800187a9ff02f29cef55"><li>第二个参数SlaveAddr为器件地址，来源于上一级函数I2C_SAND_BUFFER的第一个参数</li></ul><ul class="notion-list notion-list-disc notion-block-3aa9995fc21f803cb555e841f141a5ac"><li>第三个参数I2C_Direction_Transmitter，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_i2c.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3aa9995fc21f8012b256c3c6cfffb888"><li>I2C_Send7bitAddress函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_i2c.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3aa9995fc21f80e9ba4eec76cc7ab4d1"><summary>I2C_DR（数据寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3aa9995fc21f808c957ae97592815b36"><li>I2C_DR数据寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第509页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3aa9995fc21f808d9db1ea7f3d74002e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abb31f255-5c6b-407d-b5c3-fbbed292e46d%3Aimage.png?table=block&amp;id=3aa9995f-c21f-808d-9db1-ea7f3d74002e&amp;t=3aa9995f-c21f-808d-9db1-ea7f3d74002e" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3ad9995fc21f807baa8af94af8b511bb" data-id="3ad9995fc21f807baa8af94af8b511bb"><span><div id="3ad9995fc21f807baa8af94af8b511bb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3ad9995fc21f807baa8af94af8b511bb" title="I2C_SendData(I2C1,WriteAddr)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I2C_SendData(I2C1,WriteAddr)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f807aaca8cf933fb02228"><li>含义：将寄存器内部地址写入I2C_DR（数据寄存器）中</li></ul><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f8036b4dbe0f7dadb7473"><li>第二个参数WriteAddr，来源于上一层函数的第二个参数WriteAddr，表明寄存器内部地址</li></ul><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f8054bc50de8f00c9956d"><li>I2C_SendData函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_i2c.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3ad9995fc21f8010a1bae621d6332940"><summary>I2C_DR（数据寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f80aa8beac9bc72d898aa"><li>I2C_DR数据寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第509页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f803e914aedc943e63885"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abb31f255-5c6b-407d-b5c3-fbbed292e46d%3Aimage.png?table=block&amp;id=3ad9995f-c21f-803e-914a-edc943e63885&amp;t=3ad9995f-c21f-803e-914a-edc943e63885" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3ad9995fc21f80f0ab9ee089afd1e0cc" data-id="3ad9995fc21f80f0ab9ee089afd1e0cc"><span><div id="3ad9995fc21f80f0ab9ee089afd1e0cc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3ad9995fc21f80f0ab9ee089afd1e0cc" title="I2C_GenerateSTOP(I2C1,ENABLE)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I2C_GenerateSTOP(I2C1,ENABLE)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f806ca504e540d6d5b5ec"><li>含义：将I2C_CR1（控制寄存器1）的第9位STOP（停止条件产生）设置为1（在主模式下：在当前字节传输或在当前起始条件发出后产生停止条件；在从模式下：在当前字节传输或释放SCL和SDA线）</li></ul><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f80a3b7e4f3ce87056c4b"><li>I2C_GenerateSTOP函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_i2c.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3ad9995fc21f8082bdd8ca7b452d75a3"><summary>I2C_CR1（控制寄存器1）- - -<span class="notion-purple"><b>【因涉及代码中主模式和从模式，所以在此做出解释】</b></span></summary><div><details class="notion-toggle notion-block-3ad9995fc21f80b4a6fbe1ee4d896375"><summary><span class="notion-pink"><b>对下方手册内容的解释【豆包】- - - 主模式和从模式</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f800a97b1f6f847116f1c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af1c87c50-b086-4142-8186-7c9f05b3a260%3Aimage.png?table=block&amp;id=3ad9995f-c21f-800a-97b1-f6f847116f1c&amp;t=3ad9995f-c21f-800a-97b1-f6f847116f1c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f80e69f6ec2d2c0727306"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A41bd0e3c-ff90-4267-85bd-415b9810829b%3Aimage.png?table=block&amp;id=3ad9995f-c21f-80e6-9f6e-c2d2c0727306&amp;t=3ad9995f-c21f-80e6-9f6e-c2d2c0727306" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f80f08c64e4bb52748f83"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afe12e9c8-a51e-4efb-bdc3-dd8ecea1a4ed%3Aimage.png?table=block&amp;id=3ad9995f-c21f-80f0-8c64-e4bb52748f83&amp;t=3ad9995f-c21f-80f0-8c64-e4bb52748f83" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f808fb07dcec6b5a7117d"><li>I2C_CR1控制寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第505~507页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f80bcaf8bc9c01e10585d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A24239ab9-9594-491c-bb45-f07b9e698719%3Aimage.png?table=block&amp;id=3ad9995f-c21f-80bc-af8b-c9c01e10585d&amp;t=3ad9995f-c21f-80bc-af8b-c9c01e10585d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f809ea7c2f2252afc6d39"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad5db02f3-85c1-4b19-9005-e88735379e82%3Aimage.png?table=block&amp;id=3ad9995f-c21f-809e-a7c2-f2252afc6d39&amp;t=3ad9995f-c21f-809e-a7c2-f2252afc6d39" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3ad9995fc21f80e1a653dada135cd17b" data-id="3ad9995fc21f80e1a653dada135cd17b"><span><div id="3ad9995fc21f80e1a653dada135cd17b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3ad9995fc21f80e1a653dada135cd17b" title="10.3 I2C_READ_BUFFER(u8 SlaveAddr,u8 readAddr,u8* pBuffer,u16 NumByteToRead)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">10.3 I2C_READ_BUFFER(u8 SlaveAddr,u8 readAddr,u8* pBuffer,u16 NumByteToRead)</span></span></h3><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f80abb45ff12de9c50055"><li>含义：I2c读取数据串（器件地址，寄存器内部地址，数据串，数量）</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3ad9995fc21f8044b1b8da9d07874d8d" data-id="3ad9995fc21f8044b1b8da9d07874d8d"><span><div id="3ad9995fc21f8044b1b8da9d07874d8d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3ad9995fc21f8044b1b8da9d07874d8d" title="while(I2C_GetFlagStatus(I2C1,I2C_FLAG_BUSY))"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">while(I2C_GetFlagStatus(I2C1,I2C_FLAG_BUSY))</span></span></h4><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f80679391ea346833344e"><li>含义：根据I2C_FLAG_BUSY的值，首先将该值与SR2寄存器进行与运算，判断SR2寄存器的位1：总线忙标志。0=总线空闲无通信，1=总线正在被占用通信中）是否设置为1，如果设置为1，那么为true，则继续循环；否则为false，退出循环</li></ul><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f80818824e797075356d4"><li>第二个参数I2C_FLAG_BUSY值为0x00020000【0000 0000 0000 0010 0000 0000 0000 0000】，出自Lib文件夹下的inc文件夹下的外设相关的stm32f10x_i2c.h（<span class="notion-default"><span class="notion-default_background">外设固体库头文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f808d89ccc520ebd95f70"><li>I2C_GetFlagStatus函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_i2c.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3ad9995fc21f803ba5d0f50aa5fef084" data-id="3ad9995fc21f803ba5d0f50aa5fef084"><span><div id="3ad9995fc21f803ba5d0f50aa5fef084" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3ad9995fc21f803ba5d0f50aa5fef084" title="I2C_AcknowledgeConfig(I2C1,DISABLE)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I2C_AcknowledgeConfig(I2C1,DISABLE)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f8063bc09eff02237ca99"><li>含义：将I2C_CR1（控制寄存器1）的第10位ACK（应答使能）设置为0（无应答返回）</li></ul><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f80728578fb8c1068910a"><li>I2C_AcknowledgeConfig函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_i2c.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3ad9995fc21f802dbf0ecac5d329e724"><summary>I2C_CR1（控制寄存器1）- - -<span class="notion-purple"><b>【因涉及代码中主模式和从模式，所以在此做出解释】</b></span></summary><div><details class="notion-toggle notion-block-3ad9995fc21f80bfb772c5b0f125b75e"><summary><span class="notion-pink"><b>对下方手册内容的解释【豆包】- - - 主模式和从模式</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f808dbc33ce7196ace47b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af1c87c50-b086-4142-8186-7c9f05b3a260%3Aimage.png?table=block&amp;id=3ad9995f-c21f-808d-bc33-ce7196ace47b&amp;t=3ad9995f-c21f-808d-bc33-ce7196ace47b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f801b95dbcfa1d298eee3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A41bd0e3c-ff90-4267-85bd-415b9810829b%3Aimage.png?table=block&amp;id=3ad9995f-c21f-801b-95db-cfa1d298eee3&amp;t=3ad9995f-c21f-801b-95db-cfa1d298eee3" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f8064a103d83d9fa233c1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afe12e9c8-a51e-4efb-bdc3-dd8ecea1a4ed%3Aimage.png?table=block&amp;id=3ad9995f-c21f-8064-a103-d83d9fa233c1&amp;t=3ad9995f-c21f-8064-a103-d83d9fa233c1" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f80c08a3ce0d8cc485866"><li>I2C_CR1控制寄存器1在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第505~507页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f80b5b485cbff9ef94b0e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A24239ab9-9594-491c-bb45-f07b9e698719%3Aimage.png?table=block&amp;id=3ad9995f-c21f-80b5-b485-cbff9ef94b0e&amp;t=3ad9995f-c21f-80b5-b485-cbff9ef94b0e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f80da9600cb59f0dc0d8e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A71eb354b-15a5-4135-9722-25f8d7967e4e%3Aimage.png?table=block&amp;id=3ad9995f-c21f-80da-9600-cb59f0dc0d8e&amp;t=3ad9995f-c21f-80da-9600-cb59f0dc0d8e" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3ad9995fc21f806da4c9e0d18f4d7bfa" data-id="3ad9995fc21f806da4c9e0d18f4d7bfa"><span><div id="3ad9995fc21f806da4c9e0d18f4d7bfa" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3ad9995fc21f806da4c9e0d18f4d7bfa" title="*pBuffer = I2C_ReceiveData(I2C1)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">*pBuffer = I2C_ReceiveData(I2C1)</span></span></h4><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f804db832cedaa9bb715b"><li>含义：读取I2C1外设数据寄存器DR中的接收字节，将该字节写入指针pBuffer指向的内存位置</li></ul><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f804fa7c5f5b3090b8791"><li>I2C_ReceiveData函数，出自Lib文件夹下的src文件夹下的外设相关的stm32f10x_i2c.c（<span class="notion-default"><span class="notion-default_background">外设固体库文件</span></span>）<em><span class="notion-red"><b><span class="notion-inline-underscore">- - - ✿ 固体库文件</span></b></span></em></li></ul><details class="notion-toggle notion-block-3ad9995fc21f80b08e9adb6a92914050"><summary>I2C_DR（数据寄存器）</summary><div><ul class="notion-list notion-list-disc notion-block-3ad9995fc21f809eb08fc81becf5d50d"><li>I2C_DR数据寄存器在<em><span class="notion-pink"><b><span class="notion-inline-underscore">参考手册第509页</span></b></span></em>有定义</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3ad9995fc21f80288807d29a8d91abb8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abb31f255-5c6b-407d-b5c3-fbbed292e46d%3Aimage.png?table=block&amp;id=3ad9995f-c21f-8028-8807-d29a8d91abb8&amp;t=3ad9995f-c21f-8028-8807-d29a8d91abb8" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3b09995fc21f80d18718f2f384101169" data-id="3b09995fc21f80d18718f2f384101169"><span><div id="3b09995fc21f80d18718f2f384101169" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3b09995fc21f80d18718f2f384101169" title="十一、温度值OLED屏显示程序"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">十一、温度值OLED屏显示程序</span></span></h2><div class="notion-file notion-block-3b59995fc21f807881bcfdb73019edc6"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/08ea02e9-bbfd-457c-9def-9f879fa56d9b/OLED%E4%B8%BB%E6%8E%A7%E8%8A%AF%E7%89%87SH1106%E6%95%B0%E6%8D%AE%E6%89%8B%E5%86%8C_V2.3%EF%BC%88%E8%8B%B1%E6%96%87%EF%BC%89.pdf?table=block&amp;id=3b59995f-c21f-8078-81bc-fdb73019edc6&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=17n1s36Uexb_8XdVFCd8Regn4RHPzwmq_R2tSuRY5CA" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">OLED主控芯片SH1106数据手册 V2.3（英文）.pdf</div><div class="notion-file-size">736.4 KiB</div></div></a></div><div class="notion-file notion-block-3b59995fc21f800799bac8cb38963d7e"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/0a00fc33-02a2-40b7-8036-1bf7290b1188/OLED%E5%B1%8FSPEC_QG-2864KSWLG01_VER_A%E6%95%B0%E6%8D%AE%E6%89%8B%E5%86%8C%EF%BC%88%E8%8B%B1%E6%96%87%EF%BC%89.pdf?table=block&amp;id=3b59995f-c21f-8007-99ba-c8cb38963d7e&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=lbzsnybS6AtNoKfW8dfTdEtIyIABgzA0OhIHgc7gckc" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">OLED屏SPEC QG-2864KSWLG01 VER A数据手册（英文）.pdf</div><div class="notion-file-size">952.9 KiB</div></div></a></div><div class="notion-file notion-block-3b59995fc21f809a9290c8b73cdd083a"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/068cb71b-f51f-4a9b-8725-29b2f8564ec3/%E6%B4%8B%E6%A1%831%E5%8F%B7%E5%BC%80%E5%8F%91%E6%9D%BF%E7%94%B5%E8%B7%AF%E5%8E%9F%E7%90%86%E5%9B%BE%EF%BC%88OLED%E5%92%8C%E6%B8%A9%E5%BA%A6%E4%BC%A0%E6%84%9F%E5%99%A8%E9%83%A8%E5%88%86%EF%BC%89V1.0-20180211.pdf?table=block&amp;id=3b59995f-c21f-809a-9290-c8b73cdd083a&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=OPelEL3_ew9Dohx7re9kYX8De4xvtVzHxApxRHNiyB4" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">洋桃1号开发板电路原理图（OLED和温度传感器部分）V1.0-20180211.pdf</div><div class="notion-file-size">144.5 KiB</div></div></a></div><div class="notion-text notion-block-3b09995fc21f80619b3bd2c00374a68c"><span class="notion-red"><span class="notion-blue_background"><b>main.c文件代码文件：</b></span></span></div><div class="notion-text notion-block-3b09995fc21f8020b821f2b58050a0b5"><span class="notion-red"><span class="notion-blue_background"><b>oled0561.c文件代码文件：</b></span></span></div><div class="notion-text notion-block-3b09995fc21f8021a5a7e8f8b2e39a40"><span class="notion-red"><span class="notion-blue_background"><b>oled0561.h文件代码文件：</b></span></span></div><div class="notion-text notion-block-3b09995fc21f801a9526c7771f419b49"><span class="notion-red"><span class="notion-blue_background"><b>ASCII_8x16.h文件代码文件：</b></span></span></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3b59995fc21f803cb4f1d6bbe1c9376f" data-id="3b59995fc21f803cb4f1d6bbe1c9376f"><span><div id="3b59995fc21f803cb4f1d6bbe1c9376f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3b59995fc21f803cb4f1d6bbe1c9376f" title="11.1 OLED0561_ADD、COM、DAT的值解释（oled0561.h中定义的）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">11.1 OLED0561_ADD、COM、DAT的值解释（oled0561.h中定义的）</span></span></h3><details class="notion-toggle notion-block-3b59995fc21f8050bb0de6c6f11daf40"><summary><span class="notion-pink"><b>在SH1106的手册上是这么定义的</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f80aa9bb5f81a8caf37cb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac1919a67-8f00-4ab9-952e-ef32198f5a5b%3Aimage.png?table=block&amp;id=3b59995f-c21f-80aa-9bb5-f81a8caf37cb&amp;t=3b59995f-c21f-80aa-9bb5-f81a8caf37cb" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f80afabd7c61acc84b69e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae94b282a-0628-45f1-bb58-780a95640513%3Aimage.png?table=block&amp;id=3b59995f-c21f-80af-abd7-c61acc84b69e&amp;t=3b59995f-c21f-80af-abd7-c61acc84b69e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f806d9b77fd3c4b8c51c9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A754653d8-d03c-4243-9e32-fa0010f442b7%3Aimage.png?table=block&amp;id=3b59995f-c21f-806d-9b77-fd3c4b8c51c9&amp;t=3b59995f-c21f-806d-9b77-fd3c4b8c51c9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f80879071cfdda65eee6e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa9352f8e-fea0-4b68-be04-0bb01b6508d4%3Aimage.png?table=block&amp;id=3b59995f-c21f-8087-9071-cfdda65eee6e&amp;t=3b59995f-c21f-8087-9071-cfdda65eee6e" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b59995fc21f80269682c97db57cd165"><summary><span class="notion-pink"><b>解释1</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f80018324de11bf84ceea"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A94eb5dad-67eb-41a3-b468-4bbf61c6458c%3Aimage.png?table=block&amp;id=3b59995f-c21f-8001-8324-de11bf84ceea&amp;t=3b59995f-c21f-8001-8324-de11bf84ceea" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f800bb8e7c88846a48037"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afd6be004-988f-4e7e-89a4-b60236d74175%3Aimage.png?table=block&amp;id=3b59995f-c21f-800b-b8e7-c88846a48037&amp;t=3b59995f-c21f-800b-b8e7-c88846a48037" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f80219ae0f3ec4aa0bf18"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A719d8291-27f1-4abd-96d9-30f31cd092c3%3Aimage.png?table=block&amp;id=3b59995f-c21f-8021-9ae0-f3ec4aa0bf18&amp;t=3b59995f-c21f-8021-9ae0-f3ec4aa0bf18" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f80f9a7b1d2121105099d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afe9d652d-6a3e-4da7-979c-83f58d8b119d%3Aimage.png?table=block&amp;id=3b59995f-c21f-80f9-a7b1-d2121105099d&amp;t=3b59995f-c21f-80f9-a7b1-d2121105099d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f8050a6add90ba02f64dc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8fc1c731-7188-4cbf-b7fb-44965a654a61%3Aimage.png?table=block&amp;id=3b59995f-c21f-8050-a6ad-d90ba02f64dc&amp;t=3b59995f-c21f-8050-a6ad-d90ba02f64dc" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f80d0bbe2eb5661e09596"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7f67dc62-bdd6-4ef0-81e1-cdb7f67df1b5%3Aimage.png?table=block&amp;id=3b59995f-c21f-80d0-bbe2-eb5661e09596&amp;t=3b59995f-c21f-80d0-bbe2-eb5661e09596" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3b49995fc21f80b89e82d0cb3a8f7fb5" data-id="3b49995fc21f80b89e82d0cb3a8f7fb5"><span><div id="3b49995fc21f80b89e82d0cb3a8f7fb5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3b49995fc21f80b89e82d0cb3a8f7fb5" title="11.2 OLED0561_Init (void)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">11.2 OLED0561_Init (void)</span></span></h3><ul class="notion-list notion-list-disc notion-block-3b49995fc21f8065a4dbff323ea00fa3"><li>含义：OLED屏开显示初始化</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f800bb5beeba60417894f"><li>OLED0561_Init (void)函数，出自oled0561.c文件</li></ul><details class="notion-toggle notion-block-3b49995fc21f80209341cedf24e4feda"><summary><code class="notion-inline-code">OLED_DISPLAY_OFF()</code></summary><div><ul class="notion-list notion-list-disc notion-block-3b59995fc21f805fa704c99b3d05a033"><li>含义：OLED屏关显示</li></ul><ul class="notion-list notion-list-disc notion-block-3b59995fc21f808c84b0db9d1319e93a"><li>该函数，出自oled0561.c文件</li></ul><details class="notion-toggle notion-block-3b59995fc21f803e96fffba7cf046f71"><summary>buf数组的解释（<span class="notion-pink"><b>L = 0，H = 1</b></span>）</summary><div><details class="notion-toggle notion-block-3b59995fc21f8095b1e8f1048fa34440"><summary>0xae（<b>关显示</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80c4b350cee5f624b0fe"><li><b>含义</b>: 这是关闭 OLED 面板显示的命令。当 D=0 时，显示关闭。</li></ul><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80a49749d624b77811c8"><li><b>设置原因</b>: 在进行一系列初始化配置时，通常先关闭显示，以避免在配置过程中屏幕出现闪烁或显示异常内容。配置完成后再统一开启。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f801e916cc2069fa7fbdc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A703ebc64-7276-4f39-9dc5-187a26021b52%3Aimage.png?table=block&amp;id=3b59995f-c21f-801e-916c-c2069fa7fbdc&amp;t=3b59995f-c21f-801e-916c-c2069fa7fbdc" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b59995fc21f808bbee2ef724cf89603"><summary>0x8d,0x10（关显示时：关闭电荷泵（断电））</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f8061a7a2eacb74ff8697"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6096cb94-e250-41a9-bf0d-0e3d98377041%3Aimage.png?table=block&amp;id=3b59995f-c21f-8061-a7a2-eacb74ff8697&amp;t=3b59995f-c21f-8061-a7a2-eacb74ff8697" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f8075867bdba7fc7fa6a9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad5e50041-860d-4060-842e-497ca7583242%3Aimage.png?table=block&amp;id=3b59995f-c21f-8075-867b-dba7fc7fa6a9&amp;t=3b59995f-c21f-8075-867b-dba7fc7fa6a9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f80c6b312c1876abe87b9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A22a23614-22af-472d-93dd-dd169083845f%3Aimage.png?table=block&amp;id=3b59995f-c21f-80c6-b312-c1876abe87b9&amp;t=3b59995f-c21f-80c6-b312-c1876abe87b9" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b59995fc21f80af9ad6faf4bb7c6a53"><summary>0xaf（<b>开显示</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80ceb70fc4b6bc72cb4f"><li><b>含义</b>: 这是开启 OLED 面板显示的命令。当 D=1 时，显示开启。</li></ul><ul class="notion-list notion-list-disc notion-block-3b59995fc21f807eae88f675978483e6"><li><b>设置原因</b>: 在所有初始化配置完成后，发送此命令正式点亮屏幕，开始显示内容。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f8010aaebcb1bcd1b29cc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A215c34fb-1a40-4ad7-aca5-476edc90537d%3Aimage.png?table=block&amp;id=3b59995f-c21f-8010-aaeb-cb1bcd1b29cc&amp;t=3b59995f-c21f-8010-aaeb-cb1bcd1b29cc" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-3b59995fc21f8019959cd50684e1543a"><summary>I2C_SAND_BUFFER(OLED0561_ADD,COM,buf,3)</summary><div><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80f082bcc388b116866a"><li>含义：将数组的3个数据发送给0x78的器件地址</li></ul><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80ebba8ce408cf59094c"><li>该函数本身含义：I2C发送数据串（器件地址，寄存器内部地址，数据串，数量），具体可参考上文中“10.2 I2C_SAND_BUFFER(u8 SlaveAddr,u8 WriteAddr,u8* pBuffer,u16 NumByteToWrite)”这一部分</li></ul></div></details></div></details><details class="notion-toggle notion-block-3b49995fc21f806f8031eb49b0398735"><summary><code class="notion-inline-code">OLED_DISPLAY_CLEAR()</code></summary><div><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80baa56cdda06c5492f1"><li>含义：清屏操作</li></ul><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80dabd26c70fb9fede0a"><li>该函数，出自oled0561.c文件</li></ul><details class="notion-toggle notion-block-3b59995fc21f80e0937ceb17d12383b4"><summary>0xB0（<b>设置页地址</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80d6a2d2edf423057e02"><li><b>含义</b>: 将页地址设置为 0 (命令范围是 <code class="notion-inline-code">0xB0</code> 到 <code class="notion-inline-code">0xB7</code>，对应页 0-7)。</li></ul><ul class="notion-list notion-list-disc notion-block-3b59995fc21f808a9629e655b1ea05f8"><li><b>设置原因</b>: SH1106 将 64 行分为 8 个页（Page），每页 8 行。此命令将操作的起始页设置为第 0 页（最顶部的 8 行）。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f807aa016c009d25f3ac5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad1c4a317-d1b8-4dfe-9df2-d006761e2c15%3Aimage.png?table=block&amp;id=3b59995f-c21f-807a-a016-c009d25f3ac5&amp;t=3b59995f-c21f-807a-a016-c009d25f3ac5" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b59995fc21f806e9f2af6b1170908c6"><summary>0x00,0x10（<b>设置列地址的低/高四位</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80d48292f82b4b60df0b"><li><b>含义</b>: 这两个命令共同设置显示 RAM 的起始列地址。<code class="notion-inline-code">0x00</code> 设置低 4 位为 0，<code class="notion-inline-code">0x10</code> 设置高 4 位为 0。组合起来，起始列地址为 <code class="notion-inline-code">0x00</code>。</li></ul><ul class="notion-list notion-list-disc notion-block-3b59995fc21f809e9066d5251bbc94ce"><li><b>设置原因</b>: 将显示的起始位置设置为最左边的第 0 列，这是最常用的显示模式。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f80c08575f8ade40c8777"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac08c0753-f1bd-4d69-bb25-3812e4bbf8ed%3Aimage.png?table=block&amp;id=3b59995f-c21f-80c0-8575-f8ade40c8777&amp;t=3b59995f-c21f-80c0-8575-f8ade40c8777" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3b59995fc21f8038954df01c3aa4936d"><li>A7/6/5/4是代表高四位，A3/2/1/0是代表低四位</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f806c894beeba1e96e9b9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5219b0eb-f7af-460e-b1d5-75c625e3c4f6%3Aimage.png?table=block&amp;id=3b59995f-c21f-806c-894b-eeba1e96e9b9&amp;t=3b59995f-c21f-806c-894b-eeba1e96e9b9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f8052af73d98db6d06f78"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acfcd5e3a-6d1d-405d-9ca1-d5e769262551%3Aimage.png?table=block&amp;id=3b59995f-c21f-8052-af73-d98db6d06f78&amp;t=3b59995f-c21f-8052-af73-d98db6d06f78" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f80a68446e9bd5823cf70"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2b88932d-959e-4ca0-969b-a4754054a843%3Aimage.png?table=block&amp;id=3b59995f-c21f-80a6-8446-e9bd5823cf70&amp;t=3b59995f-c21f-80a6-8446-e9bd5823cf70" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-3b49995fc21f80d2a9cddbfb4daf0fad"><summary><code class="notion-inline-code">OLED_DISPLAY_ON()</code></summary><div><ul class="notion-list notion-list-disc notion-block-3b59995fc21f8015a47cca80767458d4"><li>含义：OLED屏初始值设置并开显示</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80fb9a30ef78112bb8ad"><li>该函数，出自oled0561.c文件</li></ul><details class="notion-toggle notion-block-3b49995fc21f801eb428fc1889cc0c9f"><summary>buf数组的解释（<span class="notion-pink"><b>L = 0，H = 1</b></span>）- - - <span class="notion-pink"><b>【命令也可以改，也可以不改，在实际开发中，他们都是通用的！一般的方法就是直接问豆包他，让他给我生成一个初始化程序】</b></span></summary><div><details class="notion-toggle notion-block-3b49995fc21f80e9b52df6b6e845e5c4"><summary>0xae（<b>关显示</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f8040a11be9fcdedb79b8"><li><b>含义</b>: 这是关闭 OLED 面板显示的命令。当 D=0 时，显示关闭。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80518d31dc4af3ea5f3a"><li><b>设置原因</b>: 在进行一系列初始化配置时，通常先关闭显示，以避免在配置过程中屏幕出现闪烁或显示异常内容。配置完成后再统一开启。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80f2803bc1fa513716d9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A703ebc64-7276-4f39-9dc5-187a26021b52%3Aimage.png?table=block&amp;id=3b49995f-c21f-80f2-803b-c1fa513716d9&amp;t=3b49995f-c21f-80f2-803b-c1fa513716d9" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f80b6ba95cb31bbcf2eb3"><summary>0x00,0x10（<b>设置列地址的低/高四位</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f8079b49eff6350f3065a"><li><b>含义</b>: 这两个命令共同设置显示 RAM 的起始列地址。<code class="notion-inline-code">0x00</code> 设置低 4 位为 0，<code class="notion-inline-code">0x10</code> 设置高 4 位为 0。组合起来，起始列地址为 <code class="notion-inline-code">0x00</code>。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f8059a02dd75672087a6d"><li><b>设置原因</b>: 将显示的起始位置设置为最左边的第 0 列，这是最常用的显示模式。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f803299d9ff77ba9ad2be"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac08c0753-f1bd-4d69-bb25-3812e4bbf8ed%3Aimage.png?table=block&amp;id=3b49995f-c21f-8032-99d9-ff77ba9ad2be&amp;t=3b49995f-c21f-8032-99d9-ff77ba9ad2be" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3b49995fc21f800195f1d9728ccfe291"><li>A7/6/5/4是代表高四位，A3/2/1/0是代表低四位</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f803aacf7df22a105d558"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5219b0eb-f7af-460e-b1d5-75c625e3c4f6%3Aimage.png?table=block&amp;id=3b49995f-c21f-803a-acf7-df22a105d558&amp;t=3b49995f-c21f-803a-acf7-df22a105d558" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f8067bb3bcd46155d7c51"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acfcd5e3a-6d1d-405d-9ca1-d5e769262551%3Aimage.png?table=block&amp;id=3b49995f-c21f-8067-bb3b-cd46155d7c51&amp;t=3b49995f-c21f-8067-bb3b-cd46155d7c51" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f8046a47cd29fc85cf8c1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2b88932d-959e-4ca0-969b-a4754054a843%3Aimage.png?table=block&amp;id=3b49995f-c21f-8046-a47c-d29fc85cf8c1&amp;t=3b49995f-c21f-8046-a47c-d29fc85cf8c1" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f80a08c10eb34e9a9dc54"><summary>0xd5,0x80（<b>设置显示时钟分频/振荡器频率</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80d58f15ebf67702111f"><li><b>含义</b>: 这是一个双字节命令。<code class="notion-inline-code">0xd5</code> 是命令本身，<code class="notion-inline-code">0x80</code> 是参数。</li><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80d58f15ebf67702111f"><li>参数 <code class="notion-inline-code">0x80</code> (二进制 <code class="notion-inline-code">1000 0000</code>) 的高 4 位 <code class="notion-inline-code">1000</code> 设置振荡器频率为 <b>POR (Power-On Reset) 默认值</b>。</li><li>低 4 位 <code class="notion-inline-code">0000</code> 设置分频比为 <b>1</b> (分频比 = A[3:0] + 1)。</li></ul></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80faaf37df3265663e82"><li><b>设置原因</b>: 配置屏幕的刷新时钟。使用默认频率和 1 分频是一个标准且稳定的设置，能确保屏幕正常刷新。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f804aa22ec5e67d6939fe"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa109b110-9705-4e21-8003-644d9fcb2bac%3Aimage.png?table=block&amp;id=3b49995f-c21f-804a-a22e-c5e67d6939fe&amp;t=3b49995f-c21f-804a-a22e-c5e67d6939fe" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f801c8165d897f07f578a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aae88e803-3036-4b10-bc43-e8e115eb8b85%3Aimage.png?table=block&amp;id=3b49995f-c21f-801c-8165-d897f07f578a&amp;t=3b49995f-c21f-801c-8165-d897f07f578a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80a1ae3bf7cc0ccd9164"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4df67b9b-3ff8-4748-8b3d-f81e3bb3bc89%3Aimage.png?table=block&amp;id=3b49995f-c21f-80a1-ae3b-f7cc0ccd9164&amp;t=3b49995f-c21f-80a1-ae3b-f7cc0ccd9164" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f800fb720d345b2d26215"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8b74ea7b-e549-4e35-a756-a4c378a0124b%3Aimage.png?table=block&amp;id=3b49995f-c21f-800f-b720-d345b2d26215&amp;t=3b49995f-c21f-800f-b720-d345b2d26215" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f8067b80af57b7e58efbe"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6ffb8853-80c3-4c83-a5eb-0a62a944a902%3Aimage.png?table=block&amp;id=3b49995f-c21f-8067-b80a-f57b7e58efbe&amp;t=3b49995f-c21f-8067-b80a-f57b7e58efbe" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f80fe82d9fb9c2df411f0"><summary>0xa8,0x3f（<b>设置复用率</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80c78683d60747c03911"><li><b>含义</b>: <code class="notion-inline-code">0xa8</code> 是命令，<code class="notion-inline-code">0x3f</code> (十进制 63) 是参数。这表示设置复用率为 <b>1/64</b>。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f8090a1d2d015e97b1826"><li><b>设置原因</b>: 你的 OLED 屏幕是 128x64 分辨率，共有 64 个 COM 行。此命令告诉驱动芯片需要驱动 64 行，以匹配屏幕的物理特性。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f800b8fb0fbc68bb525ed"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1ca39d0d-ae51-4117-a9b6-d8d5dead61a2%3Aimage.png?table=block&amp;id=3b49995f-c21f-800b-8fb0-fbc68bb525ed&amp;t=3b49995f-c21f-800b-8fb0-fbc68bb525ed" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80649885c9679ed7d93c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A749f7108-0083-472f-9c8e-6135e19c20af%3Aimage.png?table=block&amp;id=3b49995f-c21f-8064-9885-c9679ed7d93c&amp;t=3b49995f-c21f-8064-9885-c9679ed7d93c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80e38c93fe1024237e40"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6beac292-ce3c-404e-a699-1ecfffaa558e%3Aimage.png?table=block&amp;id=3b49995f-c21f-80e3-8c93-fe1024237e40&amp;t=3b49995f-c21f-80e3-8c93-fe1024237e40" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80768fefc3777dcf5be3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3bcd85ce-0fec-43f5-8cf9-51e2e81d0aee%3Aimage.png?table=block&amp;id=3b49995f-c21f-8076-8fef-c3777dcf5be3&amp;t=3b49995f-c21f-8076-8fef-c3777dcf5be3" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f806ead36c46fcf9a769b"><summary>0xd3,0x00（<b>设置显示偏移</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80108ab0c736f592f241"><li><b>含义</b>: <code class="notion-inline-code">0xd3</code> 是命令，<code class="notion-inline-code">0x00</code> 是参数。这表示显示起始行映射到 COM0，即 <b>无垂直偏移</b>。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f8031b0e0ec8d40486973"><li><b>设置原因</b>: 确保屏幕显示的内容从最顶部的物理行开始，没有向上或向下移动。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f806fbd39e04f73d9335e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4da83dc9-1a40-4377-90d2-35940d8bf96a%3Aimage.png?table=block&amp;id=3b49995f-c21f-806f-bd39-e04f73d9335e&amp;t=3b49995f-c21f-806f-bd39-e04f73d9335e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f8013979bedb1684da9ac"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af49d4c76-646a-49e6-ab99-51bd836e1428%3Aimage.png?table=block&amp;id=3b49995f-c21f-8013-979b-edb1684da9ac&amp;t=3b49995f-c21f-8013-979b-edb1684da9ac" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f803383fef079085f1e5e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A49de6b82-5876-4d38-ba60-d01b208cace5%3Aimage.png?table=block&amp;id=3b49995f-c21f-8033-83fe-f079085f1e5e&amp;t=3b49995f-c21f-8033-83fe-f079085f1e5e" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80de98c0d8d63c7d9ab5"><li><span class="notion-pink"><b>这里有存疑：偏移值不知道是指谁移到哪里去？</b></span></li></ul></div></details><details class="notion-toggle notion-block-3b49995fc21f80aa9006c8c5e322ff18"><summary>0xB0（<b>设置页地址</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f802580a3de13905b121c"><li><b>含义</b>: 将页地址设置为 0 (命令范围是 <code class="notion-inline-code">0xB0</code> 到 <code class="notion-inline-code">0xB7</code>，对应页 0-7)。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80bc819dc3739b6b3034"><li><b>设置原因</b>: SH1106 将 64 行分为 8 个页（Page），每页 8 行。此命令将操作的起始页设置为第 0 页（最顶部的 8 行）。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f8001aa97f92919a4078c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad1c4a317-d1b8-4dfe-9df2-d006761e2c15%3Aimage.png?table=block&amp;id=3b49995f-c21f-8001-aa97-f92919a4078c&amp;t=3b49995f-c21f-8001-aa97-f92919a4078c" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f8066ab8fe3b9b98c22d1"><summary>0x40（<b>设置显示起始行</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80c2b50ef6c6e3bc39b0"><li><b>含义</b>: 设置显示 RAM 的哪一行作为屏幕的起始显示行。<code class="notion-inline-code">0x40</code> (二进制 <code class="notion-inline-code">0100 0000</code>) 的低 6 位为 0，表示从 RAM 的第 0 行开始显示。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80059622e441392d51ba"><li><b>设置原因</b>: 与 <code class="notion-inline-code">0xd3</code> 命令类似，确保显示内容从 RAM 的顶部开始，通常与物理屏幕顶部对齐。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f802096d2eadbe6b37899"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abe5c14c8-5925-480a-9b15-d8c9e0079415%3Aimage.png?table=block&amp;id=3b49995f-c21f-8020-96d2-eadbe6b37899&amp;t=3b49995f-c21f-8020-96d2-eadbe6b37899" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f807784cae7ed71baffc2"><summary>0x8d,0x14（<b>设置电荷泵</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f800c8c07fd0d2735ad20"><li><b>含义</b>: 这是一个非常常见的命令，通常用于兼容 SSD1306 等其他驱动芯片。<code class="notion-inline-code">0x8d</code> 是设置电荷泵的命令，<code class="notion-inline-code">0x14</code> 是开启内部电荷泵的参数。电荷泵的作用是为 OLED 像素提供所需的高驱动电压。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f805b889dec9a3ceb15b4"><li><b>设置原因</b>: 尽管 SH1106 手册使用 <code class="notion-inline-code">0xAD, 0x8B</code> 来开启内部 DC-DC，但许多模块为了兼容性，也支持 <code class="notion-inline-code">0x8D, 0x14</code> 这种写法。其目的都是为了<b>开启内部电压倍增电路</b>，为屏幕发光提供能量。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f800bb4c4ed610fe83408"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A19c5b917-8faa-4a0b-ad8d-acb8a70cdc90%3Aimage.png?table=block&amp;id=3b49995f-c21f-800b-b4c4-ed610fe83408&amp;t=3b49995f-c21f-800b-b4c4-ed610fe83408" alt="notion image" loading="lazy" decoding="async"/></div></figure><details class="notion-toggle notion-block-3b49995fc21f801584b5ca86025a364f"><summary>解释1</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f8041b0d0e53e550cdef7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abe342b9d-d549-4dee-a224-701deb410f61%3Aimage.png?table=block&amp;id=3b49995f-c21f-8041-b0d0-e53e550cdef7&amp;t=3b49995f-c21f-8041-b0d0-e53e550cdef7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f801e962dcb47cfb9b182"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa27d0961-d8ba-4533-97f0-4769d7f1c6f2%3Aimage.png?table=block&amp;id=3b49995f-c21f-801e-962d-cb47cfb9b182&amp;t=3b49995f-c21f-801e-962d-cb47cfb9b182" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80a1ace8e7dfe05b8894"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa60390b2-67d9-4181-bd34-e5575da54056%3Aimage.png?table=block&amp;id=3b49995f-c21f-80a1-ace8-e7dfe05b8894&amp;t=3b49995f-c21f-80a1-ace8-e7dfe05b8894" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f8002a3d8e52fc51f5fb0"><summary>解释2</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80c7b28fd4eb76114546"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3e0bdba3-4789-4000-b27e-d0ade0345614%3Aimage.png?table=block&amp;id=3b49995f-c21f-80c7-b28f-d4eb76114546&amp;t=3b49995f-c21f-80c7-b28f-d4eb76114546" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80518401fa9fb8fa2515"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad6d16fec-02a8-4652-8fba-bfd4a031d6b5%3Aimage.png?table=block&amp;id=3b49995f-c21f-8051-8401-fa9fb8fa2515&amp;t=3b49995f-c21f-8051-8401-fa9fb8fa2515" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f8027ab5afd758bf7fe70"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A23b1fcfd-b7ec-45ae-9577-7c1855ed3fd5%3Aimage.png?table=block&amp;id=3b59995f-c21f-8027-ab5a-fd758bf7fe70&amp;t=3b59995f-c21f-8027-ab5a-fd758bf7fe70" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-3b49995fc21f8083a295c8d1b5d472d6"><summary>0xa1（<b>设置段重映射</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80c39483cd264bccf4d9"><li><b>含义</b>: 设置段（列）驱动的输出方向。<code class="notion-inline-code">0xa1</code> 表示<b>左右反向映射</b>（列地址 127 映射到 SEG0）。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80cc885ec37f3644ff07"><li><b>设置原因</b>: 这通常与屏幕的物理安装方向有关。如果屏幕是倒置安装的，使用此命令可以将显示内容水平翻转过来，使其看起来是正的。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f800184b7fd5dc3dc783f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A59a59a3a-6c05-4675-ad3a-149ca21c8986%3Aimage.png?table=block&amp;id=3b49995f-c21f-8001-84b7-fd5dc3dc783f&amp;t=3b49995f-c21f-8001-84b7-fd5dc3dc783f" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f800b95d2d92cd6f37872"><summary>0xc8（<b>设置 COM 输出扫描方向 </b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f8021a788e1e4c96d399d"><li><b>含义</b>: 设置 COM（行）的扫描方向。<code class="notion-inline-code">0xc8</code> 表示<b>从 COM[N-1] 扫描到 COM0</b>（即从下到上扫描）。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80b9b926cf9b17354840"><li><b>设置原因</b>: 与 <code class="notion-inline-code">0xa1</code> 类似，这用于垂直翻转显示内容。通常与 <code class="notion-inline-code">0xa1</code> 配合使用，将整个画面旋转 180 度，以匹配屏幕的物理安装方向。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f8033ba27ebe85428348e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad79659b9-3569-4148-bc23-a0ae24db6553%3Aimage.png?table=block&amp;id=3b49995f-c21f-8033-ba27-ebe85428348e&amp;t=3b49995f-c21f-8033-ba27-ebe85428348e" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f80c2ba03ff89ed25a3cc"><summary>0xda,0x12（<b>设置 COM 引脚硬件配置</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f808d9b6cd83d951705fe"><li><b>含义</b>: <code class="notion-inline-code">0xda</code> 是命令，<code class="notion-inline-code">0x12</code> (二进制 <code class="notion-inline-code">0001 0010</code>) 是参数。</li><ul class="notion-list notion-list-disc notion-block-3b49995fc21f808d9b6cd83d951705fe"><li>高 4 位 <code class="notion-inline-code">0001</code> 表示启用<b>交替 COM 引脚配置</b> (Alternative)。</li><li>低 4 位 <code class="notion-inline-code">0010</code> 。</li></ul></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f809b82e9d636ca9b72d3"><li><b>设置原因</b>: 这是为了匹配 OLED 面板的物理引脚布局。<code class="notion-inline-code">0x12</code> 是 128x64 分辨率屏幕的一个标准配置。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f8039bbc1d4ad248e34ab"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3d89ca6f-c897-43e3-b89b-794818acb632%3Aimage.png?table=block&amp;id=3b49995f-c21f-8039-bbc1-d4ad248e34ab&amp;t=3b49995f-c21f-8039-bbc1-d4ad248e34ab" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80ef9d2af02451679ae5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8afe7992-2398-4c2b-9aaf-787ca476bb9a%3Aimage.png?table=block&amp;id=3b49995f-c21f-80ef-9d2a-f02451679ae5&amp;t=3b49995f-c21f-80ef-9d2a-f02451679ae5" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f800cacfbdb07356ab91f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A80eddbba-a081-4309-bf12-def15e1f32d2%3Aimage.png?table=block&amp;id=3b49995f-c21f-800c-acfb-db07356ab91f&amp;t=3b49995f-c21f-800c-acfb-db07356ab91f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80acb730decb6cdf299f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aad07206c-e8d5-4420-8bfa-a4bd7235502c%3Aimage.png?table=block&amp;id=3b49995f-c21f-80ac-b730-decb6cdf299f&amp;t=3b49995f-c21f-80ac-b730-decb6cdf299f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80dba35bc5ecdb750ed7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adc1ba9c4-5173-4b3c-bc2f-33132bdb0889%3Aimage.png?table=block&amp;id=3b49995f-c21f-80db-a35b-c5ecdb750ed7&amp;t=3b49995f-c21f-80db-a35b-c5ecdb750ed7" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80b88007f7f96566376b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aaaa990a6-db79-456f-9305-659c606c6158%3Aimage.png?table=block&amp;id=3b49995f-c21f-80b8-8007-f7f96566376b&amp;t=3b49995f-c21f-80b8-8007-f7f96566376b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f805c93a9e1b486ad32d1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5a8b443f-4a30-43c8-abe4-2f214b6cd3fc%3Aimage.png?table=block&amp;id=3b49995f-c21f-805c-93a9-e1b486ad32d1&amp;t=3b49995f-c21f-805c-93a9-e1b486ad32d1" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f800aab40ec4130327c88"><summary>0x81,0xff（<b>设置对比度控制</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80f5a65df55d25edbe0f"><li><b>含义</b>: <code class="notion-inline-code">0x81</code> 是对比度设置命令，<code class="notion-inline-code">0xff</code> (十进制 255) 是对比度值。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f806dbd10eaa96ba70b1c"><li><b>设置原因</b>: 设置屏幕的亮度/对比度。<code class="notion-inline-code">0xff</code> 是最大值，表示将屏幕设置为<b>最高亮度</b>。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80dfb2afc532d0a5e963"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4ff13dda-6350-4437-a829-e540bd282534%3Aimage.png?table=block&amp;id=3b49995f-c21f-80df-b2af-c532d0a5e963&amp;t=3b49995f-c21f-80df-b2af-c532d0a5e963" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80b09c45d8acf4137b8c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A88683ed1-4bcb-42ef-94e6-8a263588b748%3Aimage.png?table=block&amp;id=3b49995f-c21f-80b0-9c45-d8acf4137b8c&amp;t=3b49995f-c21f-80b0-9c45-d8acf4137b8c" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f8020bcb3dc065da8f83c"><summary>0xd9,0xf1（<b>设置预充电周期</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f8066b317d0a4e2000ab2"><li><b>含义</b>: <code class="notion-inline-code">0xd9</code> 是命令，<code class="notion-inline-code">0xf1</code> (二进制 <code class="notion-inline-code">1111 0001</code>) 是参数。</li><ul class="notion-list notion-list-disc notion-block-3b49995fc21f8066b317d0a4e2000ab2"><li>高 4 位 <code class="notion-inline-code">1111</code> 设置<b>预充电周期</b>为 15 个 DCLK。</li><li>低 4 位 <code class="notion-inline-code">0001</code> 设置<b>去放电周期</b>为 1 个 DCLK。</li></ul></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f8066929ee267f4a8c76b"><li><b>设置原因</b>: 调整像素点亮的时序，可以影响屏幕的亮度和显示效果，是一个高级优化参数。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80aabd34ed986ad42773"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acf65894d-704c-4dc1-8bee-807b1ec43a92%3Aimage.png?table=block&amp;id=3b49995f-c21f-80aa-bd34-ed986ad42773&amp;t=3b49995f-c21f-80aa-bd34-ed986ad42773" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f8087b4a4eda6ac1f5b79"><summary>0xdb,0x30（<b>设置 VCOM 取消选择电平</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80b9ad59ff2b22024d4e"><li><b>含义</b>: <code class="notion-inline-code">0xdb</code> 是命令，<code class="notion-inline-code">0x30</code> (二进制 <code class="notion-inline-code">0011 0000</code>) 是参数。高 4 位 <code class="notion-inline-code">0011</code> 用于设置 VCOMH 电压。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f806abee6c10ce7c2ff46"><li><b>设置原因</b>: VCOMH 是公共电极的电压，调整它可以影响屏幕的整体亮度和功耗。<code class="notion-inline-code">0x30</code> 是一个常见的设置值。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f806497f7dec82a6476e8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A40555e6a-31d1-4483-ae93-b0c616dedb9f%3Aimage.png?table=block&amp;id=3b49995f-c21f-8064-97f7-dec82a6476e8&amp;t=3b49995f-c21f-8064-97f7-dec82a6476e8" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f80278822e188020b9070"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1c8b84b4-15ea-4813-bbcc-5a8b3daa98a7%3Aimage.png?table=block&amp;id=3b49995f-c21f-8027-8822-e188020b9070&amp;t=3b49995f-c21f-8027-8822-e188020b9070" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f8029b309e6e1c256f53f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A94467439-a78c-47a6-a7eb-074854fc6917%3Aimage.png?table=block&amp;id=3b49995f-c21f-8029-b309-e6e1c256f53f&amp;t=3b49995f-c21f-8029-b309-e6e1c256f53f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f8099a03ff9f6fddd249d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9cab62b6-d65a-4892-9651-39bd18c20c22%3Aimage.png?table=block&amp;id=3b49995f-c21f-8099-a03f-f9f6fddd249d&amp;t=3b49995f-c21f-8099-a03f-f9f6fddd249d" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f800b8558c81ea86c2a8b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A15173471-a759-4c65-9293-712f6195ddbe%3Aimage.png?table=block&amp;id=3b49995f-c21f-800b-8558-c81ea86c2a8b&amp;t=3b49995f-c21f-800b-8558-c81ea86c2a8b" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f80f5beabd30c6cc59f3a"><summary>0x20,0x00（<b>设置内存寻址模式</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f8097aa29e2245295fb77"><li><b>含义</b>: 这同样是来自 SSD1306 等兼容芯片的命令。<code class="notion-inline-code">0x20</code> 是设置寻址模式的命令，<code class="notion-inline-code">0x00</code> 表示设置为<b>水平寻址模式</b> (Horizontal Addressing Mode)。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f804a8c06ca81f8162a6f"><li><b>设置原因</b>: 在水平寻址模式下，写完一个字节的数据后，列地址指针会自动加 1，写满一页后会自动跳到下一页的起始列。这极大地简化了连续写入一屏数据的编程工作。</li></ul></div></details><details class="notion-toggle notion-block-3b49995fc21f80dd9d90d54197d34954"><summary>0xa4（<b>设置全局显示开/关</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80809900dab654562293"><li><b>含义</b>: <code class="notion-inline-code">0xa4</code> 表示<b>恢复正常显示</b>，即显示内容由显示 RAM 中的数据决定。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f8025b66ec5c079fb619a"><li><b>设置原因</b>: 确保屏幕显示的是我们写入 RAM 的数据，而不是强制全亮或全灭。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f8008a61efb8b32399c37"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae0074b72-caf0-4d05-9fb8-10cfb0e0d192%3Aimage.png?table=block&amp;id=3b49995f-c21f-8008-a61e-fb8b32399c37&amp;t=3b49995f-c21f-8008-a61e-fb8b32399c37" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f8073923ed62d82c080d9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A164f0f6b-41d5-4927-bea5-a3695a2df095%3Aimage.png?table=block&amp;id=3b49995f-c21f-8073-923e-d62d82c080d9&amp;t=3b49995f-c21f-8073-923e-d62d82c080d9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f800ab965ecf87c6e4d2b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adbce8040-1742-4f7a-a89f-75b522bc722d%3Aimage.png?table=block&amp;id=3b49995f-c21f-800a-b965-ecf87c6e4d2b&amp;t=3b49995f-c21f-800a-b965-ecf87c6e4d2b" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f80189367c7017a558e99"><summary>0xa6（<b>设置正常/反色显示</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80319b67fe60ec0491ca"><li><b>含义</b>: <code class="notion-inline-code">0xa6</code> 表示<b>正常显示</b>。RAM 中为 1 的像素点亮，为 0 的像素点灭。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80c8b1eeea0fe389586a"><li><b>设置原因</b>: 设置屏幕为正常的显示逻辑。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f800a96f0e0656c160771"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A611495aa-63e5-4687-8ef7-f7a725df9f7d%3Aimage.png?table=block&amp;id=3b49995f-c21f-800a-96f0-e0656c160771&amp;t=3b49995f-c21f-800a-96f0-e0656c160771" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b49995fc21f8000a6cedbb2a864473d"><summary>0xaf（<b>开显示</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b49995fc21f806d8b9ac3d9b8d09854"><li><b>含义</b>: 这是开启 OLED 面板显示的命令。当 D=1 时，显示开启。</li></ul><ul class="notion-list notion-list-disc notion-block-3b49995fc21f80329738ccfc59b9bf87"><li><b>设置原因</b>: 在所有初始化配置完成后，发送此命令正式点亮屏幕，开始显示内容。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b49995fc21f801d8408dacf888c89dc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A215c34fb-1a40-4ad7-aca5-476edc90537d%3Aimage.png?table=block&amp;id=3b49995f-c21f-801d-8408-dacf888c89dc&amp;t=3b49995f-c21f-801d-8408-dacf888c89dc" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details><details class="notion-toggle notion-block-3b59995fc21f8083aef4c1c3d4dcce67"><summary>I2C_SAND_BUFFER(OLED0561_ADD,COM,buf,28)</summary><div><ul class="notion-list notion-list-disc notion-block-3b59995fc21f8009afe7e7001c15f17e"><li>含义：将数组的28个数据发送给0x78的器件地址</li></ul><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80c38fd0df57be3ac890"><li>该函数本身含义：I2C发送数据串（器件地址，寄存器内部地址，数据串，数量），具体可参考上文中“10.2 I2C_SAND_BUFFER(u8 SlaveAddr,u8 WriteAddr,u8* pBuffer,u16 NumByteToWrite)”这一部分</li></ul><details class="notion-toggle notion-block-3b59995fc21f806fb69afc86f056518e"><summary><span class="notion-pink"><b>那么为什么COM设为0x00，明明buf数组中有命令，也有数据呀？</b></span></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f80709a5df60f483cefaf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0add5951-a0d3-41a1-b241-94c3cddd9929%3Aimage.png?table=block&amp;id=3b59995f-c21f-8070-9a5d-f60f483cefaf&amp;t=3b59995f-c21f-8070-9a5d-f60f483cefaf" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f8052bf85c9086440d96e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1610b40e-5317-46d6-bee8-74628ad87fdf%3Aimage.png?table=block&amp;id=3b59995f-c21f-8052-bf85-c9086440d96e&amp;t=3b59995f-c21f-8052-bf85-c9086440d96e" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details></div></details></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3b59995fc21f80db8cead03ac0ab9073" data-id="3b59995fc21f80db8cead03ac0ab9073"><span><div id="3b59995fc21f80db8cead03ac0ab9073" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3b59995fc21f80db8cead03ac0ab9073" title="11.3 OLED_DISPLAY_LIT (u8 x)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">11.3 OLED_DISPLAY_LIT (u8 x)</span></span></h3><ul class="notion-list notion-list-disc notion-block-3b59995fc21f807ba350c2ff3150ab49"><li>含义：OLED屏亮度设置（0~255）</li></ul><ul class="notion-list notion-list-disc notion-block-3b59995fc21f805d9619e6c75af87dc0"><li>该函数，出自oled0561.c文件</li></ul><details class="notion-toggle notion-block-3b59995fc21f80738037f83d614ce84a"><summary>0x81,0xff（<b>设置对比度控制</b>）</summary><div><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80ebb8caf2abf296003f"><li><b>含义</b>: <code class="notion-inline-code">0x81</code> 是对比度设置命令，<code class="notion-inline-code">0xff</code> (十进制 255) 是对比度值。</li></ul><ul class="notion-list notion-list-disc notion-block-3b59995fc21f805198c3c924df3bb928"><li><b>设置原因</b>: 设置屏幕的亮度/对比度。<code class="notion-inline-code">0xff</code> 是最大值，表示将屏幕设置为<b>最高亮度</b>。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f804bb807e9ff3a622a39"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4ff13dda-6350-4437-a829-e540bd282534%3Aimage.png?table=block&amp;id=3b59995f-c21f-804b-b807-e9ff3a622a39&amp;t=3b59995f-c21f-804b-b807-e9ff3a622a39" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f8067ac89d1ae6a7dd63f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A88683ed1-4bcb-42ef-94e6-8a263588b748%3Aimage.png?table=block&amp;id=3b59995f-c21f-8067-ac89-d1ae6a7dd63f&amp;t=3b59995f-c21f-8067-ac89-d1ae6a7dd63f" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3b59995fc21f803fa542cf5b86b5f838" data-id="3b59995fc21f803fa542cf5b86b5f838"><span><div id="3b59995fc21f803fa542cf5b86b5f838" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3b59995fc21f803fa542cf5b86b5f838" title="11.4 OLED_DISPLAY_8x16(u8 x, u8 y, u16 w)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">11.4 OLED_DISPLAY_8x16(u8 x, u8 y, u16 w)</span></span></h3><ul class="notion-list notion-list-disc notion-block-3b59995fc21f805f8c85ea1a7784ac39"><li>含义：显示英文与数字8*16的ASCII码，取模大小为16*16，取模方式为“从左到右从上到下”“纵向8点下高位”</li></ul><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80a1b6e7ec9d55d84da0"><li>该函数，出自oled0561.c文件</li></ul><details class="notion-toggle notion-block-3b59995fc21f80c7aef5f0d79080645b"><summary>y = y + 2（探究为什么要加上2）</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f80f0b89ce812e6ba9657"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa94371ee-ac35-42f7-941c-0e2825c9e0ca%3Aimage.png?table=block&amp;id=3b59995f-c21f-80f0-b89c-e812e6ba9657&amp;t=3b59995f-c21f-80f0-b89c-e812e6ba9657" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><details class="notion-toggle notion-block-3b59995fc21f80a7abefe44125df6500"><summary><code class="notion-inline-code">I2C_SAND_BYTE(OLED0561_ADD, COM, (y / 16) + 0x10)</code>以及<code class="notion-inline-code">I2C_SAND_BYTE(OLED0561_ADD, COM, y % 16)</code> （探究为什么要除以或者取余16，16从哪来的）</summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f8064b09ecec9c64d5fcf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5f763588-f4ee-43a9-8e8e-aee1e2c70d60%3Aimage.png?table=block&amp;id=3b59995f-c21f-8064-b09e-cec9c64d5fcf&amp;t=3b59995f-c21f-8064-b09e-cec9c64d5fcf" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f8050a511f2350ff9b698"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae5bb9876-71a0-4601-80b8-cc5336348135%3Aimage.png?table=block&amp;id=3b59995f-c21f-8050-a511-f2350ff9b698&amp;t=3b59995f-c21f-8050-a511-f2350ff9b698" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><table class="notion-simple-table notion-block-3b59995fc21f800bae5fc2fd76ca6651"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-3b59995fc21f801691dae1c73cb9e2fc"><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">步骤</div></td><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">核心操作</div></td><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">目的</div></td></tr><tr class="notion-simple-table-row notion-block-3b59995fc21f80739b58cebd21e74cb4"><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">坐标偏移</div></td><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell"><code class="notion-inline-code">y = y + 2</code></div></td><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">修正硬件物理显示起点偏移。</div></td></tr><tr class="notion-simple-table-row notion-block-3b59995fc21f8005b477d0a766675197"><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">双页循环</div></td><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell"><code class="notion-inline-code">for (t = 0; t &lt; 2; t++)</code></div></td><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">16像素高度的字符需要占用 2 个页（Page）来显示。</div></td></tr><tr class="notion-simple-table-row notion-block-3b59995fc21f80ee938acc7cd623e87f"><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">定位行列</div></td><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">发送 <code class="notion-inline-code">0xb0+x</code>、<code class="notion-inline-code">y/16+0x10</code>、<code class="notion-inline-code">y%16</code></div></td><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">告诉屏幕：“接下来要往第 <code class="notion-inline-code">x</code> 页、第 <code class="notion-inline-code">y</code> 列开始写数据”。</div></td></tr><tr class="notion-simple-table-row notion-block-3b59995fc21f8091a059d5dddace42b1"><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">写入数据</div></td><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">发送 <code class="notion-inline-code">DAT</code> (0x40) 标志位及 8 字节数据</div></td><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">写入具体的像素点亮数据（字模）。</div></td></tr><tr class="notion-simple-table-row notion-block-3b59995fc21f809a980aed222915f840"><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">字库寻址</div></td><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell"><code class="notion-inline-code">(w * 16) + c - 512</code></div></td><td class="" style="width:235.66666666666666px"><div class="notion-simple-table-cell">精确计算字模数据在数组中的存储位置。</div></td></tr></tbody></table><details class="notion-toggle notion-block-3b59995fc21f80cabff2ce67fb089114"><summary><code class="notion-inline-code"><b>(w * 16) + c - 512</b></code><b> 寻址公式详解</b></summary><div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f8082aa5bcbea9b33d1e1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A217eb190-23e3-40d2-b423-0ec3c4ca99b7%3Aimage.png?table=block&amp;id=3b59995f-c21f-8082-aa5b-cbea9b33d1e1&amp;t=3b59995f-c21f-8082-aa5b-cbea9b33d1e1" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f8036a7afeada0bc8ca7b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5e65f1d4-1874-425c-bd3d-bb77103ea79e%3Aimage.png?table=block&amp;id=3b59995f-c21f-8036-a7af-eada0bc8ca7b&amp;t=3b59995f-c21f-8036-a7af-eada0bc8ca7b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f80379192f1730d20ecb4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A63320a5e-026d-4bc3-8b61-77f5833d0e87%3Aimage.png?table=block&amp;id=3b59995f-c21f-8037-9192-f1730d20ecb4&amp;t=3b59995f-c21f-8037-9192-f1730d20ecb4" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f8003a739e2b3c99130c9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad6e71dc6-6182-41aa-845e-6724ff7e2ae2%3Aimage.png?table=block&amp;id=3b59995f-c21f-8003-a739-e2b3c99130c9&amp;t=3b59995f-c21f-8003-a739-e2b3c99130c9" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f803a8b53f1e693bef987"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A861183e3-0de2-47d8-a55b-33fba7e6058e%3Aimage.png?table=block&amp;id=3b59995f-c21f-803a-8b53-f1e693bef987&amp;t=3b59995f-c21f-803a-8b53-f1e693bef987" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b59995fc21f804dac8ef98daa80089c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac1c18e2d-8d01-4459-84c7-31b203f394e6%3Aimage.png?table=block&amp;id=3b59995f-c21f-804d-ac8e-f98daa80089c&amp;t=3b59995f-c21f-804d-ac8e-f98daa80089c" alt="notion image" loading="lazy" decoding="async"/></div></figure></div></details><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3b59995fc21f80098f64f777564d8b20" data-id="3b59995fc21f80098f64f777564d8b20"><span><div id="3b59995fc21f80098f64f777564d8b20" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3b59995fc21f80098f64f777564d8b20" title="11.5 OLED_DISPLAY_8x16_BUFFER(u8 row,u8 *str)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">11.5 OLED_DISPLAY_8x16_BUFFER(u8 row,u8 *str)</span></span></h3><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80009dd0c7fc7f39c640"><li>含义：在 OLED 指定行连续显示一串 ASCII 字符 (8x16 字体)</li></ul><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80d78002d0fc1979c404"><li>该函数，出自oled0561.c文件</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3b59995fc21f8035a808dacd299eef9d" data-id="3b59995fc21f8035a808dacd299eef9d"><span><div id="3b59995fc21f8035a808dacd299eef9d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3b59995fc21f8035a808dacd299eef9d" title="11.6  OLED_DISPLAY_16_16(u8 x, u8 y, u16 w)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">11.6  OLED_DISPLAY_16_16(u8 x, u8 y, u16 w)</span></span></h3><ul class="notion-list notion-list-disc notion-block-3b59995fc21f8027914fffaed81ebd73"><li>含义：在 OLED 上显示一个 16x16 大小的汉字，取模大小为16*16，取模方式为“从左到右从上到下”“纵向8点下高位”</li></ul><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80548b24f26caea4c7b0"><li>该函数，出自oled0561.c文件</li></ul><div class="notion-text notion-block-3b59995fc21f8035a264ece6bdb76a01">下面这个文件是显示“成功了哦”的字库数组文件：</div><div class="notion-file notion-block-3b59995fc21f80a98483f64f9a736f33"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/ff765f22-a070-4a13-b875-115fb3ab309a/CC.h?table=block&amp;id=3b59995f-c21f-80a9-8483-f64f9a736f33&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=tMlvWQJ0pg9n1FlKkbQ0OxV687FZJgdImIcozPdhj0o" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">CC.H</div><div class="notion-file-size">1.1 KiB</div></div></a></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3b59995fc21f8072be41e59fc21f3387" data-id="3b59995fc21f8072be41e59fc21f3387"><span><div id="3b59995fc21f8072be41e59fc21f3387" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3b59995fc21f8072be41e59fc21f3387" title="11.7 OLED_DISPLAY_16_16_UC(u16 w)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">11.7 OLED_DISPLAY_16_16_UC(u16 w)</span></span></h3><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80ecb8d9c58fc23bc3fe"><li>含义：用户自定义汉字库调用（显示 16x16 汉字）</li></ul><ul class="notion-list notion-list-disc notion-block-3b59995fc21f80a482b5cce52ec4c05c"><li>该函数，出自oled0561.c文件</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3b59995fc21f80378d94c0eb1b3e7aaa" data-id="3b59995fc21f80378d94c0eb1b3e7aaa"><span><div id="3b59995fc21f80378d94c0eb1b3e7aaa" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3b59995fc21f80378d94c0eb1b3e7aaa" title="11.8 ASCII数据表来源"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">11.8 ASCII数据表来源</span></span></h3><div class="notion-file notion-block-3b59995fc21f804caa71ca66a23c73a3"><a class="notion-file-link" href="https://file.notion.so/f/f/9e84bfbd-e0b4-4a90-8dc5-62446f9838bf/aff8b97a-35c3-4777-988b-dcf0c48d9875/OLED%E5%B1%8F%E6%A8%A1%E5%9D%97ASCII%E3%80%81%E6%B1%89%E5%AD%97%E3%80%81%E5%9B%BE%E7%89%87%E7%9A%84%E5%8F%96%E6%A8%A1%E6%96%B9%E6%B3%95.pdf?table=block&amp;id=3b59995f-c21f-804c-aa71-ca66a23c73a3&amp;spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;expirationTimestamp=1786125600000&amp;signature=ImqcBkJ5uA_ldrxz4Dj9gEr48gJloQ86NnbLwf2ZOZk" target="_blank" rel="noopener noreferrer"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">OLED屏模块ASCII、汉字、图片的取模方法.pdf</div><div class="notion-file-size">2.5 MiB</div></div></a></div><div class="notion-blank notion-block-3b59995fc21f8087a5c0f8305e670572"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[毕设思路]]></title>
            <link>https://tangly1024.com/毕业设计/bishe01</link>
            <guid>https://tangly1024.com/毕业设计/bishe01</guid>
            <pubDate>Mon, 11 Nov 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[简要记录自己的想法、知识点和参考文献]]></description>
            <content:encoded><![CDATA[简要记录自己的想法、知识点和参考文献]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript基础]]></title>
            <link>https://tangly1024.com/前端技术/js01</link>
            <guid>https://tangly1024.com/前端技术/js01</guid>
            <pubDate>Tue, 20 Aug 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[js知识的总结]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1269995fc21f806b8345e289d4cee5e1"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1269995fc21f81819cedf66ca52d2883" data-id="1269995fc21f81819cedf66ca52d2883"><span><div id="1269995fc21f81819cedf66ca52d2883" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81819cedf66ca52d2883" title="一、JavaScript的内外部"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一、JavaScript的内外部</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f81649407dfb81e7a16b5" data-id="1269995fc21f81649407dfb81e7a16b5"><span><div id="1269995fc21f81649407dfb81e7a16b5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81649407dfb81e7a16b5" title="1.1 内部JavaScript"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.1 内部JavaScript</span></span></h3><ul class="notion-list notion-list-disc notion-block-1269995fc21f8154b084ea8f316cc7f1"><li>其格式为：</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8143aabdf0fd1aee9f3f"><li>【JavaScript的alert()方法】：弹窗提醒；其格式为：<code class="notion-inline-code">alert(&quot;语句&quot;);</code></li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f811791e4f0fbc646cac0"><li>实例：</li></ul><div class="notion-text notion-block-1269995fc21f81a8b473ebe88c53a3e1">代码测试结果如下：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1269995fc21f81449acdd7eb5f7a7fda"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://raw.githubusercontent.com/qingxianzi002/My_note/main/pictureJavaScript%E5%9F%BA%E7%A1%80%E5%9B%BE1.png?spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;t=1269995f-c21f-8144-9acd-d7eb5f7a7fda" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-1269995fc21f81558713e2a516b916d2"><li>【注意】：内部JavaScript可以在页面上的任何位置，而页面也允许在不同位置上放入多段javaScript代码</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f810baf28e144a9055779" data-id="1269995fc21f810baf28e144a9055779"><span><div id="1269995fc21f810baf28e144a9055779" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f810baf28e144a9055779" title="1.2 外部JavaScript"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.2 外部JavaScript</span></span></h3><ul class="notion-list notion-list-disc notion-block-1269995fc21f8119a223f25201cfe2e1"><li>用法在于将原本应写到<code class="notion-inline-code">&lt;script&gt;</code>和<code class="notion-inline-code">&lt;/script&gt;</code>的内容变为在外面另建一个.js文件，并存放在里面</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81279490d28b4c18dd98"><li>建好.js文件后，如果要用，则必须在HTML代码中，声明如下：</li></ul><div class="notion-text notion-block-1269995fc21f81e884b5d23cfbd90c6e"> <code class="notion-inline-code">&lt;script src=&quot;JavaScript 文件地址&quot;&gt;&lt;/script&gt;</code></div><ul class="notion-list notion-list-disc notion-block-1269995fc21f816a97efe278f7d80b84"><li>代码如下：</li></ul><div class="notion-text notion-block-1269995fc21f81dcad00e6377980bb9a">myFireScript.js</div><div class="notion-text notion-block-1269995fc21f81a99791e7b6d3b74aa3">Test1_1.html</div><div class="notion-text notion-block-1269995fc21f81dcb46cf478c2382d4c">代码测试结果如下：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1269995fc21f81a5bb75e146f3f15656"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://raw.githubusercontent.com/qingxianzi002/My_note/main/pictureJavaScript%E5%9F%BA%E7%A1%80%E5%9B%BE2.png?spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;t=1269995f-c21f-81a5-bb75-e146f3f15656" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1269995fc21f8181af99c239cafad197" data-id="1269995fc21f8181af99c239cafad197"><span><div id="1269995fc21f8181af99c239cafad197" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f8181af99c239cafad197" title="二、JavaScript语法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二、JavaScript语法</span></span></h2><ul class="notion-list notion-list-disc notion-block-1269995fc21f8169be1dfeeb8b386db2"><li>有大小写之分</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81369adbcaad12995d3a"><li>其语法类似于java</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f818a8ebee87cb0a386b0"><li>每一段语句可以有分号（;），也可以没有分号（;）</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f811fabfed0deb030d9f7"><li>注释可以这样表示：</li></ul><div class="notion-text notion-block-1269995fc21f81409838db5cf092d3b0"> // 或 /* */</div><div class="notion-text notion-block-1269995fc21f81cc983cf099c93be542"> 【注意】：注释只能在<code class="notion-inline-code">&lt;script&gt;</code>和<code class="notion-inline-code">&lt;/script&gt;</code>之间的标签或外部js文件使用</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1269995fc21f819aaf80cee3c785a321" data-id="1269995fc21f819aaf80cee3c785a321"><span><div id="1269995fc21f819aaf80cee3c785a321" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f819aaf80cee3c785a321" title="三、JavaScript变量"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">三、JavaScript变量</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f8169a66aef661b068a79" data-id="1269995fc21f8169a66aef661b068a79"><span><div id="1269995fc21f8169a66aef661b068a79" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f8169a66aef661b068a79" title="3.1 变量声明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.1 变量声明</span></span></h3><ul class="notion-list notion-list-disc notion-block-1269995fc21f8102adf1c45b3f0ce615"><li>无论是什么类型内容，都统一使用关键字var加上变量名称进行声明，例如：var a = 2</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f815c881cddf7ecda0532"><li>在声明变量的同时可以对其进行初始化，也可以先声明变量，再另行赋值</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81058294d3537aac25f2"><li>允许一个关键字var同时声明多个变量，同时多个变量也可以是相互不同的类型，也可以是全部相同的类型</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81f6a54ee61d303c1368"><li>变量声明var不是必须存在的，也可以直接使用变量名称进行赋值使用，例如：list = “String”</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81e58470c76bf06c5c56"><li>当程序遇到未声明的变量时，就像上方的list，会自动使用该名称创建一个变量并继续使用</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8194b545f33b566d5257"><li>如果声明的变量没有赋值，则alert(变量名称)显示为underfined</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f81919b9bd5c02e5ad62f" data-id="1269995fc21f81919b9bd5c02e5ad62f"><span><div id="1269995fc21f81919b9bd5c02e5ad62f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81919b9bd5c02e5ad62f" title="3.2 变量的命名规范"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.2 变量的命名规范</span></span></h3><ul class="notion-list notion-list-disc notion-block-1269995fc21f81ec96fbce75fb807e63"><li>首位字符必须是字母、下画线、美元符号</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f819fa425da94ad57004a"><li>其他位置可以为下画线、美元符号、数字、字母</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81278941e6c958fe2a93"><li>变量命名方式有Camel标记法（变量为多个单词时，第一个单纯的首字母为小写，其他单词的首字母为大写，如，var myFirseScript）、Pascal标记法（所有单词的首字母大写）、匈牙利类型标记法（在Pascal标记法的基础上，加上一个前缀【i表示整数，s表示字符串】，如，varsMyFirstScript）</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f811da9aac9210e3d4d2d" data-id="1269995fc21f811da9aac9210e3d4d2d"><span><div id="1269995fc21f811da9aac9210e3d4d2d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f811da9aac9210e3d4d2d" title="3.3 关键字和保留字"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.3 关键字和保留字</span></span></h3><ul class="notion-list notion-list-disc notion-block-1269995fc21f81579bb0e61b6a079d61"><li>关键字</li></ul><table class="notion-simple-table notion-block-1269995fc21f81e1ba7cd2559f8770db"><tbody><tr class="notion-simple-table-row notion-block-1269995fc21f810394f8c2d872812cc9"><td class="" style="width:138px"><div class="notion-simple-table-cell">break</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">case</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">catch</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">continue</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">default</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81fcaee3ea879bfdff0f"><td class="" style="width:138px"><div class="notion-simple-table-cell">delete</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">do</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">else</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">finally</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">for</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f819c8275c1f00d4d0e4e"><td class="" style="width:138px"><div class="notion-simple-table-cell">function</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">if</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">in</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">instanceof</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">new</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f812aa2a0c20c76bb43e8"><td class="" style="width:138px"><div class="notion-simple-table-cell">return</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">switch</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">this</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">throw</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">try</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8124afd7cfe48859b042"><td class="" style="width:138px"><div class="notion-simple-table-cell">typeof</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">var</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">void</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">while</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">with</div></td></tr></tbody></table><ul class="notion-list notion-list-disc notion-block-1269995fc21f8116a927f943bf25cfb8"><li>保留字</li></ul><table class="notion-simple-table notion-block-1269995fc21f818cbd9bcc63df827714"><tbody><tr class="notion-simple-table-row notion-block-1269995fc21f8139aa03ff2594c2cd25"><td class="" style="width:138px"><div class="notion-simple-table-cell">abstract</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">boolean</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">byte</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">char</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">class</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81f18febfcdf94d31e7c"><td class="" style="width:138px"><div class="notion-simple-table-cell">const</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">debugger</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">double</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">enum</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">export</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81b7bd7dcb41d3eb8529"><td class="" style="width:138px"><div class="notion-simple-table-cell">extends</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">final</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">float</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">goto</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">implements</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f810fbe80c75d63e6acee"><td class="" style="width:138px"><div class="notion-simple-table-cell">import</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">int</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">interface</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">long</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">native</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f811ba3a5cca9bbc73cbd"><td class="" style="width:138px"><div class="notion-simple-table-cell">package</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">privaste</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">protected</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">public</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">short</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f812bbe52d865c9ad2cb6"><td class="" style="width:138px"><div class="notion-simple-table-cell">static</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">super</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">synchronized</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">throws</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">transient</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81449fd4f80c03dc4455"><td class="" style="width:138px"><div class="notion-simple-table-cell">volatite</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:138px"><div class="notion-simple-table-cell">ㅤ</div></td></tr></tbody></table><ul class="notion-list notion-list-disc notion-block-1269995fc21f81c6b92de9db2461fc93"><li>都不能作为变量或函数名称</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1269995fc21f819d8feae5d00ca24662" data-id="1269995fc21f819d8feae5d00ca24662"><span><div id="1269995fc21f819d8feae5d00ca24662" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f819d8feae5d00ca24662" title="四、JavaScript基本数据类型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">四、JavaScript基本数据类型</span></span></h2><ul class="notion-list notion-list-disc notion-block-1269995fc21f81ff8ae5eda272e82135"><li>五种原始类型：Number（数字）、Boolean（布尔值）、String（字符串）、Null（空值）和Undefined（未定义）</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8139b49ad1b430f7e104"><li>typeof 变量名称：返回该变量名称的类型</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8117b0fed5312583abf7"><li>typeof方法的常见返回值</li></ul><table class="notion-simple-table notion-block-1269995fc21f8107ac87c8a7419244de"><tbody><tr class="notion-simple-table-row notion-block-1269995fc21f816ba723e620e6175cd9"><td class="" style="width:230px"><div class="notion-simple-table-cell">返回值</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">示例</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">解释</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81f0815fc68c5681b7af"><td class="" style="width:230px"><div class="notion-simple-table-cell">underfined</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x; alert(x);</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">该变量为赋值</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8175896fc0ce3e20f9dc"><td class="" style="width:230px"><div class="notion-simple-table-cell">boolean</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = true; alert(x);</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">该变量为布尔值</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f814ebe14d36f5ef3d206"><td class="" style="width:230px"><div class="notion-simple-table-cell">string</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = “Hello”; alert(x);</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">该变量为字符串</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f810f8dccc7a98a618462"><td class="" style="width:230px"><div class="notion-simple-table-cell">number</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = 3.14; alert(x);</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">该变量为数值</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f819b8fa5c5248d4835a3"><td class="" style="width:230px"><div class="notion-simple-table-cell">object</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = null; alert(x);</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">该变量为空值null或对象</div></td></tr></tbody></table><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f81b99442cbe2e5b8daf1" data-id="1269995fc21f81b99442cbe2e5b8daf1"><span><div id="1269995fc21f81b99442cbe2e5b8daf1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81b99442cbe2e5b8daf1" title="4.1 Undefined类型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.1 Undefined类型</span></span></h3><ul class="notion-list notion-list-disc notion-block-1269995fc21f81cab75dc2a673e06c26"><li>当输出的变量从未声明过，或使用关键字var声明过后但并未赋值，alert(变量名称)会显示undefined字样</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81eb80fef9cdc6bf7e5c"><li>代码如下：</li></ul><div class="notion-text notion-block-1269995fc21f817b9440d4cf25baa8be">代码测试结果：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1269995fc21f8190890fd32b26d3efb6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://raw.githubusercontent.com/qingxianzi002/My_note/main/pictureJavaScript%E5%9F%BA%E7%A1%80%E5%9B%BE3.png?spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;t=1269995f-c21f-8190-890f-d32b26d3efb6" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1269995fc21f81f49156f10c66501ecf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://raw.githubusercontent.com/qingxianzi002/My_note/main/pictureJavaScript%E5%9F%BA%E7%A1%80%E5%9B%BE4.png?spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;t=1269995f-c21f-81f4-9156-f10c66501ecf" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f813cb912e97513465b87" data-id="1269995fc21f813cb912e97513465b87"><span><div id="1269995fc21f813cb912e97513465b87" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f813cb912e97513465b87" title="4.2 Null类型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.2 Null类型</span></span></h3><ul class="notion-list notion-list-disc notion-block-1269995fc21f8100af3af87022811a05"><li>null值表示变量的内容为空，可用于初始化变量或者清空已经赋值的变量</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8106851efbff56d5ebab"><li>示例：</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f8106851efbff56d5ebab"></ul></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f815aa41cfe04cdd385d5" data-id="1269995fc21f815aa41cfe04cdd385d5"><span><div id="1269995fc21f815aa41cfe04cdd385d5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f815aa41cfe04cdd385d5" title="4.3 String类型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.3 String类型</span></span></h3><ul class="notion-list notion-list-disc notion-block-1269995fc21f81258b64fbe63bcf284d"><li>用于存储文本内容，赋值时，可以用单引号或双引号</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f810fb23cf9c94157d5a2"><li>这里的单引号不是指只能一个字符，它与字符串是相同的意思</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81d493f4fb87f798b952"><li>当文本内容里有双引号，则外面字符串用单引号表示，反之亦然</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8156812ce200c3a83552"><li>示例:</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8190952ef998b42cb598"><li>JavaScript String对象常见方法</li></ul><table class="notion-simple-table notion-block-1269995fc21f8171a13ccd94adcb628e"><tbody><tr class="notion-simple-table-row notion-block-1269995fc21f81a0b6c2cc4694d3ab95"><td class="" style="width:345px"><div class="notion-simple-table-cell">方法名</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">解释</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81a1b463cc4f1ddecaa2"><td class="" style="width:345px"><div class="notion-simple-table-cell">charAt()</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">返回指定位置上的字符</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81cf849dfc1476ac13d1"><td class="" style="width:345px"><div class="notion-simple-table-cell">charCodeAt()</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">返回指定位置上的字符Unicode编码</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81e68021d84260356cb7"><td class="" style="width:345px"><div class="notion-simple-table-cell">concat()</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">连接字符串</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81a6a44ec4d48db0ff5f"><td class="" style="width:345px"><div class="notion-simple-table-cell">indexOf()</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">正序检索字符串中指定内容的位置</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81fb971ade64e730a8a9"><td class="" style="width:345px"><div class="notion-simple-table-cell">lastIndexOf()</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">倒序检索字符串中指定内容的位置</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81688b6ddc555a01b6fa"><td class="" style="width:345px"><div class="notion-simple-table-cell">match()</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">返回匹配正则表达式的所有字符串</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f813090fed7480cd612e9"><td class="" style="width:345px"><div class="notion-simple-table-cell">replace()</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">替换字符串中匹配正则表达式的指定内容</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f811aa2cac5571b2cb6b3"><td class="" style="width:345px"><div class="notion-simple-table-cell">search()</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">返回匹配正则表达式的索引值</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81e2b493e04544409826"><td class="" style="width:345px"><div class="notion-simple-table-cell">slice()</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">根据指定位置节选字符串片段</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81b7ab1edb65d89d01f6"><td class="" style="width:345px"><div class="notion-simple-table-cell">split()</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">把字符串分割成字符串数组</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81b6bd82cd2582cf5f9e"><td class="" style="width:345px"><div class="notion-simple-table-cell">substring()</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">根据指定位置节选字符串片段</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81d98ebee56e0dd8ec4d"><td class="" style="width:345px"><div class="notion-simple-table-cell">toLowerCase()</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">将字符串中所有字母都转换为小写</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81038642e7453d9c3ce2"><td class="" style="width:345px"><div class="notion-simple-table-cell">toUpperCase()</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">将字符串中所有字母都转换为大写</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f81b7bd42d7ca659f62ee" data-id="1269995fc21f81b7bd42d7ca659f62ee"><span><div id="1269995fc21f81b7bd42d7ca659f62ee" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81b7bd42d7ca659f62ee" title="4.3.1 字符串长度"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.3.1 字符串长度</span></span></h4><ul class="notion-list notion-list-disc notion-block-1269995fc21f8199bd61d212d73723af"><li>可以使用 变量名称.length 获取其长度（与java相同）</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f81b8bf9eca49d82bdeec" data-id="1269995fc21f81b8bf9eca49d82bdeec"><span><div id="1269995fc21f81b8bf9eca49d82bdeec" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81b8bf9eca49d82bdeec" title="4.3.2 获取字符串中的单个字符"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.3.2 获取字符串中的单个字符</span></span></h4><ul class="notion-list notion-list-disc notion-block-1269995fc21f8101aa58d31959c670b9"><li>使用charAt()方法获取字符串中的单个字符，使用charCodeAt()方法获取字符串中的单个字符的Unicode编码</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f810a8d0ee24c335aa0c8"><li>示例：</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f815892f3d7282a9aaf69" data-id="1269995fc21f815892f3d7282a9aaf69"><span><div id="1269995fc21f815892f3d7282a9aaf69" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f815892f3d7282a9aaf69" title="4.3.3 连接字符串"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.3.3 连接字符串</span></span></h4><ul class="notion-list notion-list-disc notion-block-1269995fc21f81038398f7d66e6a2a82"><li>使用concat()方法将新的字符串内容连接到原始字符串上</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8130a474ea0fb2cd001c"><li>其格式为：<code class="notion-inline-code">concat(String s1,String s2,String s3,········,String sn);</code></li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81c38181d2756742e965"><li>示例：</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f81b6abbffaec0b52ebc5" data-id="1269995fc21f81b6abbffaec0b52ebc5"><span><div id="1269995fc21f81b6abbffaec0b52ebc5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81b6abbffaec0b52ebc5" title="4.3.4 查找字符串是否存在"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.3.4 查找字符串是否存在</span></span></h4><ul class="notion-list notion-list-disc notion-block-1269995fc21f81dba771c399f43c6b34"><li>使用indexOf()和lastIndexOf()方法来查找原始字符串中是否包含指定的字符串</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f812ba4e2d17b88d3f371"><li>其格式为：【正序】<code class="notion-inline-code">indexOf(指定的字符串，指定开始索引的位置)</code>，【倒序】`lastIndexOf(指定的字符串，指定开始索引的位置)</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f81fdbefbe1592c92c928" data-id="1269995fc21f81fdbefbe1592c92c928"><span><div id="1269995fc21f81fdbefbe1592c92c928" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81fdbefbe1592c92c928" title="4.4 Number类型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.4 Number类型</span></span></h4><ul class="notion-list notion-list-disc notion-block-1269995fc21f816b9b1dc625efb034ee"><li>Number类型表示数字，其数字可以是32位以内的整数或64位以内的浮点数</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f8110a62ec25e349237f5" data-id="1269995fc21f8110a62ec25e349237f5"><span><div id="1269995fc21f8110a62ec25e349237f5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f8110a62ec25e349237f5" title="4.4.1 科学计数法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.4.1 科学计数法</span></span></h4><ul class="notion-list notion-list-disc notion-block-1269995fc21f81ac8a8bc16a681f3735"><li>其格式为：数值e倍数 （倍数可以为负数，其格式含义为数值【整数或浮点数】乘以10的倍数次方）</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8182ad48eaff22071e19"><li>示例：</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f8191908ededaec510e96" data-id="1269995fc21f8191908ededaec510e96"><span><div id="1269995fc21f8191908ededaec510e96" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f8191908ededaec510e96" title="4.4.2 八进制与十六进制数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.4.2 八进制与十六进制数</span></span></h4><ul class="notion-list notion-list-disc notion-block-1269995fc21f81a69e15de0c6f15fe32"><li>要运用到八进制、十六进制以及相互转换之间的知识</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f817983d6f53adf77ab88"><li>Number类型也可以是八进制（以0开头，后面跟的数字只能是0—7中的一个）或十六进制（以0x开头，后面跟的字符只能是0—9或A-F之间的一个）</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81f3a179f92c05840366"><li>示例：</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81948da5c298d81a3f79"><li>在代码中虽然以八/十六进制赋值，最后输出是以十进制输出</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f816098d2d64036e48d8f" data-id="1269995fc21f816098d2d64036e48d8f"><span><div id="1269995fc21f816098d2d64036e48d8f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f816098d2d64036e48d8f" title="4.4.3 浮点数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.4.3 浮点数</span></span></h4><ul class="notion-list notion-list-disc notion-block-1269995fc21f81339d5ee2190480bf31"><li>使用toFixed（）方法规定小数点后保留几位数，其格式为：</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f81339d5ee2190480bf31"></ul></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81dfa578d7768d99c17c"><li>若使用浮点数计算，有时会产生误差</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8140a09dfc0d40c094a4"><li>代码如下：</li></ul><div class="notion-text notion-block-1269995fc21f8176ab21c75c150e211f">代码测试结果：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1269995fc21f818ba3d1ed4716b8d305"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://raw.githubusercontent.com/qingxianzi002/My_note/main/pictureJavaScript%E5%9F%BA%E7%A1%80%E5%9B%BE5.png?spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;t=1269995f-c21f-818b-a3d1-ed4716b8d305" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f81aeab04d02cf899fc6b" data-id="1269995fc21f81aeab04d02cf899fc6b"><span><div id="1269995fc21f81aeab04d02cf899fc6b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81aeab04d02cf899fc6b" title="4.4.4 特殊Number值"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.4.4 特殊Number值</span></span></h4><ul class="notion-list notion-list-disc notion-block-1269995fc21f815d97d0d4f6d1b69210"><li>JavaScript中Number类型的特殊值</li></ul><table class="notion-simple-table notion-block-1269995fc21f81ee8ce1dbadee1ee256"><tbody><tr class="notion-simple-table-row notion-block-1269995fc21f81998ce3ed1528f10205"><td class="" style="width:345px"><div class="notion-simple-table-cell">特殊值</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">解释</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8148b2e1cb4335b9bb20"><td class="" style="width:345px"><div class="notion-simple-table-cell">Infinity</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">正无穷大，在JavaScript使用Number.POSITIVE_INFINITY表示</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8177a0d3e3b9a712f94b"><td class="" style="width:345px"><div class="notion-simple-table-cell">-Infinity</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">负无穷大，在JavaScript使用Number.NEGATIVE_INFINITY表示</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f813d8846d0b608271215"><td class="" style="width:345px"><div class="notion-simple-table-cell">NaN</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">非数字，在JavaScript使用Number.NaN表示</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81bd8c0cfca0ec332289"><td class="" style="width:345px"><div class="notion-simple-table-cell">Number.MAX_VALUE</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">数值范围允许的最大值，大约等于1.8e308</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8197bd71e4adaed6afae"><td class="" style="width:345px"><div class="notion-simple-table-cell">Number.MIN_VALUE</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">数值范围允许的最小值，大于等于5e-324</div></td></tr></tbody></table><ul class="notion-list notion-list-disc notion-block-1269995fc21f81ef86ddeaa2e0f8436b"><li>Infinity有正负之分，但如果Number数值超出他的上限或下限，就会返回Infinity</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81b489cde7e2e52160c6"><li>示例：</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81af9281d2b2e955731e"><li>当两个变量数值都超出数值范围的大小，但他们各自的实际长度不相同；而由于都超出范围限制，都变为Infinity,所以判定两者是相等的，返回true；</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81508e52ea72dbc873e3"><li>示例：</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81acb5e2c66759b3807a"><li>使用数字0作为除数不会报错，则分为几种情况：</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f81acb5e2c66759b3807a"><li>正数 / 0 = Infinity</li><li>负数 / 0 = -Infinity</li><li>0 / 0 = NaN(非数字)</li></ul></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f810ca372eb4780cd451c"><li>Infinity不可以与其他正常的数字进行计算，返回结果仍是Infinity</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f813ab8c2ffef92ed761f"><li>Infinity - Infinity = NaN</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f817bb030d26edabdd39e" data-id="1269995fc21f817bb030d26edabdd39e"><span><div id="1269995fc21f817bb030d26edabdd39e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f817bb030d26edabdd39e" title="4.4.5 NaN"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.4.5 NaN</span></span></h4><ul class="notion-list notion-list-disc notion-block-1269995fc21f81a6a4aec72213911f72"><li>表示的是非数字，用于表示数据转换成Number类型失败的情况，从而抛出异常</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f816f98a9d7d9ccfb6a51"><li>isNaN（变量名称）：判断数据类型是否为数值的方法，返回值为布尔值</li></ul><div class="notion-text notion-block-1269995fc21f81008c73ce09eaf38fb9"> 【true时，为无法转换；false，可以转换】</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f81d1bd50d67020d6d700" data-id="1269995fc21f81d1bd50d67020d6d700"><span><div id="1269995fc21f81d1bd50d67020d6d700" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81d1bd50d67020d6d700" title="4.4.6 关于Infinity 、-Infinity 、NaN三者的讨论"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.4.6 关于Infinity 、-Infinity 、NaN三者的讨论</span></span></h4><ul class="notion-list notion-list-disc notion-block-1269995fc21f815184d5ceb62fc4ac18"><li>Infinity 运算法则</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f815184d5ceb62fc4ac18"><li>正数除以 0 得 Infinity。</li><li>Infinity 加或减任何有限数字都得 Infinity 。Infinity + Infinity 或 Infinity - -Infinity 也得 Infinity 。</li><li>Infinity 乘或除以任何有限正数得 Infinity 。Infinity 乘或除以任何有限负数得 -Infinity 。 Infinity * Infinity 或 Infinity / 0 也得 Infinity 。Infinity * -Infinity 得 -Infinity。</li><li>Infinity - Infinity 得 NaN 。 Infinity / Infinity 得 NaN 。 Infinity * 0 得 NaN 。</li><li>Infinity == Infinity 为真。 Infinity.isNaN() 为假。</li><li>Infinity.isFinite() 为假。 Boolean(Infinity) 为真。</li></ul></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81c0ab07d527f97d6741"><li>Infinity 运算法则</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f81c0ab07d527f97d6741"><li>负数除以 0 得 -Infinity。</li><li>Infinity 加或减任何有限数字都得 -Infinity 。-Infinity + -Infinity 或 -Infinity - Infinity 也得 -Infinity</li><li>Infinity 乘或除以任何有限正数得 -Infinity 。-Infinity 乘或除以任何有限负数得 Infinity 。 -Infinity * Infinity 或 -Infinity / 0 也得 - Infinity 。-Infinity * -Infinity 得 Infinity。</li><li>Infinity - -Infinity 得 NaN 。 -Infinity / -Infinity 得 NaN 。 -Infinity * 0 得 NaN 。</li><li>Infinity == -Infinity 为真。 -Infinity.isNaN() 为假。</li><li>Infinity.isFinite() 为假。 Boolean(-Infinity) 为真。</li></ul></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f817ca2fbffe81774a56f"><li>NaN 运算法则</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f817ca2fbffe81774a56f"><li>0 / 0 得 NaN 。上面也有一些得 NaN 的情况。</li><li>NaN 加、减、乘或除以任何数（包括 Infinity 、 -Infinity 和 NaN 本身）得 NaN 。</li><li>无论变量 x 取何值（包括 undefined 、 null 、 true 、 false 、 Infinity 、 -Infinity 和 NaN 本身），NaN == x 恒为假。NaN.isNaN() 为真。 NaN.isFinite() 为假。 Boolean(NaN) 为假。</li></ul></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f816b9003c57e934ef12e"><li>本段来源于<a class="notion-link" href="http://t.csdn.cn/dZ5Qs" target="_blank" rel="noopener noreferrer">关于 Infinity， -Infinity 和 NaN</a></li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f81fcaaa1e6315e20f590" data-id="1269995fc21f81fcaaa1e6315e20f590"><span><div id="1269995fc21f81fcaaa1e6315e20f590" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81fcaaa1e6315e20f590" title="4.5 Boolean类型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.5 Boolean类型</span></span></h3><ul class="notion-list notion-list-disc notion-block-1269995fc21f810c9fedc1e18e219bce"><li>多用于条件判断，返回为布尔值（true或false）</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8196ad43e12e07417176"></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8139a0e1c54b6e82d898"><li>总之：
1.特殊值undefined和null变成false.
2.数字0和NaN变成false.
3.空字符串变成false.
4.所有其他值都变成true.</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f817babd6fa190c06209a"><li>另：凡是关于Boolean()、Number()等都是将括号里的元素强制转换为外面声明的类型</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1269995fc21f81c1a6e6fc8d26288368" data-id="1269995fc21f81c1a6e6fc8d26288368"><span><div id="1269995fc21f81c1a6e6fc8d26288368" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81c1a6e6fc8d26288368" title="五、涉及八进制和十六进制的知识补充"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">五、涉及八进制和十六进制的知识补充</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1269995fc21f819aaf97fb94ea9d5c76"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://raw.githubusercontent.com/qingxianzi002/My_note/main/pictureJavaScript%E5%9F%BA%E7%A1%80%E5%9B%BE6.png?spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;t=1269995f-c21f-819a-af97-fb94ea9d5c76" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1269995fc21f81adba86fae0b64984f7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://raw.githubusercontent.com/qingxianzi002/My_note/main/pictureJavaScript%E5%9F%BA%E7%A1%80%E5%9B%BE7.png?spaceId=9e84bfbd-e0b4-4a90-8dc5-62446f9838bf&amp;t=1269995f-c21f-81ad-ba86-fae0b64984f7" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1269995fc21f819196f4cb733f676870" data-id="1269995fc21f819196f4cb733f676870"><span><div id="1269995fc21f819196f4cb733f676870" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f819196f4cb733f676870" title="六、JavaScript运算符"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">六、JavaScript运算符</span></span></h2><ul class="notion-list notion-list-disc notion-block-1269995fc21f8159857bd5e041853820"><li>赋值运算符：=</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f8159857bd5e041853820"><div class="notion-text notion-block-1269995fc21f818bbc7bc6f437afc5fe">示例：<code class="notion-inline-code">var x1 = 9;</code></div></ul></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8142a30fd569624bd365"><li>算数运算符的常见用法：</li></ul><table class="notion-simple-table notion-block-1269995fc21f8197bbd8e2767b575151"><tbody><tr class="notion-simple-table-row notion-block-1269995fc21f81e2a1dfc29b721ed976"><td class="" style="width:345px"><div class="notion-simple-table-cell">运算符</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">解释</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81659c25e21fca0123f7"><td class="" style="width:345px"><div class="notion-simple-table-cell">+</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">加号，求和，连接字符串</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81e880eee44c2314af5b"><td class="" style="width:345px"><div class="notion-simple-table-cell">-</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">减号，求差</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81888c96cc65b2fb71fe"><td class="" style="width:345px"><div class="notion-simple-table-cell">*</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">乘号,求积</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f818697bcc84521fa492c"><td class="" style="width:345px"><div class="notion-simple-table-cell">/</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">除号，求商</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81319864d2648bcbdaf9"><td class="" style="width:345px"><div class="notion-simple-table-cell">%</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">求余符号</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8192bb8de788bd03dc00"><td class="" style="width:345px"><div class="notion-simple-table-cell">++</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">自增加1</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f814e8d51f2e2416d5c99"><td class="" style="width:345px"><div class="notion-simple-table-cell">–</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">自减减1</div></td></tr></tbody></table><ul class="notion-list notion-list-disc notion-block-1269995fc21f81198db6fb96daa50564"><li>运算符组合：</li></ul><table class="notion-simple-table notion-block-1269995fc21f81de9ebcf4daab67dd5b"><tbody><tr class="notion-simple-table-row notion-block-1269995fc21f810c8a42d37d325ece67"><td class="" style="width:230px"><div class="notion-simple-table-cell">运算符组合</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">格式</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">解释</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81028716d1533a555abc"><td class="" style="width:230px"><div class="notion-simple-table-cell">+=</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">x+=y</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">x=x+y</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81698a70fee9172322c2"><td class="" style="width:230px"><div class="notion-simple-table-cell">-=</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">x-=y</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">x=x-y</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f810f80dcc4896e6b619d"><td class="" style="width:230px"><div class="notion-simple-table-cell">*=</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">x*=y</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">x=x*y</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81a2870dea8bcebb9b14"><td class="" style="width:230px"><div class="notion-simple-table-cell">/=</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">x/=y</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">x=x/y</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81a8a41bee23c6b1e642"><td class="" style="width:230px"><div class="notion-simple-table-cell">%=</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">x%=y</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">x=x%y</div></td></tr></tbody></table><ul class="notion-list notion-list-disc notion-block-1269995fc21f8109bd1cc7ef416b1d76"><li>逻辑运算符有三种类型：NOT（逻辑非）、AND（逻辑与）、OR（逻辑或）</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81588bb1de8ac5403ea8"><li>逻辑运算符分为：！（逻辑非，表示对结果的对立面）、&amp;&amp;（逻辑与，表示并列关系）、||（逻辑或，表示二选一）</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81d3916feee2cf0be471"><li>【注意：】这里与Java不同的是，JavaScript自带有一个抽象方法ToBoolean，可以提前将运算条件转换为布尔值，之后在进行逻辑运算符判断；</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f817a8290d461715048e4"><li><b>ToBoolean的具体转换规则如下：</b></li></ul><table class="notion-simple-table notion-block-1269995fc21f8144ac39f365d9d5eb82"><tbody><tr class="notion-simple-table-row notion-block-1269995fc21f81b4a102de6f37cb0e49"><td class="" style="width:230px"><div class="notion-simple-table-cell">值</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">示例</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">转换结果</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8167902fddf9487bacb1"><td class="" style="width:230px"><div class="notion-simple-table-cell">布尔值true</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = true;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">true</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81c18ba4c12fe2905a88"><td class="" style="width:230px"><div class="notion-simple-table-cell">布尔值false</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = false;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">false</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81d8a603d31fcf1de514"><td class="" style="width:230px"><div class="notion-simple-table-cell">null</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = null;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">false</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f818d8670c49514dfebd2"><td class="" style="width:230px"><div class="notion-simple-table-cell">underfined</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = underfined;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">false</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f814db757dfc6caeae842"><td class="" style="width:230px"><div class="notion-simple-table-cell">非空字符串</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = “Hello”;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">true</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f815eb95ec6abc70a3ca0"><td class="" style="width:230px"><div class="notion-simple-table-cell">空字符串</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = ““;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">false</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8111a6efef7946b4ee32"><td class="" style="width:230px"><div class="notion-simple-table-cell">数字0</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = 0;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">false</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f816d85faf1363821a7d6"><td class="" style="width:230px"><div class="notion-simple-table-cell">NaN</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = NaN;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">false</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f813c80c3d9db9837797c"><td class="" style="width:230px"><div class="notion-simple-table-cell">除0和NaN以外的其他数字</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = 99;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">true</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8187bea3ff01cd6768ba"><td class="" style="width:230px"><div class="notion-simple-table-cell">对象</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var student = new Object();</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">true</div></td></tr></tbody></table><ul class="notion-list notion-list-disc notion-block-1269995fc21f81358b5ec86b98514380"><li>逻辑与特殊情况：</li></ul><table class="notion-simple-table notion-block-1269995fc21f8115b251cac85e300698"><tbody><tr class="notion-simple-table-row notion-block-1269995fc21f81d58c44cfb05af40620"><td class="" style="width:230px"><div class="notion-simple-table-cell">运算数类型</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">示例</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">返回值</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81c48a77cde5a3eb6b0e"><td class="" style="width:230px"><div class="notion-simple-table-cell">一个是对象，一个是布尔值</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var student = new Object(); var result = student &amp;&amp; true;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">返回对象类型，即student</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f811a996ed2065ea0535f"><td class="" style="width:230px"><div class="notion-simple-table-cell">两个都是对象</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var student1 = new Object(); var student2 = new Object(); var result = student1 &amp;&amp; student2;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">返回第二个对象，即student2</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f810e85b9dfebc690a699"><td class="" style="width:230px"><div class="notion-simple-table-cell">一个是空值null,一个是布尔值</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = null; var result = x &amp;&amp; true;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">null</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f813db00bc093eb7e2fb0"><td class="" style="width:230px"><div class="notion-simple-table-cell">存在NaN</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = NaN; var result = x &amp;&amp; true;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">NaN</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8161805fdaaa983e8707"><td class="" style="width:230px"><div class="notion-simple-table-cell">存在未赋值undefined</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x; var result = x &amp;&amp; true;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">underfined</div></td></tr></tbody></table><div class="notion-text notion-block-1269995fc21f81cf9807de37a822b44d">但有一点：若条件1为假，返回值都是假的；【逻辑或（||）亦是如此，只要条件1为真，返回值都为真的】</div><ul class="notion-list notion-list-disc notion-block-1269995fc21f8167895ed05d1c8b569d"><li>逻辑或特殊情况：</li></ul><table class="notion-simple-table notion-block-1269995fc21f81f5ac13f86ac1f8566d"><tbody><tr class="notion-simple-table-row notion-block-1269995fc21f81c9be1acb0361bd0b46"><td class="" style="width:230px"><div class="notion-simple-table-cell">运算数类型</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">示例</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">返回值</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81a9ac22c471df98b75c"><td class="" style="width:230px"><div class="notion-simple-table-cell">条件1位false,条件2为对象</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var student = new Object(); var result = flase<code class="notion-inline-code">||</code>student;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">返回对象类型，即student</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81bf8e16f4da172b90fd"><td class="" style="width:230px"><div class="notion-simple-table-cell">两个都是对象</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var student1 = new Object(); var student2 = new Object(); var result = student1<code class="notion-inline-code">||</code>student2;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">返回第一个对象，即student1</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f814eb7e4dba8fd40853e"><td class="" style="width:230px"><div class="notion-simple-table-cell">条件1是false，条件2为空值null</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = null; var result = flase<code class="notion-inline-code">||</code>x;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">null</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f816a8943c79a1b9736a7"><td class="" style="width:230px"><div class="notion-simple-table-cell">条件1是false,条件2为NaN</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x = NaN; var result = false<code class="notion-inline-code">||</code>x;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">NaN</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81ed8683ea7f05e24ccb"><td class="" style="width:230px"><div class="notion-simple-table-cell">条件1为false,条件2为underfined</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x;var result = false<code class="notion-inline-code">||</code>x;</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">underfined</div></td></tr></tbody></table><ul class="notion-list notion-list-disc notion-block-1269995fc21f81aea870d42f2864c2c4"><li>关系运算符分为<b>三种比较方式</b>：</li></ul><div class="notion-text notion-block-1269995fc21f819a98efc377d0b2086f"> <b>数字之间的比较</b>（和正常做数学题差不多）、<b>字符串之间的比较</b>（根据位数，判断该位数上的字母那个unicode的数字大或小；另，再讲个较为特殊一点的：一个是“9”，另一个是“10”，则按位数进行比较，切勿当做数学题做，这里9和1是同一位数的，所以按照数学正常比大小顺序，9&gt;1，则“9”&gt;10）、<b>字符串与数字之间的比较</b>（先将字符串转为数字，再进行比较；若无法转为数字，则返回false）</div><div class="notion-text notion-block-1269995fc21f81689fede8ad94143a59"> 另：附加两个方法：toLowerCase()【将所有字母转换为小写形式】、toUpperCase()【将所有字母转换为大写形式】</div><ul class="notion-list notion-list-disc notion-block-1269995fc21f81fa8083d79605bfab70"><li>相等性运算符是先将其他非数字类型的转换为数字类型，在进行相等判断；</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81888f8ed3b161c11cf2"><li>数据类型转换规则表</li></ul><table class="notion-simple-table notion-block-1269995fc21f811c87d0c17d25b19a41"><tbody><tr class="notion-simple-table-row notion-block-1269995fc21f812dab00c7755f6837d3"><td class="" style="width:230px"><div class="notion-simple-table-cell">数据类型</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">示例</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">转换结果</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81a284ccdf333df60fe7"><td class="" style="width:230px"><div class="notion-simple-table-cell">布尔值（真）</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">1</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8170adf2c2d23fc15b0f"><td class="" style="width:230px"><div class="notion-simple-table-cell">布尔值（假）</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">false</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">0</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f818f8a62d2df4e37d359"><td class="" style="width:230px"><div class="notion-simple-table-cell">字符串（纯数字类型）</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">“99”</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">99</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8147ab9eec1b4bcb49db"><td class="" style="width:230px"><div class="notion-simple-table-cell">字符串（非纯数字类型）</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">“99hello123”</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">NaN</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81d7afc7fe0b8f3a449e"><td class="" style="width:230px"><div class="notion-simple-table-cell">空值</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">null</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">null</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81fd98bade0e1959d053"><td class="" style="width:230px"><div class="notion-simple-table-cell">未定义的值</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">undefined</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">undefined</div></td></tr></tbody></table><ul class="notion-list notion-list-disc notion-block-1269995fc21f811fa49de3bc02fc1082"><li>相等性特殊情况规则（数据类型转换后仍不是数字类型的特殊情况）</li></ul><table class="notion-simple-table notion-block-1269995fc21f81d8b00cd5a30a716909"><tbody><tr class="notion-simple-table-row notion-block-1269995fc21f816ab6a3de50b85ba4a1"><td class="" style="width:230px"><div class="notion-simple-table-cell">运算数类型</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">示例</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">返回值</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81898179fa6eb0721019"><td class="" style="width:230px"><div class="notion-simple-table-cell">其中一个为null，另一个为undefined</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x1 = null; var x2; var result = (x1==x2);</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">true</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f817897b8e25e8f878a53"><td class="" style="width:230px"><div class="notion-simple-table-cell">两个值均为null</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x1 = null; var x2 = null; var result = (x1==x2)</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">true</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8102882ee3ba85228e79"><td class="" style="width:230px"><div class="notion-simple-table-cell">两个值均为undefined</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x1; var x2; var result = (x1==x2);</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">true</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81fea913d5d03375ee32"><td class="" style="width:230px"><div class="notion-simple-table-cell">其中一个为数字，另一个为NaN</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x1 = 5; vae x2 = parseInt(“a”); var result = (x1==x2);</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">false</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f817a93b1d6a742fd1976"><td class="" style="width:230px"><div class="notion-simple-table-cell">两个值均为NaN</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">var x1 = parseInt(“a”); var x2 = parseInt(“b”); var result = (x1==x2);</div></td><td class="" style="width:230px"><div class="notion-simple-table-cell">false</div></td></tr></tbody></table><div class="notion-text notion-block-1269995fc21f81db8cb1d294f356a2a0"><b>那为什么两个值为NaN时，返回为false？</b></div><div class="notion-text notion-block-1269995fc21f8184a25fff625f50ebe1">因为NaN是不可预测的数字，所以当两个值为NaN时，不知道哪个是大，哪个是小，因此返回false；</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1269995fc21f81cf9c38c62451affb9d" data-id="1269995fc21f81cf9c38c62451affb9d"><span><div id="1269995fc21f81cf9c38c62451affb9d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81cf9c38c62451affb9d" title="七、JavaScript条件语句"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">七、JavaScript条件语句</span></span></h2><ul class="notion-list notion-list-disc notion-block-1269995fc21f815d85cffe1005b393be"><li><b>if-else if-else语句</b>与java用法相同，这里不阐述；</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81c5b72cd6a1d1a3d0ac"><li><b>switch-case-default语句</b>与java用法相同，这里也不阐述；</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1269995fc21f8177b9aad7d21ee82319" data-id="1269995fc21f8177b9aad7d21ee82319"><span><div id="1269995fc21f8177b9aad7d21ee82319" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f8177b9aad7d21ee82319" title="八、JavaScript函数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">八、JavaScript函数</span></span></h2><ul class="notion-list notion-list-disc notion-block-1269995fc21f818dafb8c9930810590b"><li>函数的格式如下：</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f818dafb8c9930810590b"></ul></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f819d962cfabf2f21a15b"><li>javascript的函数返回形式与java不同，它不需要在函数名前特别声明该返回什么类型，也不要加什么void，只需要按正常的在函数内部内容<b>直接返回return加需要返回的内容</b>就行了，没有返回值就不用写吧return；</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1269995fc21f819591b1e69186cf8371" data-id="1269995fc21f819591b1e69186cf8371"><span><div id="1269995fc21f819591b1e69186cf8371" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f819591b1e69186cf8371" title="九、文档对象模型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">九、文档对象模型</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f81c1b5ebcd4c2f2a5304" data-id="1269995fc21f81c1b5ebcd4c2f2a5304"><span><div id="1269995fc21f81c1b5ebcd4c2f2a5304" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81c1b5ebcd4c2f2a5304" title="9.1 含义"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">9.1 含义</span></span></h3><ul class="notion-list notion-list-disc notion-block-1269995fc21f812ba629ebab19b0c36a"><li>HTML的应用程序接口</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8173b638d2cac385eb1f"><li>简称DOM</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8125bdadcd4abea1a36e"><li>将整个HTML页面看作由各种节点层级构成的结构</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f81f89cb8e563cdd0ba1c" data-id="1269995fc21f81f89cb8e563cdd0ba1c"><span><div id="1269995fc21f81f89cb8e563cdd0ba1c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81f89cb8e563cdd0ba1c" title="9.2 在javascript中查找HTML元素有三种方法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">9.2 在javascript中查找HTML元素有三种方法</span></span></h3><ul class="notion-list notion-list-disc notion-block-1269995fc21f815282f2ffbc14c7527e"><li>HTML元素的id名称查找</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f815282f2ffbc14c7527e"><li>其格式为<code class="notion-inline-code">document.getElementById(&quot;id名称&quot;);</code></li><li>如果未找到id名称，则会返回null；如果找到，则以对象形式返回；</li><li><code class="notion-inline-code">//根据id名称获取元素（id为test）对象var test = document.getElementId(&quot;test&quot;);//获取元素内容var result = test.innerHTML;</code></li></ul></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f816e9d93cce5c53b95ff"><li>HTML元素的标签名称查找</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f816e9d93cce5c53b95ff"><li>其格式为<code class="notion-inline-code">document.getElementsByTagName(&quot;标签名称&quot;);</code></li><li>注意这里的Elements是复数形式，其原因在于可能存在多个元素符合要求；这时若找到标签名称，则会以数组的形式返回；而找不到，则返回null；</li><li><code class="notion-inline-code">var test = document.getElementsByTagName(&quot;p&quot;);var result = p[0].innerHTML;</code></li></ul></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81309a16fab76b95c8cd"><li>HTML元素的类名称查找</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f81309a16fab76b95c8cd"><li>其格式为<code class="notion-inline-code">document.getElementsByClassName(&quot;类名称&quot;);</code></li><li>注意这里的Elements是复数形式，其原因在于可能存在多个元素符合要求；这时若找到标签名称，则会以数组的形式返回；而找不到，则返回null；</li><li><code class="notion-inline-code">var test = document.getElementsByClassName(&quot;coral&quot;);var result = test[0].innerHTML;</code></li></ul></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f81f69714d75adbaba507" data-id="1269995fc21f81f69714d75adbaba507"><span><div id="1269995fc21f81f69714d75adbaba507" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81f69714d75adbaba507" title="9.3 DOM HTML"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">9.3 DOM HTML</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f81feba9ef4133e07e295" data-id="1269995fc21f81feba9ef4133e07e295"><span><div id="1269995fc21f81feba9ef4133e07e295" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81feba9ef4133e07e295" title="9.3.1 使用document.write（）方法可以想页面动态输出内容"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">9.3.1 使用document.write（）方法可以想页面动态输出内容</span></span></h4><div class="notion-text notion-block-1269995fc21f8184a1b6e13525e48fe3"> 示例：</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f81c7bdced86dcd13c8c8" data-id="1269995fc21f81c7bdced86dcd13c8c8"><span><div id="1269995fc21f81c7bdced86dcd13c8c8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81c7bdced86dcd13c8c8" title="9.3.2 innerHTML的用法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">9.3.2 innerHTML的用法</span></span></h4><ul class="notion-list notion-list-disc notion-block-1269995fc21f813fa55ef03c5684df1d"><li>innerHTML可以实现用于获取元素内容，也可用于修改元素内容。</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81b7a323ce4da6690cce"><li>其格式为:</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f81b7a323ce4da6690cce"><li>获取：</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f819bbf67d4f5427ac0c8"></ul><li>修改内容：</li><li>修改元素属性：</li></ul></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f81b5995dd1570c3355f2" data-id="1269995fc21f81b5995dd1570c3355f2"><span><div id="1269995fc21f81b5995dd1570c3355f2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f81b5995dd1570c3355f2" title="9.4 DOM CSS"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">9.4 DOM CSS</span></span></h3><ul class="notion-list notion-list-disc notion-block-1269995fc21f816fa592cf545220b7f5"><li>其格式为：</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f816fa592cf545220b7f5"></ul></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f817a93d4edee1139adfd" data-id="1269995fc21f817a93d4edee1139adfd"><span><div id="1269995fc21f817a93d4edee1139adfd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f817a93d4edee1139adfd" title="9.5 DOM事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">9.5 DOM事件</span></span></h3><ul class="notion-list notion-list-disc notion-block-1269995fc21f8100b6e0f9697163933e"><li>含义：可以再HTML页面状态发生变化时执行代码</li></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f81b9a1e5cf215a281492"><li>示例：</li></ul><div class="notion-text notion-block-1269995fc21f81058c81f14aab34462a"> <code class="notion-inline-code">&lt;button onclick = &quot;alert(&#x27;hi&#x27;)&quot;&gt;点我会弹出对话框&lt;/button&gt;button&gt;</code></div><ul class="notion-list notion-list-disc notion-block-1269995fc21f81c9a499cba013ace7f0"><li>HTML常用事件属性</li></ul><table class="notion-simple-table notion-block-1269995fc21f813e8d6bca703dee929c"><tbody><tr class="notion-simple-table-row notion-block-1269995fc21f8193a695e5084b5ce408"><td class="" style="width:345px"><div class="notion-simple-table-cell">事件属性</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">解释</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f817ab508f3c6212409dc"><td class="" style="width:345px"><div class="notion-simple-table-cell">onabort</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">图像加载过程被中断</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f813a9f2dd5f5fe1a2760"><td class="" style="width:345px"><div class="notion-simple-table-cell">onblur</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">元素失去焦点</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81029f62c2155c462766"><td class="" style="width:345px"><div class="notion-simple-table-cell">onchange</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">域的内容被改变</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81c68428ef872ab41869"><td class="" style="width:345px"><div class="notion-simple-table-cell">onclick</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">元素被鼠标左键点击</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8164b6a1cc644fbd6fd9"><td class="" style="width:345px"><div class="notion-simple-table-cell">ondbclick</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">元素被鼠标左键双击</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8181a6e1d23a0d7c7116"><td class="" style="width:345px"><div class="notion-simple-table-cell">onerror</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">加载文档或图像时发送错误</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f815c9498c062419c9cc5"><td class="" style="width:345px"><div class="notion-simple-table-cell">onfocus</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">元素获得焦点</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8174a74ad0e677335002"><td class="" style="width:345px"><div class="notion-simple-table-cell">onkeydown</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">键盘按键被按下</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81dd8cc2c3413ee546fb"><td class="" style="width:345px"><div class="notion-simple-table-cell">onkeypress</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">键盘按键被按下并松开</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81699ed5f6c9db59cb40"><td class="" style="width:345px"><div class="notion-simple-table-cell">onkeyup</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">键盘按键被松开</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f813593d8ed0d157cbb0e"><td class="" style="width:345px"><div class="notion-simple-table-cell">onload</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">页面或图像被加载完成</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f814ca7a7f21fe7fd4225"><td class="" style="width:345px"><div class="notion-simple-table-cell">onmousedown</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">鼠标按钮被按下</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81ba8fbbe39fec60adad"><td class="" style="width:345px"><div class="notion-simple-table-cell">onmousemove</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">鼠标被移动</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81969ad8ca2b7a542c47"><td class="" style="width:345px"><div class="notion-simple-table-cell">onmouseout</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">鼠标从当前元素上移动</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f817a9810cc5601772044"><td class="" style="width:345px"><div class="notion-simple-table-cell">onmouseover</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">鼠标移动到当前元素上</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81139e38f1464699519e"><td class="" style="width:345px"><div class="notion-simple-table-cell">onmouseup</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">鼠标按键被松开</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81b9812cfa2aa510a6e8"><td class="" style="width:345px"><div class="notion-simple-table-cell">onreset</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">重置按钮被点开</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f818dbd7cc348b73324d9"><td class="" style="width:345px"><div class="notion-simple-table-cell">onresize</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">窗口或框架的大小被更改</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81dbbe52e70c15210390"><td class="" style="width:345px"><div class="notion-simple-table-cell">onselect</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">文本被选中</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f8139a71ff5afb82f45d4"><td class="" style="width:345px"><div class="notion-simple-table-cell">onsubmit</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">提交按钮被点击</div></td></tr><tr class="notion-simple-table-row notion-block-1269995fc21f81f599a1e45a65e2f0c6"><td class="" style="width:345px"><div class="notion-simple-table-cell">onunload</div></td><td class="" style="width:345px"><div class="notion-simple-table-cell">退出页面</div></td></tr></tbody></table><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1269995fc21f8107ba9be79507c94521" data-id="1269995fc21f8107ba9be79507c94521"><span><div id="1269995fc21f8107ba9be79507c94521" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f8107ba9be79507c94521" title="9.6 DOM节点"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">9.6 DOM节点</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f815faaade397f09e299b" data-id="1269995fc21f815faaade397f09e299b"><span><div id="1269995fc21f815faaade397f09e299b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f815faaade397f09e299b" title="9.6.1 添加HTML元素"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">9.6.1 添加HTML元素</span></span></h4><ul class="notion-list notion-list-disc notion-block-1269995fc21f81b9bdf2ec336efa0bde"><li>两个步骤：</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f81b9bdf2ec336efa0bde"><li>创建新的元素，其格式为：<code class="notion-inline-code">document.createElement(&quot;元素标签名&quot;);</code></li><li>将其追加到一个已存在的元素中，其格式为：<code class="notion-inline-code">已存在的元素对象.appendChild(需要添加的新元素对象);</code>【已存在的元素对象可由document对象的getElementById(“id名称”)获取】</li><li>其总的格式为：</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f81c88ed0fca8d3b4f5e6"></ul></ul></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1269995fc21f817b8b03e1bf6b23b433" data-id="1269995fc21f817b8b03e1bf6b23b433"><span><div id="1269995fc21f817b8b03e1bf6b23b433" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1269995fc21f817b8b03e1bf6b23b433" title="9.6.2 删除HTML元素"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">9.6.2 删除HTML元素</span></span></h4><ul class="notion-list notion-list-disc notion-block-1269995fc21f818ebc78c6dc792477af"><li>两个步骤：</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f818ebc78c6dc792477af"><li>使用document对象的getElementById(“id名称”)方法获取该元素；</li><li>使用removeChild()方法将其从父元素中删除</li><li>另：若父元素有明确的的id名称，可以使用getElementById()方法获取</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f816285ceed840b45516e"><div class="notion-text notion-block-1269995fc21f81378ce7f04a0a1b52cd">示例：</div></ul><li>另：若父元素没有明确的id名称，则可以使用子元素的parentNode属性获取其父元素对象</li><div class="notion-text notion-block-1269995fc21f818ab1a6c6a503f11db1"> 示例：</div></ul></ul><ul class="notion-list notion-list-disc notion-block-1269995fc21f8180ab11fceeca9a626c"><li>代码如下：</li><ul class="notion-list notion-list-disc notion-block-1269995fc21f8180ab11fceeca9a626c"><div class="notion-text notion-block-1269995fc21f81daa132f8bd03aa30c9">代码测试结果：</div></ul></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1269995fc21f806588c3d09e7baa637b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F9e84bfbd-e0b4-4a90-8dc5-62446f9838bf%2Ff06c7484-2e1b-4cf2-90ef-8c75706ba36f%2FpictureJavaScript%25E5%259F%25BA%25E7%25A1%2580%25E5%259B%25BE8.png?table=block&amp;id=1269995f-c21f-8065-88c3-d09e7baa637b&amp;t=1269995f-c21f-8065-88c3-d09e7baa637b&amp;width=707.96875&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1269995fc21f80628f01c46548510ef0"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GraceUI5.0手册 (5)]]></title>
            <link>https://tangly1024.com/GraceUI手册/grace5-05</link>
            <guid>https://tangly1024.com/GraceUI手册/grace5-05</guid>
            <pubDate>Sun, 19 Apr 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Grace5.0版本手册第五部分]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1279995fc21f80dca1c5eaf2e4b71642"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f81c8a9bde7d909cc4286" data-id="1279995fc21f81c8a9bde7d909cc4286"><span><div id="1279995fc21f81c8a9bde7d909cc4286" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81c8a9bde7d909cc4286" title="头像剪裁"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">头像剪裁</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80af8526dd7437d19c47"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:548.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afe02b03f-4cbb-4194-ad60-4a3ff8c73b88%3Aimage.png?table=block&amp;id=3489995f-c21f-80af-8526-dd7437d19c47&amp;t=3489995f-c21f-80af-8526-dd7437d19c47" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f813a9e76d015715ed833" data-id="1279995fc21f813a9e76d015715ed833"><span><div id="1279995fc21f813a9e76d015715ed833" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f813a9e76d015715ed833" title="相关介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">相关介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81c7b5b4e4fb33257fa1"><div>基于 WeCropper， 相关资料请见 : https://we-plugin.github.io/we-cropper/#/</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81f99169c735b7249731" data-id="1279995fc21f81f99169c735b7249731"><span><div id="1279995fc21f81f99169c735b7249731" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81f99169c735b7249731" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f816e9933ff7212f5783e"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f81ed99e0cf275093f6e9"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81b09977fb0f0b519555"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">不支持</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81869e36e980a4796197" data-id="1279995fc21f81869e36e980a4796197"><span><div id="1279995fc21f81869e36e980a4796197" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81869e36e980a4796197" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-1279995fc21f81469941cc0a5f5150d1">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f817e9be4dc1ee0b2f0e1"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f81368832d1bb9497e1c0" data-id="1279995fc21f81368832d1bb9497e1c0"><span><div id="1279995fc21f81368832d1bb9497e1c0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81368832d1bb9497e1c0" title="证件上传"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">证件上传</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80e4a93dd85969e9a2b6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:564.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3658a4b8-21f1-4842-9624-edee05c1980a%3Aimage.png?table=block&amp;id=3489995f-c21f-80e4-a93d-d85969e9a2b6&amp;t=3489995f-c21f-80e4-a93d-d85969e9a2b6" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81c99f1ada2bb17738b2" data-id="1279995fc21f81c99f1ada2bb17738b2"><span><div id="1279995fc21f81c99f1ada2bb17738b2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81c99f1ada2bb17738b2" title="图片素材"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">图片素材</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f8158865def0185e14040"><div>为了确保图片能够在所有平台打开，请下载图片到本地或者部署到您的云，并替换演示代码中的2个身份证默认图片！
图片下载地址 :
https://img-cdn-tc.dcloud.net.cn/uploads/article/20210107/e53bf48607dcf795ab78e419dc5cf432.png
https://img-cdn-tc.dcloud.net.cn/uploads/article/20210107/dac9c5c703b2a0bcd254a919d0da5632.png</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8197b617db33687bd549" data-id="1279995fc21f8197b617db33687bd549"><span><div id="1279995fc21f8197b617db33687bd549" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8197b617db33687bd549" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f811484caed9b89c15308"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f811ab25ef26230fade06"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f812b8a25d30817236684"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81ad9128f2d639c455c0" data-id="1279995fc21f81ad9128f2d639c455c0"><span><div id="1279995fc21f81ad9128f2d639c455c0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81ad9128f2d639c455c0" title="模板代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板代码</span></span></h4><div class="notion-text notion-block-1279995fc21f8153bb23fce4fbf2f5d4">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f81abb6b1c5b57efad058"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f811ab4a8e75da2544ee6" data-id="1279995fc21f811ab4a8e75da2544ee6"><span><div id="1279995fc21f811ab4a8e75da2544ee6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f811ab4a8e75da2544ee6" title="会员排行模板"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">会员排行模板</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f808fbab2c12ad606f98c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:491.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4c174021-4f8d-4c54-8344-412855c45942%3Aimage.png?table=block&amp;id=3489995f-c21f-808f-bab2-c12ad606f98c&amp;t=3489995f-c21f-808f-bab2-c12ad606f98c" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81a09f62d946dfd01cad" data-id="1279995fc21f81a09f62d946dfd01cad"><span><div id="1279995fc21f81a09f62d946dfd01cad" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81a09f62d946dfd01cad" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81dfa22cf5df7d422667"><div>带有“背景大图”的排行榜界面，请跟据项目实际情况进行修改；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81b3bd7cf0b253c8e0a6" data-id="1279995fc21f81b3bd7cf0b253c8e0a6"><span><div id="1279995fc21f81b3bd7cf0b253c8e0a6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81b3bd7cf0b253c8e0a6" title="页面配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">页面配置</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f813c87a6e9dd21dfc6f5" data-id="1279995fc21f813c87a6e9dd21dfc6f5"><span><div id="1279995fc21f813c87a6e9dd21dfc6f5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f813c87a6e9dd21dfc6f5" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f81ee8435f4a7168ccee5"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f81079d94f585d03fbead"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f811faa93c1404f7ad2f1"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f810d9b37f0df991a43e0" data-id="1279995fc21f810d9b37f0df991a43e0"><span><div id="1279995fc21f810d9b37f0df991a43e0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f810d9b37f0df991a43e0" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-1279995fc21f813aad30c4ab94dbcaf5">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f81e19034f1c0cf2cdb9d"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f8114afb3d975571aa681" data-id="1279995fc21f8114afb3d975571aa681"><span><div id="1279995fc21f8114afb3d975571aa681" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8114afb3d975571aa681" title="手写签名界面"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">手写签名界面</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80c8928bdd2b1174540b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:485.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A25b84923-35a5-40c7-9377-cf9e3db27981%3Aimage.png?table=block&amp;id=3489995f-c21f-80c8-928b-dd2b1174540b&amp;t=3489995f-c21f-80c8-928b-dd2b1174540b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81bb9404f90de7550238" data-id="1279995fc21f81bb9404f90de7550238"><span><div id="1279995fc21f81bb9404f90de7550238" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81bb9404f90de7550238" title="界面介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">界面介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81f6b3bbcbc836adedb9"><div>基于画布 + 手指触屏事件;非组件模式，更自由的应用及二次开发;签名完成自动产生临时文件便于后续开发;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f816e9552c53c5e18fa6a" data-id="1279995fc21f816e9552c53c5e18fa6a"><span><div id="1279995fc21f816e9552c53c5e18fa6a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f816e9552c53c5e18fa6a" title="注意事项"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">注意事项</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f813ca7c4ef66ea586303" data-id="1279995fc21f813ca7c4ef66ea586303"><span><div id="1279995fc21f813ca7c4ef66ea586303" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f813ca7c4ef66ea586303" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f816591cec90e55d41829"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f81d7a6cac1b4f1d9e851"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81d6b84dcdc5c6e2041f"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">不支持</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81a8884adee3fe3ed82d" data-id="1279995fc21f81a8884adee3fe3ed82d"><span><div id="1279995fc21f81a8884adee3fe3ed82d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81a8884adee3fe3ed82d" title="界面源码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">界面源码</span></span></h4><div class="notion-text notion-block-1279995fc21f8104a10ee5c26e77ace3">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f8165a39ae16d5e78bffe"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f8144bd15cffeca8ef6e5" data-id="1279995fc21f8144bd15cffeca8ef6e5"><span><div id="1279995fc21f8144bd15cffeca8ef6e5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8144bd15cffeca8ef6e5" title="商品列表"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">商品列表</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80c6bb63c7d87fcbded4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:488.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A90db0222-7acd-4123-904f-0c6b9dbc95b0%3Aimage.png?table=block&amp;id=3489995f-c21f-80c6-bb63-c7d87fcbded4&amp;t=3489995f-c21f-80c6-bb63-c7d87fcbded4" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81febcf3c544816adee0" data-id="1279995fc21f81febcf3c544816adee0"><span><div id="1279995fc21f81febcf3c544816adee0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81febcf3c544816adee0" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f811ebcb2dd0650aebc9a"><div>gui-product-list 组件用于以列表形式展示商品（一行2列），包含图片、价格、购买人数数据展示；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8152b723efd1b3df4d85" data-id="1279995fc21f8152b723efd1b3df4d85"><span><div id="1279995fc21f8152b723efd1b3df4d85" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8152b723efd1b3df4d85" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f817f8039d82761099c74"><div>gui-product-list : /graceUI/组件目录/gui-product-list</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8107b89aca3cbec85f1f" data-id="1279995fc21f8107b89aca3cbec85f1f"><span><div id="1279995fc21f8107b89aca3cbec85f1f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8107b89aca3cbec85f1f" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f812d8c2fe3b306b0cf1f"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f815c8b6ff680c2e0b584"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f815db19be16003867eb9"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8134afe6cc4fbeb82394" data-id="1279995fc21f8134afe6cc4fbeb82394"><span><div id="1279995fc21f8134afe6cc4fbeb82394" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8134afe6cc4fbeb82394" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f811e9290fda8c4c6367b"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f8189bebbf708697f4616"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f817683f5ffa97499d6a0"><td class="" style="width:120px"><div class="notion-simple-table-cell">products</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">商品数据</div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81d9a9e0d35a81c63099"><td class="" style="width:120px"><div class="notion-simple-table-cell">margin</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">15</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">项目左右间距，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81869069f1899cdbc66a"><td class="" style="width:120px"><div class="notion-simple-table-cell">imgHeight</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">345</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">商品图片高度</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f811db94af6494a0d2a54" data-id="1279995fc21f811db94af6494a0d2a54"><span><div id="1279995fc21f811db94af6494a0d2a54" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f811db94af6494a0d2a54" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f818d8cfde6f0ae0c36d5"><div>gotoInfo(index, item) : 点击商品时触发，携带参数 : 数据索引, 对应商品数据</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81b6b6d9f3ce3a344198" data-id="1279995fc21f81b6b6d9f3ce3a344198"><span><div id="1279995fc21f81b6b6d9f3ce3a344198" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81b6b6d9f3ce3a344198" title="相关说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">相关说明</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81ce8080dda82e71ecc4"><div>组件宽度 = （375 - 间距 * 2）, 产品列表外层不用有左右间距；组件所需的数据格式 :</div><div class="notion-text notion-block-1279995fc21f817d974de51d7c0e7372">[{</div><div class="notion-text notion-block-1279995fc21f8193adc2ed330a60d83c">“name”: “vivo iQOO旗舰新品”,</div><div class="notion-text notion-block-1279995fc21f81159d08f15e58e81219">“img”: “http://gju2.alicdn.com/tps/i3/O1CN0147JEEe23ooz3rBDAX_!!1-juitemmedia.gif”,</div><div class="notion-text notion-block-1279995fc21f8180b690f260a83aadbc">“priceMarket”: “2999”,</div><div class="notion-text notion-block-1279995fc21f816b9216d8d148e96cc5">“price”: “2888”,</div><div class="notion-text notion-block-1279995fc21f8169aa1ec3c090ec2b76">“selledNum”: “3815”</div><div class="notion-text notion-block-1279995fc21f81cf84ffccc627cdbbb1">},…
]</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81629e59eae2d604acd6" data-id="1279995fc21f81629e59eae2d604acd6"><span><div id="1279995fc21f81629e59eae2d604acd6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81629e59eae2d604acd6" title="改进建议"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">改进建议</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81a7b1d9dbc394c80551"><div>如果组件不能满足您的项目要求 ( 或者数据格式与您的后端不一样 )， 请按照下面的步骤改进组件 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-1279995fc21f818a96aec431d8bf5c2e" style="list-style-type:decimal"><li>复制一份 gui-product-list.vue 命名为自己的组件；</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1279995fc21f8143a72afb45a9f052e6" style="list-style-type:decimal"><li>改进组件，添加元素及样式；</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1279995fc21f8189ba29fe8af229d97c" style="list-style-type:decimal"><li>在页面上使用自己的自定义组件；</li></ol></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f817c919bcbee05c6b91e" data-id="1279995fc21f817c919bcbee05c6b91e"><span><div id="1279995fc21f817c919bcbee05c6b91e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f817c919bcbee05c6b91e" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-1279995fc21f811baa2dd3dd98c3ac10">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f816d933dc127f09aed9f"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f81ec87dafb4b4cfb088b" data-id="1279995fc21f81ec87dafb4b4cfb088b"><span><div id="1279995fc21f81ec87dafb4b4cfb088b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81ec87dafb4b4cfb088b" title="商品详情"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">商品详情</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80b6923bc36ff175280e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:488px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A87fa7e26-f99a-4029-9fe1-19e907b9587d%3Aimage.png?table=block&amp;id=3489995f-c21f-80b6-923b-c36ff175280e&amp;t=3489995f-c21f-80b6-923b-c36ff175280e" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81febb58fdd8b29f4bd1" data-id="1279995fc21f81febb58fdd8b29f4bd1"><span><div id="1279995fc21f81febb58fdd8b29f4bd1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81febb58fdd8b29f4bd1" title="模板介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81518005d4f7d1ef8ff1"><div>提供基础的商品详情布局(轮播图、详情介绍内容、分享按钮等);提供了详情和评论切换功能;提供商品购买前的属性、数量相关功能;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8137b666d44afe5e0b3f" data-id="1279995fc21f8137b666d44afe5e0b3f"><span><div id="1279995fc21f8137b666d44afe5e0b3f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8137b666d44afe5e0b3f" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f81b3a68ad197ea723eb9"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f811f8e7bddfbcd23e3c0"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f8175b2b7d09a283a840d"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8157a05dd44fb55bbf03" data-id="1279995fc21f8157a05dd44fb55bbf03"><span><div id="1279995fc21f8157a05dd44fb55bbf03" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8157a05dd44fb55bbf03" title="模板代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板代码</span></span></h4><div class="notion-text notion-block-1279995fc21f81109269fcda6c0a569b">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f81e7abd6cf56056044af"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f81b1be15ecff9d1f831d" data-id="1279995fc21f81b1be15ecff9d1f831d"><span><div id="1279995fc21f81b1be15ecff9d1f831d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81b1be15ecff9d1f831d" title="订单中心模板"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">订单中心模板</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80618808ec94ad95cf17"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:467.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aeba028fe-aa1c-4fd8-a209-bffcee57f315%3Aimage.png?table=block&amp;id=3489995f-c21f-8061-8808-ec94ad95cf17&amp;t=3489995f-c21f-8061-8808-ec94ad95cf17" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81279e03d26870a7ebcb" data-id="1279995fc21f81279e03d26870a7ebcb"><span><div id="1279995fc21f81279e03d26870a7ebcb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81279e03d26870a7ebcb" title="模板介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81879b19f8bd135d0255"><div>实现订单展示功能 ；全屏选项卡数据绑定、切换 ；全屏选项卡的加载更多及下拉刷新；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8144b6abf1c2ddcd105a" data-id="1279995fc21f8144b6abf1c2ddcd105a"><span><div id="1279995fc21f8144b6abf1c2ddcd105a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8144b6abf1c2ddcd105a" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f8161a370cc21561bccb0"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f81c4b609eabda4361596"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f818b9351df1375bffe6a"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81308724f626594142fb" data-id="1279995fc21f81308724f626594142fb"><span><div id="1279995fc21f81308724f626594142fb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81308724f626594142fb" title="模板代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板代码</span></span></h4><div class="notion-text notion-block-1279995fc21f814f890cdf1ba92c710a">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f8113be5be9851db76f90"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f81139e62e71bddc07e3d" data-id="1279995fc21f81139e62e71bddc07e3d"><span><div id="1279995fc21f81139e62e71bddc07e3d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81139e62e71bddc07e3d" title="购物车模板"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">购物车模板</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80db8a4ec5043b6dc883"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:476.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3de619aa-5607-4e5f-85d1-d290179db60b%3Aimage.png?table=block&amp;id=3489995f-c21f-80db-8a4e-c5043b6dc883&amp;t=3489995f-c21f-80db-8a4e-c5043b6dc883" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81b7b11fde4c08d4558f" data-id="1279995fc21f81b7b11fde4c08d4558f"><span><div id="1279995fc21f81b7b11fde4c08d4558f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81b7b11fde4c08d4558f" title="模板介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81138fcffdbea83ab58c"><div>以商铺为基本展示单位;支持勾选形式结算;动态价格计算功能;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8179a6facedc5506d438" data-id="1279995fc21f8179a6facedc5506d438"><span><div id="1279995fc21f8179a6facedc5506d438" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8179a6facedc5506d438" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f81cb92f3c47dce339a7f"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f81f78f27dd7c3de4dc1b"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f812da0e7ef5c6800f509"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8179b1bdc5c22e18babe" data-id="1279995fc21f8179b1bdc5c22e18babe"><span><div id="1279995fc21f8179b1bdc5c22e18babe" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8179b1bdc5c22e18babe" title="模板代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板代码</span></span></h4><div class="notion-text notion-block-1279995fc21f81d6a6b2ef5b1531e49c">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f8158b631c505e0911194"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f81f8b301c8fcfcd3f68d" data-id="1279995fc21f81f8b301c8fcfcd3f68d"><span><div id="1279995fc21f81f8b301c8fcfcd3f68d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81f8b301c8fcfcd3f68d" title="排序与筛选"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">排序与筛选</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80559c5adb3da9f16bc4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:486.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa5d835af-a5c8-4d3c-811d-f246b3a75734%3Aimage.png?table=block&amp;id=3489995f-c21f-8055-9c5a-db3da9f16bc4&amp;t=3489995f-c21f-8055-9c5a-db3da9f16bc4" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f816c9ca6ee139c28c675" data-id="1279995fc21f816c9ca6ee139c28c675"><span><div id="1279995fc21f816c9ca6ee139c28c675" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f816c9ca6ee139c28c675" title="模板介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81cdbdfdd3a3ae86777d"><div>吸顶式的多条件筛选、排序等功能，常用于商城列表顶部。 已经完成基础布局及逻辑，请根据项目需求自行改进;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81bf9b16eb4d2217a601" data-id="1279995fc21f81bf9b16eb4d2217a601"><span><div id="1279995fc21f81bf9b16eb4d2217a601" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81bf9b16eb4d2217a601" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f8188b3efffcf140abbca"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f81cf95d9cf1e60ad2802"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81c89648dde6714dad3c"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f817193f1cf66b4758986" data-id="1279995fc21f817193f1cf66b4758986"><span><div id="1279995fc21f817193f1cf66b4758986" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f817193f1cf66b4758986" title="模板代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板代码</span></span></h4><div class="notion-text notion-block-1279995fc21f814eb7dcf8ba479bd7c3">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f81578091c58e5fc8f65d"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f81cc8fabd60e4c406de0" data-id="1279995fc21f81cc8fabd60e4c406de0"><span><div id="1279995fc21f81cc8fabd60e4c406de0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81cc8fabd60e4c406de0" title="地址列表"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">地址列表</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80439605f71e5ce0a2dd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:480.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A78857596-2b16-4d03-85d7-1017f51c69c7%3Aimage.png?table=block&amp;id=3489995f-c21f-8043-9605-f71e5ce0a2dd&amp;t=3489995f-c21f-8043-9605-f71e5ce0a2dd" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81948ff7d1ca07fab911" data-id="1279995fc21f81948ff7d1ca07fab911"><span><div id="1279995fc21f81948ff7d1ca07fab911" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81948ff7d1ca07fab911" title="模板介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81e7a918ec7249937da5"><div>基于列表布局实现常用地址布局，请跟据项目需要自行改进；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81aebbc0dee3be34f2e2" data-id="1279995fc21f81aebbc0dee3be34f2e2"><span><div id="1279995fc21f81aebbc0dee3be34f2e2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81aebbc0dee3be34f2e2" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f8162ad85c01a4a4b5133"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f81ad8a9bce406e7b6b25"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f813ca664fc99f4cd0db4"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81fbafa6c455926c281f" data-id="1279995fc21f81fbafa6c455926c281f"><span><div id="1279995fc21f81fbafa6c455926c281f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81fbafa6c455926c281f" title="模板代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板代码</span></span></h4><div class="notion-text notion-block-1279995fc21f812eae5ef100c855cad9">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f81c4b79dd2916b1aba77"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f81f9aab0f997de571133" data-id="1279995fc21f81f9aab0f997de571133"><span><div id="1279995fc21f81f9aab0f997de571133" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81f9aab0f997de571133" title="添加地址"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">添加地址</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80c39b75e8a6167442fb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:451.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4e9d0251-f03e-4d38-8acd-5cd48a5be2a2%3Aimage.png?table=block&amp;id=3489995f-c21f-80c3-9b75-e8a6167442fb&amp;t=3489995f-c21f-80c3-9b75-e8a6167442fb" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f813dbbb7e83510ae777e" data-id="1279995fc21f813dbbb7e83510ae777e"><span><div id="1279995fc21f813dbbb7e83510ae777e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f813dbbb7e83510ae777e" title="模板介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81c4b3e1da128ac7ff9f"><div>完成页面布局及表单元素布局工作；完成表单验证及表单数据收集工作；请跟据自己的项目需要进行进一步开发；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81eea680d55dbdab5d74" data-id="1279995fc21f81eea680d55dbdab5d74"><span><div id="1279995fc21f81eea680d55dbdab5d74" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81eea680d55dbdab5d74" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f81e99b21f7dcc04175ff"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f817783dce45a006883b0"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f817d8f1accde6411bfda"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f816885c6c75d5e4a5fb7" data-id="1279995fc21f816885c6c75d5e4a5fb7"><span><div id="1279995fc21f816885c6c75d5e4a5fb7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f816885c6c75d5e4a5fb7" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-1279995fc21f818a8db9d31fd727daa6">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f81cda2b1d87ed6e889a5"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f8161ad87f5f51e6b48a4" data-id="1279995fc21f8161ad87f5f51e6b48a4"><span><div id="1279995fc21f8161ad87f5f51e6b48a4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8161ad87f5f51e6b48a4" title="抽奖模板"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">抽奖模板</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8018a5c7f848604af204"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:472.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab3a2015e-f89a-40db-a19a-ae01751c4b25%3Aimage.png?table=block&amp;id=3489995f-c21f-8018-a5c7-f848604af204&amp;t=3489995f-c21f-8018-a5c7-f848604af204" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8114b267fe0c9c97285a" data-id="1279995fc21f8114b267fe0c9c97285a"><span><div id="1279995fc21f8114b267fe0c9c97285a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8114b267fe0c9c97285a" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f819a8172ec59cec6055a"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f8162bbe1fc1a3228606e"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81c58680d00636cb0b08"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f818bb079e2d722b0da0a" data-id="1279995fc21f818bb079e2d722b0da0a"><span><div id="1279995fc21f818bb079e2d722b0da0a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f818bb079e2d722b0da0a" title="模板代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板代码</span></span></h4><div class="notion-text notion-block-1279995fc21f81c0bbc8c088a6e5fda6">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f81ea9de2d176d664522e"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f81f58199d4d4bdecf4f4" data-id="1279995fc21f81f58199d4d4bdecf4f4"><span><div id="1279995fc21f81f58199d4d4bdecf4f4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81f58199d4d4bdecf4f4" title="优惠券组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">优惠券组件</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80db8ce5e5121526c319"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:471.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9df6fea5-5488-4901-9180-1c8abccafa4a%3Aimage.png?table=block&amp;id=3489995f-c21f-80db-8ce5-e5121526c319&amp;t=3489995f-c21f-80db-8ce5-e5121526c319" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81fe9ed2e557d21076c5" data-id="1279995fc21f81fe9ed2e557d21076c5"><span><div id="1279995fc21f81fe9ed2e557d21076c5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81fe9ed2e557d21076c5" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81fcbe06e6cb90b5346d"><div>通用优惠券列表展示布局组件，您可以跟据项目实际需要复制本组件命名为自己的然后改进调用。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81db9c52e66e7cbb4f89" data-id="1279995fc21f81db9c52e66e7cbb4f89"><span><div id="1279995fc21f81db9c52e66e7cbb4f89" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81db9c52e66e7cbb4f89" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f817cba8ce2c1022c34eb"><div>gui-coupons : /graceUI/组件目录/gui-coupons</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81f39c20d4c758f4ec2d" data-id="1279995fc21f81f39c20d4c758f4ec2d"><span><div id="1279995fc21f81f39c20d4c758f4ec2d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81f39c20d4c758f4ec2d" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f818eb726db3467ae0ffb"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f81808a99fee089fff3c0"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81c1bb7ffa1669c3d52d"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81eea7a3c6d29f63726b" data-id="1279995fc21f81eea7a3c6d29f63726b"><span><div id="1279995fc21f81eea7a3c6d29f63726b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81eea7a3c6d29f63726b" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f8143a753e283567ac6b6"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f810b966fc9816830bb9f"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f810f9081edae2a31823c"><td class="" style="width:120px"><div class="notion-simple-table-cell">coupon</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Object</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">{}</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">对象形式的单个优惠券数据 数据格式见演示代码</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81b2aa8ce40718730e9a" data-id="1279995fc21f81b2aa8ce40718730e9a"><span><div id="1279995fc21f81b2aa8ce40718730e9a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81b2aa8ce40718730e9a" title="页面背景颜色设置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">页面背景颜色设置</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81a592c5df609f12266d" data-id="1279995fc21f81a592c5df609f12266d"><span><div id="1279995fc21f81a592c5df609f12266d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81a592c5df609f12266d" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-1279995fc21f8167808aca5b61bace47">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f81f0bde2ebab04cc37d9"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f81b7a771cc56c1a772be" data-id="1279995fc21f81b7a771cc56c1a772be"><span><div id="1279995fc21f81b7a771cc56c1a772be" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81b7a771cc56c1a772be" title="即时通讯消息列表组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">即时通讯消息列表组件</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f806a9a9dc73979f281a9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:478.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7ae457f3-ed72-47c1-ad00-7ec007c532c1%3Aimage.png?table=block&amp;id=3489995f-c21f-806a-9a9d-c73979f281a9&amp;t=3489995f-c21f-806a-9a9d-c73979f281a9" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8137a500ed3597221d05" data-id="1279995fc21f8137a500ed3597221d05"><span><div id="1279995fc21f8137a500ed3597221d05" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8137a500ed3597221d05" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81c982abe3a5603d7610"><div>gui-im-message 消息展示组件用于展示及时通讯消息，支持文本、图片、语音三种格式，带有图片预览，语音播放等功能；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8148ac59ec8f85be612c" data-id="1279995fc21f8148ac59ec8f85be612c"><span><div id="1279995fc21f8148ac59ec8f85be612c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8148ac59ec8f85be612c" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81c9a32ce00fd3066c51"><div>gui-im-message : /graceUI/组件目录/gui-im-message</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81cabb62ffae86b17271" data-id="1279995fc21f81cabb62ffae86b17271"><span><div id="1279995fc21f81cabb62ffae86b17271" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81cabb62ffae86b17271" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f8109ab80f384854251b7"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f81749642c578d4258e2a"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81c7a1e1d9846adfc1a7"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">不支持，请使用vue实现</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8154be2ada2a32ed3aed" data-id="1279995fc21f8154be2ada2a32ed3aed"><span><div id="1279995fc21f8154be2ada2a32ed3aed" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8154be2ada2a32ed3aed" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f81ef83a9fa0d6e4241bd"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f816d8a45c3a8e5650995"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81338ff3cf74a65957e8"><td class="" style="width:120px"><div class="notion-simple-table-cell">msgs</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">消息数据，格式见下面的说明</div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81c986e9d3f3a814c60b"><td class="" style="width:120px"><div class="notion-simple-table-cell">userid</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">用户唯一性识别id， 当用户id与消息数据中的uindex相等时 消息右侧展示</div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f810e89d6c18352e299ca"><td class="" style="width:120px"><div class="notion-simple-table-cell">group</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">消息分组，过滤本组消息</div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81c6b7a0e598837c837e"><td class="" style="width:120px"><div class="notion-simple-table-cell">background</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#F7FBFE</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81a38de7f0f127faec65"><td class="" style="width:120px"><div class="notion-simple-table-cell">unameStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">line-height:28rpx; height:28rpx; font-size:26rpx; color:#666666;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">用户昵称样式</div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f816f934df263441c00fa"><td class="" style="width:120px"><div class="notion-simple-table-cell">txtContentStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">line-height:38rpx; font-size:30rpx; color:#2B2E3D;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文本消息样式</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f817e9fc5ed7cf3846150" data-id="1279995fc21f817e9fc5ed7cf3846150"><span><div id="1279995fc21f817e9fc5ed7cf3846150" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f817e9fc5ed7cf3846150" title="消息格式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">消息格式</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f810a90bae5862294c237" data-id="1279995fc21f810a90bae5862294c237"><span><div id="1279995fc21f810a90bae5862294c237" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f810a90bae5862294c237" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-1279995fc21f81869817e38434935f3f">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f813a8346c6ab0e415909"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f81b4b2f2ce764b748e1c" data-id="1279995fc21f81b4b2f2ce764b748e1c"><span><div id="1279995fc21f81b4b2f2ce764b748e1c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81b4b2f2ce764b748e1c" title="即时通讯消息输入组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">即时通讯消息输入组件</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8059aac3f3d1fe79b91c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:477.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6994ab7e-b0c2-4834-8f8a-8857ed93049c%3Aimage.png?table=block&amp;id=3489995f-c21f-8059-aac3-f3d1fe79b91c&amp;t=3489995f-c21f-8059-aac3-f3d1fe79b91c" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8170b34ced1a60b70bf2" data-id="1279995fc21f8170b34ced1a60b70bf2"><span><div id="1279995fc21f8170b34ced1a60b70bf2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8170b34ced1a60b70bf2" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81bbb574d69d271247e5"><div>gui-im-input 用于即时通讯的消息输入环节，提供了文本提交、图片选择、语音录制等功能；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8174800ef27492025160" data-id="1279995fc21f8174800ef27492025160"><span><div id="1279995fc21f8174800ef27492025160" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8174800ef27492025160" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f814bb0cec72df36d2ae7"><div>gui-im-input : /graceUI/组件目录/gui-im-input</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81a4bc0bef155a7a680a" data-id="1279995fc21f81a4bc0bef155a7a680a"><span><div id="1279995fc21f81a4bc0bef155a7a680a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81a4bc0bef155a7a680a" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f8154b200d98e53e63c7c"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f81dea536effb8b80e7ac"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f8114b9b9e248c679e786"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔ 不支持录音功能</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">不支持</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81d49515ff9f5d3c1a60" data-id="1279995fc21f81d49515ff9f5d3c1a60"><span><div id="1279995fc21f81d49515ff9f5d3c1a60" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81d49515ff9f5d3c1a60" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f817fb684f6e9cf466027" data-id="1279995fc21f817fb684f6e9cf466027"><span><div id="1279995fc21f817fb684f6e9cf466027" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f817fb684f6e9cf466027" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-1279995fc21f81229c5ad0df97e2f8b2">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f813bada7d0e3d1f51f37"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f8116b9dcf2263974a6ec" data-id="1279995fc21f8116b9dcf2263974a6ec"><span><div id="1279995fc21f8116b9dcf2263974a6ec" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8116b9dcf2263974a6ec" title="消息列表"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">消息列表</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80e19982e3b6c91f5a06"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:492.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A23dc1f91-d442-497e-9bb6-0526f4f99412%3Aimage.png?table=block&amp;id=3489995f-c21f-80e1-9982-e3b6c91f5a06&amp;t=3489995f-c21f-80e1-9982-e3b6c91f5a06" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f811da4c3c2576e8c8c58" data-id="1279995fc21f811da4c3c2576e8c8c58"><span><div id="1279995fc21f811da4c3c2576e8c8c58" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f811da4c3c2576e8c8c58" title="模板介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f81fbb23af4028fea8327"><div>基于滑动列表组件实现的即时通讯消息列表功能。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81f7ab6dfa231c732518" data-id="1279995fc21f81f7ab6dfa231c732518"><span><div id="1279995fc21f81f7ab6dfa231c732518" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81f7ab6dfa231c732518" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f81018416d3a1b6284805"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f81b8a36cda1f44cb94c1"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81d09423f21df2593a51"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8188b656c257616be12e" data-id="1279995fc21f8188b656c257616be12e"><span><div id="1279995fc21f8188b656c257616be12e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8188b656c257616be12e" title="皮肤样式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">皮肤样式</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81449d00ded54d96e307" data-id="1279995fc21f81449d00ded54d96e307"><span><div id="1279995fc21f81449d00ded54d96e307" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81449d00ded54d96e307" title="注意事项"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">注意事项</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8113924cffb04b2124dc" data-id="1279995fc21f8113924cffb04b2124dc"><span><div id="1279995fc21f8113924cffb04b2124dc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8113924cffb04b2124dc" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-1279995fc21f815f93ddcf7ef3b32dce">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f81d6a7e4f24fef7fb782"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f818996b4c44bc0d1624c" data-id="1279995fc21f818996b4c44bc0d1624c"><span><div id="1279995fc21f818996b4c44bc0d1624c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f818996b4c44bc0d1624c" title="二维码生成"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二维码生成</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80158a7df76c7c0468e0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:490.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad47de6dd-c638-4134-a6a1-1f32e852be82%3Aimage.png?table=block&amp;id=3489995f-c21f-8015-8a7d-f76c7c0468e0&amp;t=3489995f-c21f-8015-8a7d-f76c7c0468e0" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f810794b4e35f2743e629" data-id="1279995fc21f810794b4e35f2743e629"><span><div id="1279995fc21f810794b4e35f2743e629" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f810794b4e35f2743e629" title="模板介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f8101a400fc6bce3b96c6"><div>基于 QRCode 的二维码创建模板，相关配置见代码注释。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f811e925ec92725a3cbd2" data-id="1279995fc21f811e925ec92725a3cbd2"><span><div id="1279995fc21f811e925ec92725a3cbd2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f811e925ec92725a3cbd2" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f8194b334efba96d1b800"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f81788e7fedfdbe561fbb"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81c7a789c389d5ab22df"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">不支持</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81ae8db9f3d5f18d1028" data-id="1279995fc21f81ae8db9f3d5f18d1028"><span><div id="1279995fc21f81ae8db9f3d5f18d1028" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81ae8db9f3d5f18d1028" title="模板代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板代码</span></span></h4><div class="notion-text notion-block-1279995fc21f81428211efcac6fe92ce">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f81d69c49fa0daef89e5b"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f81b2991ceff4ecf1b6c5" data-id="1279995fc21f81b2991ceff4ecf1b6c5"><span><div id="1279995fc21f81b2991ceff4ecf1b6c5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81b2991ceff4ecf1b6c5" title="条形码生成"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">条形码生成</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f802fae91d73d5ad9f78a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:486.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac63863f3-7552-4d3e-852b-bf815db686a1%3Aimage.png?table=block&amp;id=3489995f-c21f-802f-ae91-d73d5ad9f78a&amp;t=3489995f-c21f-802f-ae91-d73d5ad9f78a" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8125b196e1b09a986274" data-id="1279995fc21f8125b196e1b09a986274"><span><div id="1279995fc21f8125b196e1b09a986274" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8125b196e1b09a986274" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f8139a8d6df334fb580d7"><div>利用 barcode.js 实现的条形码生成模板，详见模板代码</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8122ab34d3ef8cb4cdbd" data-id="1279995fc21f8122ab34d3ef8cb4cdbd"><span><div id="1279995fc21f8122ab34d3ef8cb4cdbd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8122ab34d3ef8cb4cdbd" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f81358591fc63d08ffbc1"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f818fbf56d2d012cd914a"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f812ba663e41189704047"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">不支持</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81fe8c3fefeaaf040b0d" data-id="1279995fc21f81fe8c3fefeaaf040b0d"><span><div id="1279995fc21f81fe8c3fefeaaf040b0d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81fe8c3fefeaaf040b0d" title="模板代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板代码</span></span></h4><div class="notion-text notion-block-1279995fc21f81429b76cfb7553e70a5">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f8123b41fc177b2e13a8a"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1279995fc21f8161b4e8c9822ccb13db" data-id="1279995fc21f8161b4e8c9822ccb13db"><span><div id="1279995fc21f8161b4e8c9822ccb13db" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8161b4e8c9822ccb13db" title="海报模板"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">海报模板</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f809680c5edf6a0df225a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:483.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2410875f-1318-4251-bf1c-259be097166c%3Aimage.png?table=block&amp;id=3489995f-c21f-8096-80c5-edf6a0df225a&amp;t=3489995f-c21f-8096-80c5-edf6a0df225a" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f815695c1d4784246897c" data-id="1279995fc21f815695c1d4784246897c"><span><div id="1279995fc21f815695c1d4784246897c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f815695c1d4784246897c" title="模板流程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板流程</span></span></h4><blockquote class="notion-quote notion-block-1279995fc21f8145910ce88ad5b4d442"><div>实现画布初始化算法；使用 drawText 文本绘制函数进行文本绘制, 参数见代码注释；使用 drawBGIMG 图片绘制函数，注意 : 图片绘制会先进行图片的下载，这样就会产生一个异步行为，请在下载成功后完成后续的图片绘制操作及其他后续步骤操作;画布转图片 ( 代码演示了在完成画布绘制后如何将画布转换为一个图片 ) ;</div><div class="notion-text notion-block-1279995fc21f8106b1dffa026621f4da">05 长按保存 ( 有了图片，就可以实现长按图片并保存到相册的功能 )，至此整个流程完毕。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f8199bf8af14ceac81c2f" data-id="1279995fc21f8199bf8af14ceac81c2f"><span><div id="1279995fc21f8199bf8af14ceac81c2f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f8199bf8af14ceac81c2f" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-1279995fc21f817cabfbfd17ae811798"><tbody><tr class="notion-simple-table-row notion-block-1279995fc21f81568f4ef7fa0375b2d1"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-1279995fc21f81acb4f5f8944db530e2"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">不支持</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1279995fc21f81419c92d1ccdf70fefa" data-id="1279995fc21f81419c92d1ccdf70fefa"><span><div id="1279995fc21f81419c92d1ccdf70fefa" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1279995fc21f81419c92d1ccdf70fefa" title="模板代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板代码</span></span></h4><div class="notion-text notion-block-1279995fc21f81afbf47c9c33679ea22">UNI 普通版本</div><div class="notion-blank notion-block-1279995fc21f8157b5add59206f171b4"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GraceUI5.0手册 (4)]]></title>
            <link>https://tangly1024.com/GraceUI手册/grace5-04</link>
            <guid>https://tangly1024.com/GraceUI手册/grace5-04</guid>
            <pubDate>Sun, 19 Apr 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Grace5.0版本手册第四部分]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-3479995fc21f8017a109cf6da5d496f6"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80b1a87be972958cc1e1" data-id="3479995fc21f80b1a87be972958cc1e1"><span><div id="3479995fc21f80b1a87be972958cc1e1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b1a87be972958cc1e1" title="动态表单元素"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">动态表单元素</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8078ac0cd088b5237689"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:556.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A78ca6cc8-87f5-485d-85b4-5f5ac495e4a8%3Aimage.png?table=block&amp;id=3489995f-c21f-8078-ac0c-d088b5237689&amp;t=3489995f-c21f-8078-ac0c-d088b5237689" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8031b348cf8f2628870e" data-id="3479995fc21f8031b348cf8f2628870e"><span><div id="3479995fc21f8031b348cf8f2628870e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8031b348cf8f2628870e" title="相关说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">相关说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80ef9a48d7694f0d96c6"><div>在日常开发中，经常需要使用动态表单元素来收集、提交表单数据。我们为您写好了基础代码，您可以在其基础上做出更丰富、更复杂的动态表单~
原理 : 利用 v-model 动态记录数据进行后续操作及提交;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8093b1a9db1583194247" data-id="3479995fc21f8093b1a9db1583194247"><span><div id="3479995fc21f8093b1a9db1583194247" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8093b1a9db1583194247" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f801d984cd9de8f498db5"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80fbb59cca904d3120c8"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80e7b27dd4c36d7070ea"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8094a608f18fd2c4ae56" data-id="3479995fc21f8094a608f18fd2c4ae56"><span><div id="3479995fc21f8094a608f18fd2c4ae56" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8094a608f18fd2c4ae56" title="完整代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">完整代码</span></span></h4><div class="notion-text notion-block-3479995fc21f806990d1d6a242993025">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80c9a074e2687d5788a4"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80ea964bdfad3a0bd8e6" data-id="3479995fc21f80ea964bdfad3a0bd8e6"><span><div id="3479995fc21f80ea964bdfad3a0bd8e6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ea964bdfad3a0bd8e6" title="分步提交"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">分步提交</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80e39151d6127501fa3e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:555.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad7d3f114-de70-4698-b379-df24d6c3cba4%3Aimage.png?table=block&amp;id=3489995f-c21f-80e3-9151-d6127501fa3e&amp;t=3489995f-c21f-80e3-9151-d6127501fa3e" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f18124c9eea4c49f59" data-id="3479995fc21f80f18124c9eea4c49f59"><span><div id="3479995fc21f80f18124c9eea4c49f59" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f18124c9eea4c49f59" title="相关说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">相关说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f805c9e4df197e399f280"><div>当表单元素数量较大时，我可以将表单进行分步处理，GraceUI 为您准备好了这样的架构，您可以在此基础上根据自己的项目情况快速实现表单的分步及提交~使用 v-model 记录输入数据，数据统一记录在 formData 变量内，提交和校验都使用此数据;在步骤切换时可以利用 formData 变量进行数据验证;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f801bade7e6952fdf219a" data-id="3479995fc21f801bade7e6952fdf219a"><span><div id="3479995fc21f801bade7e6952fdf219a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f801bade7e6952fdf219a" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80979b64d2519a92603e"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80409c78f489bf14aa55"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8003a6b9c1b6c15634ae"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8014a443e8872705faa9" data-id="3479995fc21f8014a443e8872705faa9"><span><div id="3479995fc21f8014a443e8872705faa9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8014a443e8872705faa9" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f807da2cedefd91e12f31">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8036bc63c1c1c10aedff"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80668724e3e4f488d4e2" data-id="3479995fc21f80668724e3e4f488d4e2"><span><div id="3479995fc21f80668724e3e4f488d4e2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80668724e3e4f488d4e2" title="步进器"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">步进器</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8003b2dac2a6993c4148"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:538.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A25024c98-c891-4293-b7a5-d9f6a1a62b29%3Aimage.png?table=block&amp;id=3489995f-c21f-8003-b2da-c2a6993c4148&amp;t=3489995f-c21f-8003-b2da-c2a6993c4148" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8034934ceeff59e83e8c" data-id="3479995fc21f8034934ceeff59e83e8c"><span><div id="3479995fc21f8034934ceeff59e83e8c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8034934ceeff59e83e8c" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f807ba5cee4499f02164c"><div>gui-step-box : /graceUI/组件目录/gui-step-box</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f800881b8cee0384f38ea" data-id="3479995fc21f800881b8cee0384f38ea"><span><div id="3479995fc21f800881b8cee0384f38ea" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f800881b8cee0384f38ea" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80618feded6c7c6b56c2"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80e49615da5934d1f3e1"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8013aecad809138e9b03"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80338fd6f8e003f9af9d" data-id="3479995fc21f80338fd6f8e003f9af9d"><span><div id="3479995fc21f80338fd6f8e003f9af9d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80338fd6f8e003f9af9d" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f802c9d96e81a4759edbb"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80669f5ff8cf14825580"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80ed93e9d267c369bd00"><td class="" style="width:120px"><div class="notion-simple-table-cell">width</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">200rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件宽度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f802ba0f5d8ceb50393ab"><td class="" style="width:120px"><div class="notion-simple-table-cell">value</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">默认值</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80ca8b37d8e0dfb6d13b"><td class="" style="width:120px"><div class="notion-simple-table-cell">step</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">步进值</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8019932edea976d3a14a"><td class="" style="width:120px"><div class="notion-simple-table-cell">maxNum</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">9999</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">最大值</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80ea96e0c9c4feee75fc"><td class="" style="width:120px"><div class="notion-simple-table-cell">minNum</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">最小值</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80e195a9d1a1a249bfff"><td class="" style="width:120px"><div class="notion-simple-table-cell">buttonStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">width:66rpx; font-size:38rpx; color:rgba(69, 90, 100, 0.6);</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">加减按钮样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80028308e611dce22e7d"><td class="" style="width:120px"><div class="notion-simple-table-cell">inputStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">line-height:58rpx; height:58rpx; font-size:26rpx; color:#2B2E3D; background-color:#F6F7F8; border-radius:8rpx;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">输入框样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803f9d9bca651909bf19"><td class="" style="width:120px"><div class="notion-simple-table-cell">disabled</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">false</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">输入框是否禁用</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8016b4c5d850539fdb2e"><td class="" style="width:120px"><div class="notion-simple-table-cell">index</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件索引值，通过 change 事件携带回来</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f805c9b11f40fb2a00110"><td class="" style="width:120px"><div class="notion-simple-table-cell">datas</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">自定义携带数据，通过 change 事件携带回来</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807ca925c6ef10e8af9e"><td class="" style="width:120px"><div class="notion-simple-table-cell">decimal 2021.03.09 新增</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">2</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">小数位数截取，默认2位，请跟据实际情况设置</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8071afe6c15fcc24f735" data-id="3479995fc21f8071afe6c15fcc24f735"><span><div id="3479995fc21f8071afe6c15fcc24f735" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8071afe6c15fcc24f735" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80eeaf9ddec0624722be">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80dab750f3c628125329"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8080b03dd1ad68e47182" data-id="3479995fc21f8080b03dd1ad68e47182"><span><div id="3479995fc21f8080b03dd1ad68e47182" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8080b03dd1ad68e47182" title="数字键盘"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">数字键盘</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8020b066e258aafb3fab"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:532.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af77147cf-d04b-4eec-9254-e63f4444ee98%3Aimage.png?table=block&amp;id=3489995f-c21f-8020-b066-e258aafb3fab&amp;t=3489995f-c21f-8020-b066-e258aafb3fab" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f802993d3d55b0bc87cd2" data-id="3479995fc21f802993d3d55b0bc87cd2"><span><div id="3479995fc21f802993d3d55b0bc87cd2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802993d3d55b0bc87cd2" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80998d37dd1695a4e7fc"><div>gui-number-keyboard : /graceUI/组件目录/gui-number-keyboard</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803495ddf9965a1c391d" data-id="3479995fc21f803495ddf9965a1c391d"><span><div id="3479995fc21f803495ddf9965a1c391d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803495ddf9965a1c391d" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8091bd84db82ff45a0ab"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8049b949fbbf119ca2c7"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f808b8e87ebe97a497dda"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f8b480edd0954b65f2" data-id="3479995fc21f80f8b480edd0954b65f2"><span><div id="3479995fc21f80f8b480edd0954b65f2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f8b480edd0954b65f2" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80b0ad2af9fccea37bdd"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80aba0b1dd8a83388bf3"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801b8be4f0f0456b9f57"><td class="" style="width:120px"><div class="notion-simple-table-cell">doneBtnName</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">完成</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">完成按钮文本</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80e89d41da6d8b7c1779"><td class="" style="width:120px"><div class="notion-simple-table-cell">isPoint</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示小数点</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80df8bcecd5ed57aec36"><td class="" style="width:120px"><div class="notion-simple-table-cell">showInputRes</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否同步输入结果</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8028ba38c9d610e7eb1d"><td class="" style="width:120px"><div class="notion-simple-table-cell">value</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">’’</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">默认值</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a6acc3f9e08fa2bab4"><td class="" style="width:120px"><div class="notion-simple-table-cell">resultColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#2B2E3D</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">数值展示文本颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803d8bf0dc245687d8dc"><td class="" style="width:120px"><div class="notion-simple-table-cell">resultSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">32rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">数值展示文本大小</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c68b0fc1ff422cb0ee"><td class="" style="width:120px"><div class="notion-simple-table-cell">canCloseByShade</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">false</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">点击遮罩层(空白处)是否会关闭组件</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8067bbf0e4e4b8be8fb6"><td class="" style="width:120px"><div class="notion-simple-table-cell">tapBgColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#008AFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">点击时按钮背景色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809a938bea0e01eeaea8"><td class="" style="width:120px"><div class="notion-simple-table-cell">maxPointNumber</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">-1</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">小数点最大个数 2024.09.02 新增</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f808d8736fd03b58311aa" data-id="3479995fc21f808d8736fd03b58311aa"><span><div id="3479995fc21f808d8736fd03b58311aa" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f808d8736fd03b58311aa" title="组件函数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件函数</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8026b57ac0a4a0110658" data-id="3479995fc21f8026b57ac0a4a0110658"><span><div id="3479995fc21f8026b57ac0a4a0110658" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8026b57ac0a4a0110658" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f809c8f44db51cc07d1e5" data-id="3479995fc21f809c8f44db51cc07d1e5"><span><div id="3479995fc21f809c8f44db51cc07d1e5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f809c8f44db51cc07d1e5" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f800e9a09de6de670f6e0">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80fa807dfdc708512bcd"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8070aa27dab6afd1795f" data-id="3479995fc21f8070aa27dab6afd1795f"><span><div id="3479995fc21f8070aa27dab6afd1795f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8070aa27dab6afd1795f" title="车牌键盘"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">车牌键盘</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8068b1ccc038dfbf210e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:538.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A60140f57-ebd2-4ebb-8f7c-7ea82410f359%3Aimage.png?table=block&amp;id=3489995f-c21f-8068-b1cc-c038dfbf210e&amp;t=3489995f-c21f-8068-b1cc-c038dfbf210e" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80df9948d9aca465c1f6" data-id="3479995fc21f80df9948d9aca465c1f6"><span><div id="3479995fc21f80df9948d9aca465c1f6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80df9948d9aca465c1f6" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80118933c016a05c21c1"><div>车牌号码专用输入键盘，兼顾新能源车牌号码。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8015ac14d23d6f64a858" data-id="3479995fc21f8015ac14d23d6f64a858"><span><div id="3479995fc21f8015ac14d23d6f64a858" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8015ac14d23d6f64a858" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f801e9e1de2dc6183f9a1"><div>gui-car-number : /graceUI/组件目录/gui-car-number</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8094ab80e9b1b9c14a44" data-id="3479995fc21f8094ab80e9b1b9c14a44"><span><div id="3479995fc21f8094ab80e9b1b9c14a44" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8094ab80e9b1b9c14a44" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f803f85f0ff67ca811af4"><div>@confirm 客户点击确定按钮时触发，携带参数 : 车牌号码</div><div class="notion-text notion-block-3479995fc21f80059d72d381304cede8">2022.01.10 新增事件
@open 键盘打开
@close 键盘关闭</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f807d9912edab0d7a8663" data-id="3479995fc21f807d9912edab0d7a8663"><span><div id="3479995fc21f807d9912edab0d7a8663" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807d9912edab0d7a8663" title="组件函数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件函数</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8045945ff4e595ed44c6"><div>setType(carType) : 切换类型， 0 - 普通 1 - 新能源
setVal(carNumber) : 设置默认车牌号</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80a785e1d76fbc875b9a" data-id="3479995fc21f80a785e1d76fbc875b9a"><span><div id="3479995fc21f80a785e1d76fbc875b9a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80a785e1d76fbc875b9a" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80158e92e2c8c7b9510d"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8084bf0bf79bf380140a"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a19959c300e0664fcf"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8080bd04c3a4d8284339" data-id="3479995fc21f8080bd04c3a4d8284339"><span><div id="3479995fc21f8080bd04c3a4d8284339" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8080bd04c3a4d8284339" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80cc8e4ef9d4b60b7a3f">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80419d2ec2d0b24cd443"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f805aa774c7307bf60fe8" data-id="3479995fc21f805aa774c7307bf60fe8"><span><div id="3479995fc21f805aa774c7307bf60fe8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f805aa774c7307bf60fe8" title="滑动解锁"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">滑动解锁</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8034b709f4dbb33bd059"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:529.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A162a7b61-6a18-4861-ac61-fd627e9d67bf%3Aimage.png?table=block&amp;id=3489995f-c21f-8034-b709-f4dbb33bd059&amp;t=3489995f-c21f-8034-b709-f4dbb33bd059" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f805182bce704d1875243" data-id="3479995fc21f805182bce704d1875243"><span><div id="3479995fc21f805182bce704d1875243" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f805182bce704d1875243" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f805ba8d8ef4234fff3be"><div>gui-slide-to-unlock : /graceUI/组件目录/gui-slide-to-unlock</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80bcab0ad36a72581dae" data-id="3479995fc21f80bcab0ad36a72581dae"><span><div id="3479995fc21f80bcab0ad36a72581dae" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80bcab0ad36a72581dae" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80b39fe2dd96987f5675"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8057802ef315de337a13"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f800bbd88fe4b061cc592"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80dc8d81c88188bb025f" data-id="3479995fc21f80dc8d81c88188bb025f"><span><div id="3479995fc21f80dc8d81c88188bb025f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80dc8d81c88188bb025f" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f805daf18c0f4d2d287a1"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80d9a89cd15739f6b609"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80959680f1ed5f9f3e4a"><td class="" style="width:120px"><div class="notion-simple-table-cell">width</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">690</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件宽度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8020be3fe1499375dbd0"><td class="" style="width:120px"><div class="notion-simple-table-cell">padding</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">6</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">内部间距，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f805dbd70d907f4038b88"><td class="" style="width:120px"><div class="notion-simple-table-cell">size</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">68</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滑块大小，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809ebd4bdac933e7d006"><td class="" style="width:120px"><div class="notion-simple-table-cell">bgColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#F6F7F8</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f804a8f83feda116f3eac"><td class="" style="width:120px"><div class="notion-simple-table-cell">blockColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#008AFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滑块背景色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8062a309e9b528d99b97"><td class="" style="width:120px"><div class="notion-simple-table-cell">blockActiveColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#39B55A</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">解锁后滑块背景色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8059bf04fdd3d8a24472"><td class="" style="width:120px"><div class="notion-simple-table-cell">iconSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">30rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滑块图标尺寸</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f804f8150cf5ad06c6cf1"><td class="" style="width:120px"><div class="notion-simple-table-cell">iconColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#FFFFFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滑块图标颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80418a50db6e3de10107"><td class="" style="width:120px"><div class="notion-simple-table-cell">borderRadius</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">6rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件圆角尺寸</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806bbc8be1ae6ff62882"><td class="" style="width:120px"><div class="notion-simple-table-cell">msg</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">请向右滑动滑块解锁</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">提示文本</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80ebb07ac0063ce54ae3"><td class="" style="width:120px"><div class="notion-simple-table-cell">msgUnlock</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">解锁成功</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">解锁成功提示文本</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80958737c21b6f073401" data-id="3479995fc21f80958737c21b6f073401"><span><div id="3479995fc21f80958737c21b6f073401" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80958737c21b6f073401" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8047875cdc3c2dff78c8">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80a0b2a5d0fa0661c292"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f802ea09dfdb4fe7b315f" data-id="3479995fc21f802ea09dfdb4fe7b315f"><span><div id="3479995fc21f802ea09dfdb4fe7b315f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802ea09dfdb4fe7b315f" title="进度滑块"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">进度滑块</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8035af78c219d0374f69"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:526.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1fde3a77-419f-4ed2-aa2c-f9860bd00117%3Aimage.png?table=block&amp;id=3489995f-c21f-8035-af78-c219d0374f69&amp;t=3489995f-c21f-8035-af78-c219d0374f69" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f804f90b7f73eb684fa56" data-id="3479995fc21f804f90b7f73eb684fa56"><span><div id="3479995fc21f804f90b7f73eb684fa56" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f804f90b7f73eb684fa56" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8034bb2edde69e32ea89"><div>gui-single-slider : /graceUI/组件目录/gui-single-slider</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8014b58ef61bc6189eae" data-id="3479995fc21f8014b58ef61bc6189eae"><span><div id="3479995fc21f8014b58ef61bc6189eae" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8014b58ef61bc6189eae" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80ac9321e4164a1d317e"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f800eac06c88659f05d03"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8042a127f2c1569ee2cb"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8086aaa7ec21ac3f951c" data-id="3479995fc21f8086aaa7ec21ac3f951c"><span><div id="3479995fc21f8086aaa7ec21ac3f951c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8086aaa7ec21ac3f951c" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80d3873dc8b0b40b9fc5"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8014a741f934e12b1f84"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80818796fe23263be10f"><td class="" style="width:120px"><div class="notion-simple-table-cell">barHeight</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">32</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件高度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80ad9252cde0f4d3b698"><td class="" style="width:120px"><div class="notion-simple-table-cell">barWidth</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">168</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滑块宽度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8032bc22cd9a2cd8d13d"><td class="" style="width:120px"><div class="notion-simple-table-cell">barColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#FFFFFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滑块内文本颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f808ba717ce4b6a2f4e11"><td class="" style="width:120px"><div class="notion-simple-table-cell">barBgColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">linear-gradient(to right, #3688FF,#3688FF)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滑块背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803883e7fc86648377d3"><td class="" style="width:120px"><div class="notion-simple-table-cell">bglineSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">2</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滑块背景线条尺寸</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806ebec0fe8dc150b995"><td class="" style="width:120px"><div class="notion-simple-table-cell">bglineColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">rgba(54,136,255,0.5)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滑块背景线条颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80fdafdafce6fcc2fa49"><td class="" style="width:120px"><div class="notion-simple-table-cell">bglineAColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#3688FF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滑块背景线条激活颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809ab902d7e5f4505699"><td class="" style="width:120px"><div class="notion-simple-table-cell">barText</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">’’</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滑块文本内容</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f805ebc9fd25b27358d8a"><td class="" style="width:120px"><div class="notion-simple-table-cell">barTextSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">20rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滑块文本大小</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d08696cad3b3bb8ae5"><td class="" style="width:120px"><div class="notion-simple-table-cell">borderRadius</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">32rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件圆角尺寸</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807892bae465ba3722f5"><td class="" style="width:120px"><div class="notion-simple-table-cell">canSlide</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否允许滑块滑动</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f804591bbd56786f7c6f4" data-id="3479995fc21f804591bbd56786f7c6f4"><span><div id="3479995fc21f804591bbd56786f7c6f4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f804591bbd56786f7c6f4" title="组件方法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件方法</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f809a94f0eb611188ea5a"><div>setProgress : 设置组件默认进度, 参数 : 0 - 100 间的整数;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80bab7bbc377d83e8384" data-id="3479995fc21f80bab7bbc377d83e8384"><span><div id="3479995fc21f80bab7bbc377d83e8384" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80bab7bbc377d83e8384" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8027800bc9be1d47de02"><div>@change : 组件进度发生变化时触发，携带参数 : 进度值；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8001a8c1f0979e0f3d37" data-id="3479995fc21f8001a8c1f0979e0f3d37"><span><div id="3479995fc21f8001a8c1f0979e0f3d37" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8001a8c1f0979e0f3d37" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80d7b63de08a11be0c41">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f808d9d4dc0b28f2420de"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f803f8e2bc575c0775025" data-id="3479995fc21f803f8e2bc575c0775025"><span><div id="3479995fc21f803f8e2bc575c0775025" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803f8e2bc575c0775025" title="区间滑块"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">区间滑块</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f804c9c27ef0c0880d8d9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:539.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aae64073f-8bfc-41c4-9686-e26bccd57b75%3Aimage.png?table=block&amp;id=3489995f-c21f-804c-9c27-ef0c0880d8d9&amp;t=3489995f-c21f-804c-9c27-ef0c0880d8d9" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80089075c31045d90250" data-id="3479995fc21f80089075c31045d90250"><span><div id="3479995fc21f80089075c31045d90250" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80089075c31045d90250" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80238e7efe38e830a5ab"><div>gui-interval-slider : /graceUI/组件目录/gui-interval-slider</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8030bb9cc0c0793f278d" data-id="3479995fc21f8030bb9cc0c0793f278d"><span><div id="3479995fc21f8030bb9cc0c0793f278d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8030bb9cc0c0793f278d" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80cda983c56ef403eac2"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f808fa2caf05110371bbf"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80bdaf34fb4d071217a2"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80afa4d3fd83e83a1cb8" data-id="3479995fc21f80afa4d3fd83e83a1cb8"><span><div id="3479995fc21f80afa4d3fd83e83a1cb8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80afa4d3fd83e83a1cb8" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8065942aed3f2138e335"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80c89368c7c9b60e5be7"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f3b4ece3dcfcc1130b"><td class="" style="width:120px"><div class="notion-simple-table-cell">bgColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#F6F7F8</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度条背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80efb14fc8f18b3860c0"><td class="" style="width:120px"><div class="notion-simple-table-cell">activeColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#3688FF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">激活进度条颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809c9d65cfbadc3098ce"><td class="" style="width:120px"><div class="notion-simple-table-cell">width</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">750</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件宽度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a9b0c8e65aa0e3d070"><td class="" style="width:120px"><div class="notion-simple-table-cell">height</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">2</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度条高度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8000a7c7ec2a3b890d4b"><td class="" style="width:120px"><div class="notion-simple-table-cell">blockBgColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#FFFFFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滑块背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d0ab90f6228052a07a"><td class="" style="width:120px"><div class="notion-simple-table-cell">blockSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">30</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滑块尺寸，单位 px</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80b79b8cc4e6966632a2"><td class="" style="width:120px"><div class="notion-simple-table-cell">min</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">区间最小值</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f805081a6ff3691a3b151"><td class="" style="width:120px"><div class="notion-simple-table-cell">minDefault</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">默认最小值</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80dba3c0f292242bdc0b"><td class="" style="width:120px"><div class="notion-simple-table-cell">max</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">100</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">区间最大值</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d4b5ded5bc330f1239"><td class="" style="width:120px"><div class="notion-simple-table-cell">maxDefault</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">100</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">默认最大值</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80389fa0c1a1b7343198" data-id="3479995fc21f80389fa0c1a1b7343198"><span><div id="3479995fc21f80389fa0c1a1b7343198" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80389fa0c1a1b7343198" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8073a9ccf8c22d316222"><div>滑块滑动触发 change 事件，返回滑块值，数组形式 : [ 区间左值, 区间右值 ]</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8095a14addd7d16fcd84" data-id="3479995fc21f8095a14addd7d16fcd84"><span><div id="3479995fc21f8095a14addd7d16fcd84" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8095a14addd7d16fcd84" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f806f8fbbe59cf86be6b7">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80f6ae7fe251cf1f039b"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8034a011db4e9cf08189" data-id="3479995fc21f8034a011db4e9cf08189"><span><div id="3479995fc21f8034a011db4e9cf08189" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8034a011db4e9cf08189" title="功能标签"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">功能标签</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f809f8035e8dde6d6056b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:546.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6a880e74-3a08-48de-88f0-cca47ce6bee2%3Aimage.png?table=block&amp;id=3489995f-c21f-809f-8035-e8dde6d6056b&amp;t=3489995f-c21f-809f-8035-e8dde6d6056b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806fbbc5dd7c2bc69035" data-id="3479995fc21f806fbbc5dd7c2bc69035"><span><div id="3479995fc21f806fbbc5dd7c2bc69035" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806fbbc5dd7c2bc69035" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8095b72aeb714bc406ad"><div>gui-stags 功能标签组件基于标签形式实现标签的选择和删除功能；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806b9732c949a0fe12c3" data-id="3479995fc21f806b9732c949a0fe12c3"><span><div id="3479995fc21f806b9732c949a0fe12c3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806b9732c949a0fe12c3" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f800183b6ce5b2dac493f"><div>gui-stags : /graceUI/组件目录/gui-stags</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8015b3a7f4619c8ff680" data-id="3479995fc21f8015b3a7f4619c8ff680"><span><div id="3479995fc21f8015b3a7f4619c8ff680" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8015b3a7f4619c8ff680" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8093a032ea4af2f39cb3"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80e18fc8f41d6363b856"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f800599a2e51c68fb1043"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ed8c38e7ac39cf0a6e" data-id="3479995fc21f80ed8c38e7ac39cf0a6e"><span><div id="3479995fc21f80ed8c38e7ac39cf0a6e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ed8c38e7ac39cf0a6e" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8010b893d66d57f46e48"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80dca6caf2785833d0d8"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c798ebff5ca0daee08"><td class="" style="width:120px"><div class="notion-simple-table-cell">width</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件宽度，单位 rpx，0 代表自动宽度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8030a5ebf794cfdd61b9"><td class="" style="width:120px"><div class="notion-simple-table-cell">text</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">’’</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">标签文本</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d3aa2ffb0b13662d4f"><td class="" style="width:120px"><div class="notion-simple-table-cell">size</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">26</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文本尺寸，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8093aef1e1e9337885e7"><td class="" style="width:120px"><div class="notion-simple-table-cell">lineHeight</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1.8</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">行高比例，高度、行高=文本尺寸*行高比例</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8006a9aed4272e104baf"><td class="" style="width:120px"><div class="notion-simple-table-cell">padding</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">15</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">内间距，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80af8d92c281ad0a43db"><td class="" style="width:120px"><div class="notion-simple-table-cell">margin</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">15</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件右侧、底部间距，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8074a3aad9bfe93ba45c"><td class="" style="width:120px"><div class="notion-simple-table-cell">defaultBg</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">gui-bg-blue</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件背景样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8066ac9edfe522594a1f"><td class="" style="width:120px"><div class="notion-simple-table-cell">defaultColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">gui-primary-color</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文本颜色样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f804fb387d36b3d0fcc32"><td class="" style="width:120px"><div class="notion-simple-table-cell">borderRadius</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">6</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">圆角尺寸，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807dbe00c313012de9a2"><td class="" style="width:120px"><div class="notion-simple-table-cell">tags</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">标签项目数据，格式见演示代码</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f29578cc36e94c0858"><td class="" style="width:120px"><div class="notion-simple-table-cell">type</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">radio</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">radio 单选，checkbox 多选，remove 可删除</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806c896ddea46080b558"><td class="" style="width:120px"><div class="notion-simple-table-cell">checkedBg</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">gui-bg-blue</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">标签选中背景样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809a86dae250695e984f"><td class="" style="width:120px"><div class="notion-simple-table-cell">checkedColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">gui-color-white</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">标签选中文本样式</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b8a1f6e62bdab41241" data-id="3479995fc21f80b8a1f6e62bdab41241"><span><div id="3479995fc21f80b8a1f6e62bdab41241" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b8a1f6e62bdab41241" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80bca8a0eb9a5fe0673f"><div>change : 组件数据变化时触发，携带数据:
01 单选 :
有选中的项目 : {选中项目的数据 }, {标签数据}；
无选中的项目 : -1, {标签数据}</div><div class="notion-text notion-block-3479995fc21f801cb189fc2bb4925015">02 多选 : [ 数组形式的多选项目的索引], {标签数据};</div><div class="notion-text notion-block-3479995fc21f80c3b0edee968b3cac68">03 删除 : 删除后新的 [ 标签数据 ];</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f809ab7c2edf367e54082" data-id="3479995fc21f809ab7c2edf367e54082"><span><div id="3479995fc21f809ab7c2edf367e54082" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f809ab7c2edf367e54082" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8057856ae3863c6d8cd8">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80b8bd40f9bfccd86fa3"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80b3a45ef92c4eeaf45f" data-id="3479995fc21f80b3a45ef92c4eeaf45f"><span><div id="3479995fc21f80b3a45ef92c4eeaf45f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b3a45ef92c4eeaf45f" title="点选组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">点选组件</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80d5b917cb8b71335c47"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:552.96875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6befd24c-7c9a-4bfe-85cd-f76b7df9352e%3Aimage.png?table=block&amp;id=3489995f-c21f-80d5-b917-cb8b71335c47&amp;t=3489995f-c21f-80d5-b917-cb8b71335c47" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ef8e5ec4c564e6fc38" data-id="3479995fc21f80ef8e5ec4c564e6fc38"><span><div id="3479995fc21f80ef8e5ec4c564e6fc38" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ef8e5ec4c564e6fc38" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80ebb179f484598189b0"><div>gui-radio 点选组件区别于原生的 radio，样式更自由，用于单个选择；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f809a9bbddf92a2abb043" data-id="3479995fc21f809a9bbddf92a2abb043"><span><div id="3479995fc21f809a9bbddf92a2abb043" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f809a9bbddf92a2abb043" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f805c88ffc697b89e30ff"><div>gui-radio : /graceUI/组件目录/gui-radio</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f808089daee08288f5a28" data-id="3479995fc21f808089daee08288f5a28"><span><div id="3479995fc21f808089daee08288f5a28" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f808089daee08288f5a28" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f800ba28fd521022b9924"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f800db4d3f34479af9f44"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8005a86df8925fb86d2e"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80768a30ec6c296c6673" data-id="3479995fc21f80768a30ec6c296c6673"><span><div id="3479995fc21f80768a30ec6c296c6673" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80768a30ec6c296c6673" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8032a708e2f23d599f2f"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80268d7afce5dce0a519"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80169ee1f2482067558c"><td class="" style="width:120px"><div class="notion-simple-table-cell">size</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">38</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选择图标尺寸，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807d8916c0970edc5ca4"><td class="" style="width:120px"><div class="notion-simple-table-cell">color</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#EEEEEE</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">默认图标颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f805fae11ec6bca2b5c39"><td class="" style="width:120px"><div class="notion-simple-table-cell">checkedColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#008AFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选中后图标颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80118022de0be724c26b"><td class="" style="width:120px"><div class="notion-simple-table-cell">checked</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">false</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">默认选中状态</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80429222cb8b9b4a4ed7"><td class="" style="width:120px"><div class="notion-simple-table-cell">parameter</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件附加数据</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8058a994cea1b79a4b2f"><td class="" style="width:120px"><div class="notion-simple-table-cell">justifyContent 2021.01.26 新增</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">flex-start</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">横向对齐方式，flex-start : 左侧 center : 居中 flex-end : 右侧</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803c8de8c53ee47e8f2d" data-id="3479995fc21f803c8de8c53ee47e8f2d"><span><div id="3479995fc21f803c8de8c53ee47e8f2d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803c8de8c53ee47e8f2d" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8084af07f2b4634fbbc2">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f802fa974c68f39d16d0f"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8083bb34cc3173597e0a" data-id="3479995fc21f8083bb34cc3173597e0a"><span><div id="3479995fc21f8083bb34cc3173597e0a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8083bb34cc3173597e0a" title="日历组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">日历组件</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8074bd26da880b2e7b28"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:540.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afe894108-5d92-4df4-9c0e-863b75667a06%3Aimage.png?table=block&amp;id=3489995f-c21f-8074-bd26-da880b2e7b28&amp;t=3489995f-c21f-8074-bd26-da880b2e7b28" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c4b3c5ed2b4088452b" data-id="3479995fc21f80c4b3c5ed2b4088452b"><span><div id="3479995fc21f80c4b3c5ed2b4088452b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c4b3c5ed2b4088452b" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8043895bcfba71a1a00e"><div>gui-calendar : /graceUI/组件目录/gui-calendar</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80adbb9fd0d7812bf25b" data-id="3479995fc21f80adbb9fd0d7812bf25b"><span><div id="3479995fc21f80adbb9fd0d7812bf25b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80adbb9fd0d7812bf25b" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80159707c27ccf5870bc"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80138880eeeb71aedd12"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807aa50ffa63caa86ae4"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c9a6aacf2cf805ce45" data-id="3479995fc21f80c9a6aacf2cf805ce45"><span><div id="3479995fc21f80c9a6aacf2cf805ce45" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c9a6aacf2cf805ce45" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f806fa115fb01060c4b09"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80e28a21ecf34d3848ad"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8022a4d5da15b3872347"><td class="" style="width:120px"><div class="notion-simple-table-cell">isTime</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">布尔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示时间选择</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80059d51fca3041be414"><td class="" style="width:120px"><div class="notion-simple-table-cell">currentDate</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">字符串</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">默认日期及时间, 如 2020-01-01 或 2010-01-01 18:18</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80219f1dce1580f9e217"><td class="" style="width:120px"><div class="notion-simple-table-cell">bgColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">字符串</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#F7F8FA</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">日期项目默认背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a28d92e04fec8f4ab7"><td class="" style="width:120px"><div class="notion-simple-table-cell">activeBgColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">字符串</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#008AFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选中日期的背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8027aa1bfb338e62f670"><td class="" style="width:120px"><div class="notion-simple-table-cell">borderRadius</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">字符串</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">6rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">日期项目圆角尺寸</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8087adfac339328c290b"><td class="" style="width:120px"><div class="notion-simple-table-cell">isLunar</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">布尔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示农历</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8056a9a5f4dd7819d319"><td class="" style="width:120px"><div class="notion-simple-table-cell">zIndex 2021.05.27 新增</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">整数</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">9999</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件 z-index 值</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80369791c1e136c97063" data-id="3479995fc21f80369791c1e136c97063"><span><div id="3479995fc21f80369791c1e136c97063" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80369791c1e136c97063" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f806c92d0db10ecd1eef5"><div>@changeDate : 日期选择时触发，携带数据 当前日期
@confirm : 点击确定按钮时触发，携带数据 当前日期 [ 2021.08.02 新增事件 ]</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f800188e8c594be52a25d" data-id="3479995fc21f800188e8c594be52a25d"><span><div id="3479995fc21f800188e8c594be52a25d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f800188e8c594be52a25d" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f801e9345dd3541c4de33">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80baaa20edd05d719d8c"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80439e71f6e5271ee520" data-id="3479995fc21f80439e71f6e5271ee520"><span><div id="3479995fc21f80439e71f6e5271ee520" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80439e71f6e5271ee520" title="日期区间"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">日期区间</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80338184c08a4bbb2205"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:560.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aeb26ce99-3412-4be3-aad4-648ef72e4ed4%3Aimage.png?table=block&amp;id=3489995f-c21f-8033-8184-c08a4bbb2205&amp;t=3489995f-c21f-8033-8184-c08a4bbb2205" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f801ebe08d417656899ac" data-id="3479995fc21f801ebe08d417656899ac"><span><div id="3479995fc21f801ebe08d417656899ac" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f801ebe08d417656899ac" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80be9418de8042639b6d"><div>gui-date-between : /graceUI/组件目录/gui-date-between</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80259131d4431a7890a6" data-id="3479995fc21f80259131d4431a7890a6"><span><div id="3479995fc21f80259131d4431a7890a6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80259131d4431a7890a6" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80e2af33de70a44f17f8"><div>graceDateBetween 以日历形式来实现日期区间的选择功能。
通过属性设置您可以实现 : 选中区域背景色调整、展示月份数量调整等多种功能 。</div></blockquote><table class="notion-simple-table notion-block-3479995fc21f8019b6a0ee5fe1d94c0c"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f802cbe6ae85624f27b13"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f808888f8cf613e4f3a44"><td class="" style="width:120px"><div class="notion-simple-table-cell">weekBg</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#F8F8F8</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">星期栏背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f804c83cad8147c022e27"><td class="" style="width:120px"><div class="notion-simple-table-cell">unit</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[’ 年 ‘,’ 月’]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">年月展示单位</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d686b1c85614d075e2"><td class="" style="width:120px"><div class="notion-simple-table-cell">sedBg</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">rgba(54,136,255,0.8)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选中区域背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8000be21c6b3a8965af7"><td class="" style="width:120px"><div class="notion-simple-table-cell">itemBg</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#FFFFFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">日期默认背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8066bab4f5cf5e92f961"><td class="" style="width:120px"><div class="notion-simple-table-cell">color</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#323232</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">日期文本颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a4a1fdc9765bae4c30"><td class="" style="width:120px"><div class="notion-simple-table-cell">sedColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#FFFFFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选中日期文本颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80afa136d89b492daf0e"><td class="" style="width:120px"><div class="notion-simple-table-cell">startBg</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">rgba(54,136,255,1)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">起始日期背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8059b028da8a80670667"><td class="" style="width:120px"><div class="notion-simple-table-cell">endBg</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">rgba(54,136,255,1)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">结束日期背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f802abcded93dc46c8520"><td class="" style="width:120px"><div class="notion-simple-table-cell">monthNumber</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">2</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">展示月份数量，:monthNumber=“3” 代表3个个月</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f808ab1fbfd4add41869c" data-id="3479995fc21f808ab1fbfd4add41869c"><span><div id="3479995fc21f808ab1fbfd4add41869c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f808ab1fbfd4add41869c" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f805b9e84d8c2cfe5becb"><div>selectDate : 区间选择变化时激活的事件，携带数据 [[起始日期, 结束日期], 总天数]。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f800ba41bcf5d4048cfb9" data-id="3479995fc21f800ba41bcf5d4048cfb9"><span><div id="3479995fc21f800ba41bcf5d4048cfb9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f800ba41bcf5d4048cfb9" title="组件方法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件方法</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80589038e458f9780a6f"><div>setMonth()</div><div class="notion-text notion-block-3479995fc21f80dbae9efa5173abe1ef">功能 : 设置组件展示的起始月份
参数 : 有效的月份，格式 2020年05月 或者 2020-05</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f80b18a56c0b89813d726" style="list-style-type:decimal"><li>setBetween</li></ol><div class="notion-text notion-block-3479995fc21f80e2acb5f24851db984f">功能 : 设置默认区间
参数 : [ 默认起始日期, 默认结束日志 ]，请严格遵守格式 : [ 20200501, 20200522 ]</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f804cbc0dd54ae19fd827" data-id="3479995fc21f804cbc0dd54ae19fd827"><span><div id="3479995fc21f804cbc0dd54ae19fd827" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f804cbc0dd54ae19fd827" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8054b285c0088a8f6fc0">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80e29bdcc85c8ea145c4"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80529a4df734cb40cd78" data-id="3479995fc21f80529a4df734cb40cd78"><span><div id="3479995fc21f80529a4df734cb40cd78" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80529a4df734cb40cd78" title="日期时间选择器"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">日期时间选择器</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8048a63bf9e847406fa1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:537.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aee2300a2-b1ca-40ed-ab15-05ed975646e3%3Aimage.png?table=block&amp;id=3489995f-c21f-8048-a63b-f9e847406fa1&amp;t=3489995f-c21f-8048-a63b-f9e847406fa1" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d9a56ac3a70e598873" data-id="3479995fc21f80d9a56ac3a70e598873"><span><div id="3479995fc21f80d9a56ac3a70e598873" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d9a56ac3a70e598873" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80dfa0a9e315fea25a1d"><div>gui-datetime : /graceUI/组件目录/gui-datetime</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80fcae52fa20c90a725e" data-id="3479995fc21f80fcae52fa20c90a725e"><span><div id="3479995fc21f80fcae52fa20c90a725e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80fcae52fa20c90a725e" title="功能介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">功能介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80a385a1cf5494c338d9"><div>gui-datetime 组件以 picker-view 形式来实现日期时间的选择工作，具备以下特色 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f802d82fae0c58abdd0c6" style="list-style-type:decimal"><li>选择器展示、关闭封装在组件内，不需要开发者实现，调用更方便;</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f80ff9bb6f2309c60ef82" style="list-style-type:decimal"><li>自动识别对应年份对应月份应有的天数（如 : 自动计算某年2月份应用的天数）;</li></ol></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f807bbb2cce2f92a4dc65" data-id="3479995fc21f807bbb2cce2f92a4dc65"><span><div id="3479995fc21f807bbb2cce2f92a4dc65" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807bbb2cce2f92a4dc65" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80afa038f12f2ed2bcf4"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8017b2d0ca63ea8dbb26"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80af8eb8d066d90835f9"><td class="" style="width:120px"><div class="notion-simple-table-cell">cancelText</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">取消</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">取消按钮文本</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80b89e76f4034d01a456"><td class="" style="width:120px"><div class="notion-simple-table-cell">cancelTColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#888888</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">取消按钮文颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8063b79ddee4b44161cc"><td class="" style="width:120px"><div class="notion-simple-table-cell">confirmText</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">确定</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">确认按钮文本</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d483a5d070fed3fdf7"><td class="" style="width:120px"><div class="notion-simple-table-cell">confirmColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#008AFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">确认按钮文本颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c6a3a1ec3674b9ecb5"><td class="" style="width:120px"><div class="notion-simple-table-cell">value</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">’’</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">默认时间值，格式 xxxx-xx-xx HH:ii:ss，默认当前时间</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801baee9ca259a244a77"><td class="" style="width:120px"><div class="notion-simple-table-cell">isTime</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示时间选择器</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8059a817f43bd7d15c9f"><td class="" style="width:120px"><div class="notion-simple-table-cell">isMinute</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示分钟选择器 2021.06.07 新增</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8004841ffb70caa18554"><td class="" style="width:120px"><div class="notion-simple-table-cell">isSecond</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示秒钟选择器</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8077a26af616fa034cf5"><td class="" style="width:120px"><div class="notion-simple-table-cell">startYear</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1980</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">起始年份</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f08e6cc7a056c22785"><td class="" style="width:120px"><div class="notion-simple-table-cell">endYear</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">2050</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">结束年份</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80548920efca30e62a9a"><td class="" style="width:120px"><div class="notion-simple-table-cell">units</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array(‘年’,‘月’,‘日’,‘时’,‘分’,‘秒’)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">日期时间单位信息</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d888f8f317999952a9"><td class="" style="width:120px"><div class="notion-simple-table-cell">height</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">300rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件高度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80888565e5f332221fec"><td class="" style="width:120px"><div class="notion-simple-table-cell">zIndex</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">90</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">z-index 默认值</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809f9602cb55ec7bf5a1"><td class="" style="width:120px"><div class="notion-simple-table-cell">width</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">750rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件宽度值</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f0be93c3eaa1057a2f"><td class="" style="width:120px"><div class="notion-simple-table-cell">indicatorStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">height:36px; line-heiht:36px;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选项样式 2022.04.26 新增</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c1bf3fd2e6da5077c5" data-id="3479995fc21f80c1bf3fd2e6da5077c5"><span><div id="3479995fc21f80c1bf3fd2e6da5077c5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c1bf3fd2e6da5077c5" title="会触发的事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">会触发的事件</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ebba77f5f8cf3bf3fb" data-id="3479995fc21f80ebba77f5f8cf3bf3fb"><span><div id="3479995fc21f80ebba77f5f8cf3bf3fb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ebba77f5f8cf3bf3fb" title="修改默认值"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">修改默认值</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80cb975ae23967914021" data-id="3479995fc21f80cb975ae23967914021"><span><div id="3479995fc21f80cb975ae23967914021" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80cb975ae23967914021" title="组件插槽"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件插槽</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80a590cbf9ca06823d36" data-id="3479995fc21f80a590cbf9ca06823d36"><span><div id="3479995fc21f80a590cbf9ca06823d36" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80a590cbf9ca06823d36" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80d3a62ce33e083b10ba">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80d28223e9c72ddd1389"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8068ae3cdaf2d88c1392" data-id="3479995fc21f8068ae3cdaf2d88c1392"><span><div id="3479995fc21f8068ae3cdaf2d88c1392" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8068ae3cdaf2d88c1392" title="时间段选择"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">时间段选择</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f800d96dcc4371ee2fe12"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:537.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5605949f-331f-4dbc-8bff-a42956b51675%3Aimage.png?table=block&amp;id=3489995f-c21f-800d-96dc-c4371ee2fe12&amp;t=3489995f-c21f-800d-96dc-c4371ee2fe12" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80149838ed6506764619" data-id="3479995fc21f80149838ed6506764619"><span><div id="3479995fc21f80149838ed6506764619" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80149838ed6506764619" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8021aa51fdaf8f3f3ad9"><div>gui-datetime-between : /graceUI/组件目录/gui-datetime-between</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c086f6effeda32aef4" data-id="3479995fc21f80c086f6effeda32aef4"><span><div id="3479995fc21f80c086f6effeda32aef4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c086f6effeda32aef4" title="功能描述"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">功能描述</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f806cadebe4553a8823ad"><div>GraceUI 日期时间区间选择组件以 picker-view 为基础实现，可以方便地完成时间段的选择功能;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d1817fe7a3deb57524" data-id="3479995fc21f80d1817fe7a3deb57524"><span><div id="3479995fc21f80d1817fe7a3deb57524" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d1817fe7a3deb57524" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f804eba03f7d0fb21b806"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f801abfa3df2a488f63fb"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c6b0a8c5697fb01454"><td class="" style="width:120px"><div class="notion-simple-table-cell">cancelText</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">取消</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">取消按钮文本</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d9bcfbc420e4163cd3"><td class="" style="width:120px"><div class="notion-simple-table-cell">cancelTColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#888888</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">取消按钮文颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80b080cdecf6d2094476"><td class="" style="width:120px"><div class="notion-simple-table-cell">confirmText</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">确定</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">确认按钮文本</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f804d8bfbfdafb4409297"><td class="" style="width:120px"><div class="notion-simple-table-cell">confirmColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#3688FF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">确认按钮文本颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803a87e8df75e376808a"><td class="" style="width:120px"><div class="notion-simple-table-cell">startValue</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">’’</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">默认起始时间值，格式 xxxx-xx-xx HH:ii:ss，默认当前时间</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d78700c37b132ee7b6"><td class="" style="width:120px"><div class="notion-simple-table-cell">endValue</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">’’</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">默认结束时间值，格式 xxxx-xx-xx HH:ii:ss，默认当前时间</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c1a34ce9c006d6aba7"><td class="" style="width:120px"><div class="notion-simple-table-cell">isDay</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示日期选择器</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807b9898ccfde6b82798"><td class="" style="width:120px"><div class="notion-simple-table-cell">isTime</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示时间选择器</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f802188c1c2abb6e0f68d"><td class="" style="width:120px"><div class="notion-simple-table-cell">isMinute</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示分钟选择器</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d8aad0f5db31568271"><td class="" style="width:120px"><div class="notion-simple-table-cell">isSecond</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示秒选择器</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803791f1d5414d4d7e23"><td class="" style="width:120px"><div class="notion-simple-table-cell">startYear</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1980</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">起始年份</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80b18df5f68d000694ff"><td class="" style="width:120px"><div class="notion-simple-table-cell">endYear</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">2050</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">结束年份</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d89648d87261c85c53"><td class="" style="width:120px"><div class="notion-simple-table-cell">units</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array(‘年’,‘月’,‘日’,‘时’,‘分’,‘秒’)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">日期时间单位信息</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80879570d57f34af9bca"><td class="" style="width:120px"><div class="notion-simple-table-cell">titles</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[‘请选择开始时间’,‘请选择结束时间’]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">时间选择器前的分割标题</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8023b9acfc9fb3b9238c"><td class="" style="width:120px"><div class="notion-simple-table-cell">indicatorStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">height:36px; line-heiht:36px;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滚动选项样式 2022.04.26 新增</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801ca2cde6651f0bda3b"><td class="" style="width:120px"><div class="notion-simple-table-cell">height</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">300rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">区间 picker 高度 2022.06.23 更新</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80a0a53ff95911eb5e4b" data-id="3479995fc21f80a0a53ff95911eb5e4b"><span><div id="3479995fc21f80a0a53ff95911eb5e4b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80a0a53ff95911eb5e4b" title="触发事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">触发事件</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8048bbcbf5c907620937" data-id="3479995fc21f8048bbcbf5c907620937"><span><div id="3479995fc21f8048bbcbf5c907620937" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8048bbcbf5c907620937" title="组件插槽"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件插槽</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80958276f9da127fabbb" data-id="3479995fc21f80958276f9da127fabbb"><span><div id="3479995fc21f80958276f9da127fabbb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80958276f9da127fabbb" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8043b58ed68ca3a22126">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80ff82ebfd4f102817a5"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f802e86e3d0c378cedbbf" data-id="3479995fc21f802e86e3d0c378cedbbf"><span><div id="3479995fc21f802e86e3d0c378cedbbf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802e86e3d0c378cedbbf" title="日程日历"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">日程日历</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80a29423d686e521a9e8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:528.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8949e572-5a83-4852-b640-a49955efe195%3Aimage.png?table=block&amp;id=3489995f-c21f-80a2-9423-d686e521a9e8&amp;t=3489995f-c21f-80a2-9423-d686e521a9e8" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f801e80afd30f72296893" data-id="3479995fc21f801e80afd30f72296893"><span><div id="3479995fc21f801e80afd30f72296893" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f801e80afd30f72296893" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8058a2fbc09166bc36c2"><div>带有日程安排、提醒的日历组件。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c592d0d52413704d1d" data-id="3479995fc21f80c592d0d52413704d1d"><span><div id="3479995fc21f80c592d0d52413704d1d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c592d0d52413704d1d" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80da8858cd28741d33b9"><div>gui-schedule : /graceUI/组件目录/gui-schedule</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f800891e4ee59a2be88e3" data-id="3479995fc21f800891e4ee59a2be88e3"><span><div id="3479995fc21f800891e4ee59a2be88e3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f800891e4ee59a2be88e3" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f802eb8e3c7268546fcf3"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80e1a95bffbd1797e5e5"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809cabd5e82b842d2dcd"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80feb5a9d36c1bd94f21" data-id="3479995fc21f80feb5a9d36c1bd94f21"><span><div id="3479995fc21f80feb5a9d36c1bd94f21" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80feb5a9d36c1bd94f21" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80579de5e2a98e31d453"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8046b851f806625d7810"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d7a140d69e93f284f0"><td class="" style="width:120px"><div class="notion-simple-table-cell">currentDate</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">’’</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">当前日期, 格式 YYYY-mm-dd</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a5872adfb3da469205"><td class="" style="width:120px"><div class="notion-simple-table-cell">bgColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#FFFFFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">日期项目背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f802594ccdebdc9cc6edf"><td class="" style="width:120px"><div class="notion-simple-table-cell">activeBgColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#3688FF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选中日期背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8023b68cd27c9b95b103"><td class="" style="width:120px"><div class="notion-simple-table-cell">isLunar</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示农历信息</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f808a8accff84fd2685b2"><td class="" style="width:120px"><div class="notion-simple-table-cell">startDate</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1950-01-01</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">起始日期</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8035b9e6e7ec4f186345"><td class="" style="width:120px"><div class="notion-simple-table-cell">endDate</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">2050-01-01</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">结束日期</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806ab685f72f4eecb1e5"><td class="" style="width:120px"><div class="notion-simple-table-cell">schedules</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">日程数组，格式见示例</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80b983cdd0cca59310f1"><td class="" style="width:120px"><div class="notion-simple-table-cell">pointColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#FF0036</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">日程提醒点颜色</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80edadcad46da116fb24" data-id="3479995fc21f80edadcad46da116fb24"><span><div id="3479995fc21f80edadcad46da116fb24" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80edadcad46da116fb24" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80f5bb1dfc2d5d60216e"><div>01 scheduleTap : 日程项目被点击时触发，携带参数 : 被点击项目的索引;
02 chooseDate : 点击具体日期时触发，携带参数 : 选中的日期信息;
03 selectDate : 用户点击日期 picker 并确认选择日期后触发，携带参数 : 选中的日期信息;
04 gotoToday : 用户点击返回今天按钮时触发，携带参数 : 今天对应的日期信息;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8050a615fd83ab2314cd" data-id="3479995fc21f8050a615fd83ab2314cd"><span><div id="3479995fc21f8050a615fd83ab2314cd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8050a615fd83ab2314cd" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80c7b59ec50f57dafc5e"><div>注意 : 请使用 v-if/wx:if 等待api加载完成后再创建组件，详见项目的演示代码 (:</div></blockquote><div class="notion-text notion-block-3479995fc21f804a8ae5fea231a725a9">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80a3880ac8b973403358"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f803ba6a5f777101cf845" data-id="3479995fc21f803ba6a5f777101cf845"><span><div id="3479995fc21f803ba6a5f777101cf845" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803ba6a5f777101cf845" title="横向日历"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">横向日历</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f805fb4cbe793d9e6e16f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:541.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A52e94b8d-bec0-4bc3-97c2-d626be1c28bc%3Aimage.png?table=block&amp;id=3489995f-c21f-805f-b4cb-e793d9e6e16f&amp;t=3489995f-c21f-805f-b4cb-e793d9e6e16f" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8022906dcd769670d14f" data-id="3479995fc21f8022906dcd769670d14f"><span><div id="3479995fc21f8022906dcd769670d14f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8022906dcd769670d14f" title="布局介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f802fbc40ea35307d9bec"><div>GraceUI 横向日历由滚动区域 + 列表组件组合而成，适用于日期、行程类应用界面；非组件布局模式，更灵活。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8066a9d9f69a7726a81f" data-id="3479995fc21f8066a9d9f69a7726a81f"><span><div id="3479995fc21f8066a9d9f69a7726a81f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8066a9d9f69a7726a81f" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f809c9366c66ef0ec9fa9"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80628b81fd0a51e13c04"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8001ae76caa4d47141c4"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b28a75d7b762b902bb" data-id="3479995fc21f80b28a75d7b762b902bb"><span><div id="3479995fc21f80b28a75d7b762b902bb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b28a75d7b762b902bb" title="完整代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">完整代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80c7a26ec53aa73607d0">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80338d68df4e7390c293"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8099a770c7c94541a373" data-id="3479995fc21f8099a770c7c94541a373"><span><div id="3479995fc21f8099a770c7c94541a373" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8099a770c7c94541a373" title="文章列表"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">文章列表</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f804aa7a2c694d7bb9928"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:535.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ace75b36f-81de-4c3b-bfe6-0464020dcebd%3Aimage.png?table=block&amp;id=3489995f-c21f-804a-a7a2-c694d7bb9928&amp;t=3489995f-c21f-804a-a7a2-c694d7bb9928" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f807e8a9bc8214fb921de" data-id="3479995fc21f807e8a9bc8214fb921de"><span><div id="3479995fc21f807e8a9bc8214fb921de" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807e8a9bc8214fb921de" title="组件说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80128b95ed1d88146b64"><div>内部使用 gui-image 组件完美实现图片的兼容和加载效果；如果组件属性不能满足您的项目需求，请复制此组件命名为自己的组件进行改进 ；演示代码演示了最基础用法，更复杂的应用演示见左侧手册文章列表相关；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806aaad0f0329069d86f" data-id="3479995fc21f806aaad0f0329069d86f"><span><div id="3479995fc21f806aaad0f0329069d86f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806aaad0f0329069d86f" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8011b702f3e42d53d02c"><div>gui-article-list : /graceUI/组件目录/gui-article-list</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f807db320f9e25f8acb49" data-id="3479995fc21f807db320f9e25f8acb49"><span><div id="3479995fc21f807db320f9e25f8acb49" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807db320f9e25f8acb49" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f807c89d1c782a488b4e8"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80ba8b6fe80f99691458"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c6ae40c44db27d20c2"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80658936eab5e1aaa46d" data-id="3479995fc21f80658936eab5e1aaa46d"><span><div id="3479995fc21f80658936eab5e1aaa46d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80658936eab5e1aaa46d" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80e9ac37e701998ec04d"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80c1b508f379ba73a861"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f5a50de6aa15055be0"><td class="" style="width:120px"><div class="notion-simple-table-cell">articles</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文章列表数据，格式见 article.js, 如果您的 api 返回值格式与组件不一致，请转换对应的格式或者改造组件。</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80509008f642113b1b19"><td class="" style="width:120px"><div class="notion-simple-table-cell">titleStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">lineHeight:44rpx;font-size:32rpx;color:#2B2E3D;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文章标题样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c48c1bd3d3fa316570"><td class="" style="width:120px"><div class="notion-simple-table-cell">itemStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Sting</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">background-color:#FFFFFF;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">列表项目样式</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8016a638eca7ff781258" data-id="3479995fc21f8016a638eca7ff781258"><span><div id="3479995fc21f8016a638eca7ff781258" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8016a638eca7ff781258" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80e8a08efc34db91ab93">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8082ae51e20658af2f0e"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8023ae43c59302d9db0d" data-id="3479995fc21f8023ae43c59302d9db0d"><span><div id="3479995fc21f8023ae43c59302d9db0d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8023ae43c59302d9db0d" title="文章列表实战演示"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">文章列表实战演示</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80db85cec9c9b6fd3f55"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:534.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4b595382-6752-4074-bd84-ef5e7f4fdaa1%3Aimage.png?table=block&amp;id=3489995f-c21f-80db-85ce-c9c9b6fd3f55&amp;t=3489995f-c21f-80db-85ce-c9c9b6fd3f55" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8058a243e1972cbfcdeb" data-id="3479995fc21f8058a243e1972cbfcdeb"><span><div id="3479995fc21f8058a243e1972cbfcdeb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8058a243e1972cbfcdeb" title="演示介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80798a17fe093d21595e"><div>利用 页面组件 + 切换导航 + 文章列表 + 刷新组件 + 加载组件 完成布局；点击分类切换对应的文章列表数据模式 ( 运行效率较高 )，选项卡模式见左侧手册；完整的实现了文章列表页面布局、刷新、加载、分类切换等功能；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80aabab9ea76eb24de54" data-id="3479995fc21f80aabab9ea76eb24de54"><span><div id="3479995fc21f80aabab9ea76eb24de54" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80aabab9ea76eb24de54" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80668253d74790f89422"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f802caaebc31f6c26399e"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80afb3f6d49884db09e8"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f808b83bde59697a25880" data-id="3479995fc21f808b83bde59697a25880"><span><div id="3479995fc21f808b83bde59697a25880" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f808b83bde59697a25880" title="完整代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">完整代码</span></span></h4><div class="notion-text notion-block-3479995fc21f807dbadcd950dcffd718">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80d9b788c16345008045"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80319241caaa3e777bee" data-id="3479995fc21f80319241caaa3e777bee"><span><div id="3479995fc21f80319241caaa3e777bee" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80319241caaa3e777bee" title="文章列表选项卡"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">文章列表选项卡</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f804abc88f5d65891ff17"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:544px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3b1b11d2-5bfb-42ed-8f77-7d1b80fc9edc%3Aimage.png?table=block&amp;id=3489995f-c21f-804a-bc88-f5d65891ff17&amp;t=3489995f-c21f-804a-bc88-f5d65891ff17" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806eb7b3cbfe595a4889" data-id="3479995fc21f806eb7b3cbfe595a4889"><span><div id="3479995fc21f806eb7b3cbfe595a4889" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806eb7b3cbfe595a4889" title="相关介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">相关介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f804389aaf88fd7044442"><div>1、使用页面组件+切换导航组件+轮播组件+滚动区域组合实现；
2、完整的刷新、加载、分类切换逻辑；
3、基于滚动区域的模拟形式的刷新及加载；
4、请参考演示数据的逻辑连接自己的后端 api 获取数据；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80539ea3eb2485a319f7" data-id="3479995fc21f80539ea3eb2485a319f7"><span><div id="3479995fc21f80539ea3eb2485a319f7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80539ea3eb2485a319f7" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8067afdcec95f52630da"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80f6a42dd39ea83a9c73"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8020956be1550845cfca"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80eb9c66f952a0179d52" data-id="3479995fc21f80eb9c66f952a0179d52"><span><div id="3479995fc21f80eb9c66f952a0179d52" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80eb9c66f952a0179d52" title="重要说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">重要说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8065ab5ac482e8e96f02"><div>此页面基于轮播 + 滚动区域 + 文章列表组件实现，在低端机上有可能因为以下原因造成页面卡顿，我们也与官方沟通过此类情况，总结如下 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f8032a153deff807ae776" style="list-style-type:decimal"><li>图片过大并且数量较多，解决方案 : 后端压缩图片尺寸（与uni-app 官方沟通、验证过）；</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f801cb5d0d90ed84d5b18" style="list-style-type:decimal"><li>nvue 端即便使用 list cell 依旧不能解决安卓低端机器卡顿问题，请使用 vue 版本实现（ uni-app 底层对图片组件进行了改进存在渲染问题 ）；</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-3479995fc21f80819746e1568ae01d08" style="list-style-type:decimal"><li>如果图片左右布局请使用 列表组件来代替此页面的 文章列表 组件；</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-3479995fc21f80d0930ae5520185b203" style="list-style-type:decimal"><li>卡顿现象多出现于 app 顿，小程序端运行良好；</li></ol></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80fa8199fce15cedfdad" data-id="3479995fc21f80fa8199fce15cedfdad"><span><div id="3479995fc21f80fa8199fce15cedfdad" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80fa8199fce15cedfdad" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80cca262e652a90b45bd">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80c8b4f7dc3613880d0a"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80be935fd1b89540b7e1" data-id="3479995fc21f80be935fd1b89540b7e1"><span><div id="3479995fc21f80be935fd1b89540b7e1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80be935fd1b89540b7e1" title="内容编辑器组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">内容编辑器组件</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8009a3f7caf75011158b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:564.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abbed9aa5-28b9-4f99-aacf-4361ea43a7c6%3Aimage.png?table=block&amp;id=3489995f-c21f-8009-a3f7-caf75011158b&amp;t=3489995f-c21f-8009-a3f7-caf75011158b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8084add2faeeab80ac28" data-id="3479995fc21f8084add2faeeab80ac28"><span><div id="3479995fc21f8084add2faeeab80ac28" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8084add2faeeab80ac28" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f808a829ade8eca640a67"><div>gui-content-editor 编辑器组件目标是提供一个灵活的前端编辑器给用户来使用，具备以下特色 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f809c8801c85816d29875" style="list-style-type:decimal"><li>体验较好、功能丰富、全端兼容；</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f80d9b3aae8559e310d70" style="list-style-type:decimal"><li>内容选项可以删除、排序；</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-3479995fc21f80c1b79deba9a5681b61" style="list-style-type:decimal"><li>以数组形式收集编辑器数据，可以使用 JSON.stringify() 将数据序列化后提交给后端并保存到数据库;</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-3479995fc21f80d1be47f530a5ba7046" style="list-style-type:decimal"><li>配套提供数据对应的解析器，用于展示编辑器产生的文章数据，体验更好；</li></ol></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c182b3dffb2f3a83f2" data-id="3479995fc21f80c182b3dffb2f3a83f2"><span><div id="3479995fc21f80c182b3dffb2f3a83f2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c182b3dffb2f3a83f2" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80378a57f609e0a8851f"><div>gui-content-editor : GraceUI 组件目录/gui-content-editor.vue</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b096abed7387416956" data-id="3479995fc21f80b096abed7387416956"><span><div id="3479995fc21f80b096abed7387416956" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b096abed7387416956" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f806c8e98cc66471b55b6"><div>@deleteImage 删除已上传图片时触发，携带参数 : 图片路径。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b1b0a0cd7d83ab6a17" data-id="3479995fc21f80b1b0a0cd7d83ab6a17"><span><div id="3479995fc21f80b1b0a0cd7d83ab6a17" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b1b0a0cd7d83ab6a17" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80879cbbe15584735af6"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80658291c558c31af82c"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806b92d4fc3b6e47470c"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80019a0ace482da162ba" data-id="3479995fc21f80019a0ace482da162ba"><span><div id="3479995fc21f80019a0ace482da162ba" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80019a0ace482da162ba" title="上传后端返回值格式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">上传后端返回值格式</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80118acbf77af6d080a1" data-id="3479995fc21f80118acbf77af6d080a1"><span><div id="3479995fc21f80118acbf77af6d080a1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80118acbf77af6d080a1" title="使用说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">使用说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80f5ad6ddee7d737eb13"><div>编辑器默认值赋值方式在演示代码 mounted() 处，请参考后用于文章编辑功能；
采用提交时上传图片方式，上传代码在演示代码中已经写好；
上传图片时采用一次一个循环上传的方式进行上传；
我们已经为大家写好了基于 php 和 go 语言的后端源码，请加入 GraceUI 付费用户 QQ 群，进入群文件进行下载。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803b8451fc9237d9b2db" data-id="3479995fc21f803b8451fc9237d9b2db"><span><div id="3479995fc21f803b8451fc9237d9b2db" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803b8451fc9237d9b2db" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80eb8211d2943a7466b1">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80b3b776dc3b5149f6f7"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8042bc22c8758082d4e5" data-id="3479995fc21f8042bc22c8758082d4e5"><span><div id="3479995fc21f8042bc22c8758082d4e5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8042bc22c8758082d4e5" title="编辑器组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">编辑器组件</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8036b3ced926f3651897"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:552.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A094cc6a8-378b-4ff1-8ac8-32e39b21e042%3Aimage.png?table=block&amp;id=3489995f-c21f-8036-b3ce-d926f3651897&amp;t=3489995f-c21f-8036-b3ce-d926f3651897" alt="notion image" loading="lazy" decoding="async"/></div></figure><blockquote class="notion-quote notion-block-3479995fc21f80348da9c4b74c3a9b35"><div>此组件已废弃，仅为老用户保留，新版本组件请移步手册左侧 内容编辑器 组件。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d1a05adec4347c6494" data-id="3479995fc21f80d1a05adec4347c6494"><span><div id="3479995fc21f80d1a05adec4347c6494" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d1a05adec4347c6494" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80a194ebdf131ff07b6a"><div>gui-editor 编辑器组件目标是提供一个灵活的前端编辑器给用户来使用，具备以下特色 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f809ca42fde24becaf0e2" style="list-style-type:decimal"><li>体验较好、功能丰富、全端兼容；</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f805796f7c2e926db17b1" style="list-style-type:decimal"><li>内容选项可以删除、排序；</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-3479995fc21f80188749ff378fe2003b" style="list-style-type:decimal"><li>以数组形式收集编辑器数据，可以使用 JSON.stringify() 将数据序列化后提交给后端并保存到数据库;</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-3479995fc21f80fd8c04eafd9b6980f3" style="list-style-type:decimal"><li>配套提供数据对应的解析器，用于展示编辑器产生的文章数据，体验更好；</li></ol></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f807d8867e119d9024fba" data-id="3479995fc21f807d8867e119d9024fba"><span><div id="3479995fc21f807d8867e119d9024fba" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807d8867e119d9024fba" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f804a88ebf7e17977395c"><div>gui-editor : /graceUI/组件目录/gui-editor</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ef9241c2ec790b5508" data-id="3479995fc21f80ef9241c2ec790b5508"><span><div id="3479995fc21f80ef9241c2ec790b5508" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ef9241c2ec790b5508" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f806698c4f21df4abb1e9"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80b6831ad9d86ebf5329"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f808e983bd00561b68d7a"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80879f81fa8c5f6e3aa5" data-id="3479995fc21f80879f81fa8c5f6e3aa5"><span><div id="3479995fc21f80879f81fa8c5f6e3aa5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80879f81fa8c5f6e3aa5" title="上传后端返回值格式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">上传后端返回值格式</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b38c68d5902825c7b9" data-id="3479995fc21f80b38c68d5902825c7b9"><span><div id="3479995fc21f80b38c68d5902825c7b9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b38c68d5902825c7b9" title="使用说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">使用说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8042acd7d15dbb45858a"><div>编辑器默认值赋值方式在演示代码 onload 函数内，请参考后用于文章编辑功能；才有提交时上传图片方式，上传代码在演示代码中已经写好；上传图片时才有一次一个循环上传的方式进行上传，后端接收代码 php 版本 示例 :</div><div class="notion-text notion-block-3479995fc21f80a89e65eb7ac104b02e">建议 : 写一个简单的单图上传功能，调试接口返回值，保证接口无误再使用组件;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f807aaae0e545496cac9d" data-id="3479995fc21f807aaae0e545496cac9d"><span><div id="3479995fc21f807aaae0e545496cac9d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807aaae0e545496cac9d" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8006ad65f2a5fbb90fd5">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f805080fcf93bd6c462c0"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80938c13c213c8cdb0c2" data-id="3479995fc21f80938c13c213c8cdb0c2"><span><div id="3479995fc21f80938c13c213c8cdb0c2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80938c13c213c8cdb0c2" title="将编辑器内容转换为HTML"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">将编辑器内容转换为HTML</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8081a54ed672ec54ccb8" data-id="3479995fc21f8081a54ed672ec54ccb8"><span><div id="3479995fc21f8081a54ed672ec54ccb8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8081a54ed672ec54ccb8" title="转换介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">转换介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80558038eb86517bc81b"><div>说明 :
此功能为旧版本，仅为老用户保留，新的转换源码（ php 和 go 语言 ）请加入 GraceUI 付费用户群获取。</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f80c1bf6fe4ff4b0bfea9" style="list-style-type:decimal"><li>此页面以 php 为例 [ 其他后端语言原理类似 ]，演示了如何将 GraceUI 编辑器产生的项目转换为 html 内容，最终保存至数据库内；</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f8045ad1afdf1321c5d36" style="list-style-type:decimal"><li>项目实际使用流程 :</li></ol><div class="notion-text notion-block-3479995fc21f8069a9e9d150e6092171">02.1 前端提交内容 :
前端编辑器产生内容项目 &gt; 转换为 Json 格式发送给后端 api &gt; 后端将其转换为 html 保存至数据库 ( 可以直接赋值给 ueditor 编辑器进行编辑 ) ;
02.2 后端提交内容
后端使用编辑器 ( 如 : ueditor ) 生成内容 &gt; 使用我们提供的 解析器 ( http://www.graceui.com/v5/info/10101-100.html ) 解析给前端进行内容展示；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803799a6df872ed2d1bb" data-id="3479995fc21f803799a6df872ed2d1bb"><span><div id="3479995fc21f803799a6df872ed2d1bb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803799a6df872ed2d1bb" title="php 版本演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">php 版本演示代码</span></span></h4><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f803e8c46c5e9553b5826" data-id="3479995fc21f803e8c46c5e9553b5826"><span><div id="3479995fc21f803e8c46c5e9553b5826" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803e8c46c5e9553b5826" title="5.0内容渲染组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">5.0内容渲染组件</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f802db34bd4d18db6a4d4" data-id="3479995fc21f802db34bd4d18db6a4d4"><span><div id="3479995fc21f802db34bd4d18db6a4d4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802db34bd4d18db6a4d4" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80f994dbcd346f530208"><div>gui-content-render [ 内容解析组件 ] 功能包括 :
1、解析 GraceUI 编辑器产生的内容;
2、经过转换( 我们提供 php 和 go 语言版本的转换代码 ) 可以适配各类网页编辑器，如 ：UEditor 生成的 html 内容;
3、提供图片预览功能、样式更好看，基于原生组件渲染，效率更高;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c3a2c6f954965ae85d" data-id="3479995fc21f80c3a2c6f954965ae85d"><span><div id="3479995fc21f80c3a2c6f954965ae85d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c3a2c6f954965ae85d" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80b2b274ced1dd7e11b7"><div>gui-content-render : GraceUI 组件目录/gui-content-render.vue</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f801799cbc1d668be245e" data-id="3479995fc21f801799cbc1d668be245e"><span><div id="3479995fc21f801799cbc1d668be245e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f801799cbc1d668be245e" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80dcaab3f3e1609b1b7f"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f805a857fd18b006132c6"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8060ac30d87183c5b301"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f98901ff78d582a210" data-id="3479995fc21f80f98901ff78d582a210"><span><div id="3479995fc21f80f98901ff78d582a210" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f98901ff78d582a210" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80558886d35a46387237"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80c0ad86ce31894d409c"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8027abf0f68e64cfbe0b"><td class="" style="width:120px"><div class="notion-simple-table-cell">items</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文章详情数据，数组格式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80e68ffdd8af79e58905"><td class="" style="width:120px"><div class="notion-simple-table-cell">itemMargin</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">20rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">项目直接的间距</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8022b4a5ec78ffec051d"><td class="" style="width:120px"><div class="notion-simple-table-cell">padding</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">30</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文章详情整体左右间距</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d2ba22dd1ac3a90e6f"><td class="" style="width:120px"><div class="notion-simple-table-cell">textClass</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[‘gui-article-text’, ‘gui-primary-text’]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文本样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c99940ed3fc33658fd"><td class="" style="width:120px"><div class="notion-simple-table-cell">centerClass</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[‘gui-article-center’, ‘gui-primary-text’]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">居中样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80e8b81cfba20092ed13"><td class="" style="width:120px"><div class="notion-simple-table-cell">imgRadius</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">6rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">图片圆角</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f800c9bfed049965b1993"><td class="" style="width:120px"><div class="notion-simple-table-cell">quoteClass</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[‘gui-article-quote’, ‘gui-primary-text’, ‘gui-bg-gray’, ‘gui-dark-bg-level-2’]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">引用样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8083999bca0d726d85b8"><td class="" style="width:120px"><div class="notion-simple-table-cell">strongClass</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[‘gui-article-strong’, ‘gui-primary-text’]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">加粗样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80938faae49c600ad0eb"><td class="" style="width:120px"><div class="notion-simple-table-cell">splineClass</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[‘gui-article-spline’, ‘gui-color-gray’]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">分割线样式</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80978d10fa025f64a22d" data-id="3479995fc21f80978d10fa025f64a22d"><span><div id="3479995fc21f80978d10fa025f64a22d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80978d10fa025f64a22d" title="为什么使用此组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">为什么使用此组件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80c781c8d28e4ad26957"><div>1、富文本 : 不支持格式较多、不够稳定、不支持图片点击事件;
2、webview : 交互困难，页面无法使用其他组件，效率较低、效果不好;
3、本组件基于原生组件渲染，效率更高。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8059b23de7c63605e53e" data-id="3479995fc21f8059b23de7c63605e53e"><span><div id="3479995fc21f8059b23de7c63605e53e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8059b23de7c63605e53e" title="项目数据结构"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">项目数据结构</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80db840ccd7aba99d1c0"><div>[{“type”:“txt”,“content”:““},……]</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80cab6dcd773fa32339c" data-id="3479995fc21f80cab6dcd773fa32339c"><span><div id="3479995fc21f80cab6dcd773fa32339c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80cab6dcd773fa32339c" title="支持的类型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">支持的类型</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8054b3c6e650b1224e30"><div>p - 普通文本</div><div class="notion-text notion-block-3479995fc21f801c8248e178f960e4be">center - 居中</div><div class="notion-text notion-block-3479995fc21f80a78e4df4b3e647b13e">img - 图片</div><div class="notion-text notion-block-3479995fc21f8025b3f7f2371e1d775b">blockquote - 引用</div><div class="notion-text notion-block-3479995fc21f80b5bb90d23d91988650">pre - 代码块</div><div class="notion-text notion-block-3479995fc21f803890d5c3440ceac124">strong - 加粗</div><div class="notion-text notion-block-3479995fc21f80d096aff13d320b948c">a - 链接</div><div class="notion-text notion-block-3479995fc21f80229d55d7e0d592b1a8">hr - 分隔线 [ 编辑器对应 hr 标签 ]
h1 ~ h6
video 视频</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80409656dcfe5539f08c" data-id="3479995fc21f80409656dcfe5539f08c"><span><div id="3479995fc21f80409656dcfe5539f08c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80409656dcfe5539f08c" title="转换思路"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">转换思路</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f800cbc4bc370aecb67ac"><div>我们提供了 php 和 go 语言版本的完整的配套后端源码，请在GraceUI 付费用户群内下载 ~</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80e7aa64fd42085037fa" data-id="3479995fc21f80e7aa64fd42085037fa"><span><div id="3479995fc21f80e7aa64fd42085037fa" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80e7aa64fd42085037fa" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80719e5cfa4435b67a3f">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80ae8be4cf18e0efe67b"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f804eae11c27bf9d003e5" data-id="3479995fc21f804eae11c27bf9d003e5"><span><div id="3479995fc21f804eae11c27bf9d003e5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f804eae11c27bf9d003e5" title="文章详情"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">文章详情</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80018635f8fa4b19209b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:518.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac83b1e06-e675-4b2d-a32a-d4b1fa862fe9%3Aimage.png?table=block&amp;id=3489995f-c21f-8001-8635-f8fa4b19209b&amp;t=3489995f-c21f-8001-8635-f8fa4b19209b" alt="notion image" loading="lazy" decoding="async"/></div></figure><blockquote class="notion-quote notion-block-3479995fc21f8073abbad4d29a3b3595"><div>此组件已废弃，仅为老用户保留，新版本组件请移步手册左侧 内容渲染 组件。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f9922cf0a451a512bb" data-id="3479995fc21f80f9922cf0a451a512bb"><span><div id="3479995fc21f80f9922cf0a451a512bb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f9922cf0a451a512bb" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f803faa77eca2de60549f"><div>gui-article-info [ 文章内容解析组件 ] 功能包括 :
1、解析 GraceUI 编辑器产生的内容;
2、经过转换( 我们提供 php 版本的转换代码 ) 可以适配 百度 UEditor 生成的 html 内容;
3、提供图片预览功能、样式更好看;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80a88b14dddda4eee233" data-id="3479995fc21f80a88b14dddda4eee233"><span><div id="3479995fc21f80a88b14dddda4eee233" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80a88b14dddda4eee233" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f801ba0e4df5cffe67a33"><div>gui-article-info : /graceUI/组件目录/gui-article-info</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80888201c05fd3a05d75" data-id="3479995fc21f80888201c05fd3a05d75"><span><div id="3479995fc21f80888201c05fd3a05d75" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80888201c05fd3a05d75" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80049b0aca57bc5ddd75"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f802b992ed8efb46851a2"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a68c8dd8526de774bf"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80159ed4d0f99f7e4153" data-id="3479995fc21f80159ed4d0f99f7e4153"><span><div id="3479995fc21f80159ed4d0f99f7e4153" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80159ed4d0f99f7e4153" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80839370f9db32ce8ae4"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8032a848c553f6055079"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80638aede6a4d81f83af"><td class="" style="width:120px"><div class="notion-simple-table-cell">article</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文章详情数据，数组格式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809dbb8dfe0a93b4ecb1"><td class="" style="width:120px"><div class="notion-simple-table-cell">itemMargin</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">20rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">项目直接的间距</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8092acf6e236e937ff95"><td class="" style="width:120px"><div class="notion-simple-table-cell">padding</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">30</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文章详情整体左右间距</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80cb9791debb6a522e04"><td class="" style="width:120px"><div class="notion-simple-table-cell">textStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">line-height:50rpx; font-size:28rpx; color:#2B2E3D;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文本样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8071ab06cb508f20dca4"><td class="" style="width:120px"><div class="notion-simple-table-cell">centerStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">line-height:50rpx; font-size:28rpx; color:#2B2E3D;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">居中样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c3824adb2e6a9bc485"><td class="" style="width:120px"><div class="notion-simple-table-cell">imgRadius</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">6rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">图片圆角</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8088b458c2a857a22362"><td class="" style="width:120px"><div class="notion-simple-table-cell">quoteStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">line-height:44rpx; font-size:28rpx; color:#2B2E3D; padding:20rpx; background-color:#F8F8F8;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">引用样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f802d9fefef697771badc"><td class="" style="width:120px"><div class="notion-simple-table-cell">strongStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">line-height:50rpx; font-size:28rpx; color:#2B2E3D;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">加粗样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80bcb78dc77fe5f258dd"><td class="" style="width:120px"><div class="notion-simple-table-cell">splineStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">line-height:50rpx; font-size:30rpx; color:rgba(69, 90, 100, 0.6);</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">分割线样式</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80498fb9c3b54562054b" data-id="3479995fc21f80498fb9c3b54562054b"><span><div id="3479995fc21f80498fb9c3b54562054b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80498fb9c3b54562054b" title="为什么使用此组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">为什么使用此组件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80688346d385f8c5d73f"><div>1、富文本 : 不支持格式较多、不够稳定、不支持图片点击事件;
2、webview : 交互困难，页面无法使用其他组件;
3、效率较低、效果不好!</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806b8fddc86fc0c97c43" data-id="3479995fc21f806b8fddc86fc0c97c43"><span><div id="3479995fc21f806b8fddc86fc0c97c43" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806b8fddc86fc0c97c43" title="项目数据结构"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">项目数据结构</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8064bca2dd9b961a4b50"><div>[{“type”:“txt”,“content”:““},……]</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f804b8a7def1b0473685e" data-id="3479995fc21f804b8a7def1b0473685e"><span><div id="3479995fc21f804b8a7def1b0473685e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f804b8a7def1b0473685e" title="支持的类型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">支持的类型</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80efa7d6ee8d3492f5ad"><div>txt - 普通文本</div><div class="notion-text notion-block-3479995fc21f8069aec7e3128c977124">center - 居中</div><div class="notion-text notion-block-3479995fc21f80598ffbdecd323fb50c">img - 图片</div><div class="notion-text notion-block-3479995fc21f806d81bcd57d10ea8ab8">quote - 引用</div><div class="notion-text notion-block-3479995fc21f8064884ad94d7b472368">pre - 代码块</div><div class="notion-text notion-block-3479995fc21f8029aed7d769d71644e7">strong - 加粗</div><div class="notion-text notion-block-3479995fc21f80a59512f7d9a94d21e8">link - 链接</div><div class="notion-text notion-block-3479995fc21f808fa47dd1b87b5462a5">spline - 分隔线 [ 编辑器对应 hr 标签 ]
h1 ~ h6 2021.07.12 新增
video 2021.10.08 新增</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f801aa8b2fff0b398e9e6" data-id="3479995fc21f801aa8b2fff0b398e9e6"><span><div id="3479995fc21f801aa8b2fff0b398e9e6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f801aa8b2fff0b398e9e6" title="转换思路"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">转换思路</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8014a87ef628c2f60e2b"><div>我们提供了 php 版本的 基于“百度 UEditor“ 生成内容的转换代码，请在GraceUI 付费用户群内下载 ~</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f804693f3eb1babf9c1ed" data-id="3479995fc21f804693f3eb1babf9c1ed"><span><div id="3479995fc21f804693f3eb1babf9c1ed" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f804693f3eb1babf9c1ed" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8062a387c869e4911db7">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8035ad03ea76daa420d7"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8012be06d1ec8e1bc369" data-id="3479995fc21f8012be06d1ec8e1bc369"><span><div id="3479995fc21f8012be06d1ec8e1bc369" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8012be06d1ec8e1bc369" title="富文本"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">富文本</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80a7abdac79ffe130182"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:526.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7ed337b4-d1a2-4f23-9c5f-97afcf756901%3Aimage.png?table=block&amp;id=3489995f-c21f-80a7-abda-c79ffe130182&amp;t=3489995f-c21f-80a7-abda-c79ffe130182" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80368ce5ca7e4492a73a" data-id="3479995fc21f80368ce5ca7e4492a73a"><span><div id="3479995fc21f80368ce5ca7e4492a73a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80368ce5ca7e4492a73a" title="相关说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">相关说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f803ca491c6cc5db0ead0"><div>本页面核心目的是演示将及字符串转换为数组，以满足 uni-app 原生 rich-text 组件的数据需要；
页面需要引入 : parserHTML.js
var parserHtml = require(“@/GraceUI5/js/parserHTML.js”);</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8002b4d3ca534a087aa7" data-id="3479995fc21f8002b4d3ca534a087aa7"><span><div id="3479995fc21f8002b4d3ca534a087aa7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8002b4d3ca534a087aa7" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f807480cfd596703ee498"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f807195fae5e3418c8efa"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803c9598e261647e38fc"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔ 效果不好</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f809f8012ca72d6fd8c93" data-id="3479995fc21f809f8012ca72d6fd8c93"><span><div id="3479995fc21f809f8012ca72d6fd8c93" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f809f8012ca72d6fd8c93" title="一些问题"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一些问题</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80ae8c82d7ff77e2998b"><div>因 uni-app 提供的 rich-text 组件底层存在一下缺点 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f8055bba7f407f3978cda" style="list-style-type:decimal"><li>兼容性较差, nvue 端存在问题较多；</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f8073a187e10379b5bdab" style="list-style-type:decimal"><li>对于编辑器生成的 html 解析效率不高，复杂 dom 解析效果不好；</li></ol></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f800f98e2de55f70b4cdc" data-id="3479995fc21f800f98e2de55f70b4cdc"><span><div id="3479995fc21f800f98e2de55f70b4cdc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f800f98e2de55f70b4cdc" title="解决建议"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">解决建议</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f804c8f94fef25078d245"><div>使用 GraceUI 提供的编辑器及解析器完成文章相关工作；通过 uni-app 插件市场发现更多更好用的富文本插件，网址 :</div><div class="notion-text notion-block-3479995fc21f80078128d108d688a37e">https://ext.dcloud.net.cn/search?q=parse</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8059bef3e2d4703343f0" data-id="3479995fc21f8059bef3e2d4703343f0"><span><div id="3479995fc21f8059bef3e2d4703343f0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8059bef3e2d4703343f0" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8040a2f0c5a3b545d1a1">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8017837fe21c9f11631f"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80ceb239d0a0630b74f0" data-id="3479995fc21f80ceb239d0a0630b74f0"><span><div id="3479995fc21f80ceb239d0a0630b74f0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ceb239d0a0630b74f0" title="展开阅读"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">展开阅读</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80e49d50dce83d831146"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:535.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acdb9d45e-a0e1-46af-83b4-674250a1eadb%3Aimage.png?table=block&amp;id=3489995f-c21f-80e4-9d50-dce83d831146&amp;t=3489995f-c21f-80e4-9d50-dce83d831146" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8000896ed65a963f688e" data-id="3479995fc21f8000896ed65a963f688e"><span><div id="3479995fc21f8000896ed65a963f688e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8000896ed65a963f688e" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8010888cdef4935262b7"><div>gui-spread : /graceUI/组件目录/gui-spread</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80038791f2963cb39747" data-id="3479995fc21f80038791f2963cb39747"><span><div id="3479995fc21f80038791f2963cb39747" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80038791f2963cb39747" title="功能描述"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">功能描述</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80a9b444d3438bddde6f"><div>可配置限制高度，组件自动完成点击展开功能;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8041b5daeffbb71fcf21" data-id="3479995fc21f8041b5daeffbb71fcf21"><span><div id="3479995fc21f8041b5daeffbb71fcf21" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8041b5daeffbb71fcf21" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f802dba48ea85609c2654"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80c6988eed4a71fb1808"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80e88c4dcff4ff580022"><td class="" style="width:120px"><div class="notion-simple-table-cell">width [ 20200511 新增 ]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">690rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">内容区域宽度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f802b8a9ef70b41da7d84"><td class="" style="width:120px"><div class="notion-simple-table-cell">height</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">600rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">内容未展开前高度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f8849cc390c598a783"><td class="" style="width:120px"><div class="notion-simple-table-cell">btnTxt</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">展开阅读全文</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">按钮文本</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809f83b8d2ccebade630"><td class="" style="width:120px"><div class="notion-simple-table-cell">btnColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#999999</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">按钮文本颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8033849aefaf985d22d9"><td class="" style="width:120px"><div class="notion-simple-table-cell">btnTxtSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">28rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">按钮文本大小</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80b58226e0c1a2caf349"><td class="" style="width:120px"><div class="notion-simple-table-cell">zIndex</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">按钮组件层级</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8066b9f4c6fef5f79df3"><td class="" style="width:120px"><div class="notion-simple-table-cell">isShrink</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">false</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示收缩按钮</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80fba73bc55d4893300d"><td class="" style="width:120px"><div class="notion-simple-table-cell">shrinkBtnTxt</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">收缩展示</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">收缩按钮文本</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80838c4ac1d65d2a6501" data-id="3479995fc21f80838c4ac1d65d2a6501"><span><div id="3479995fc21f80838c4ac1d65d2a6501" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80838c4ac1d65d2a6501" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f808cbab4f20b69c29b2c"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80f789edf3ec767f8336"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d791d3fe092f717235"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8084a048e398cccb753a" data-id="3479995fc21f8084a048e398cccb753a"><span><div id="3479995fc21f8084a048e398cccb753a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8084a048e398cccb753a" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f809cb0d2c6eb6c7f45c6">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80a283e1ea697e0ee39b"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80b3ad52c4dcfbb09ba6" data-id="3479995fc21f80b3ad52c4dcfbb09ba6"><span><div id="3479995fc21f80b3ad52c4dcfbb09ba6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b3ad52c4dcfbb09ba6" title="评论布局"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">评论布局</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f803db2e7f764c56f6fac"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:537.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae55fc624-0617-499d-9c36-fd6331027bb9%3Aimage.png?table=block&amp;id=3489995f-c21f-803d-b2e7-f764c56f6fac&amp;t=3489995f-c21f-803d-b2e7-f764c56f6fac" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803aa071fcea8a418981" data-id="3479995fc21f803aa071fcea8a418981"><span><div id="3479995fc21f803aa071fcea8a418981" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803aa071fcea8a418981" title="布局介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80fc9e1ac15f6149c9cc"><div>GaceUI 为您提供了评论列表样式，您可以通过基础样式组合出多种模式的评论列表效果;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80fda709c2efed47e9e5" data-id="3479995fc21f80fda709c2efed47e9e5"><span><div id="3479995fc21f80fda709c2efed47e9e5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80fda709c2efed47e9e5" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f802c9c02ec1fa02101e3"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8043a077c7be5b9290e7"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a7ac84c773fff7dd3f"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b99936ed4b06f1d8e8" data-id="3479995fc21f80b99936ed4b06f1d8e8"><span><div id="3479995fc21f80b99936ed4b06f1d8e8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b99936ed4b06f1d8e8" title="样式说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">样式说明</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80e582c8ee0b2ed683dc" data-id="3479995fc21f80e582c8ee0b2ed683dc"><span><div id="3479995fc21f80e582c8ee0b2ed683dc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80e582c8ee0b2ed683dc" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f804fa201cab0f582f111">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8018a8f5d8e102fa8e0c"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f806da99eefde2058915e" data-id="3479995fc21f806da99eefde2058915e"><span><div id="3479995fc21f806da99eefde2058915e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806da99eefde2058915e" title="评论提交"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">评论提交</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80c7b5abcb8d020151b4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:533.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A62b97133-d53d-43e1-a1d6-8f314fa86abb%3Aimage.png?table=block&amp;id=3489995f-c21f-80c7-b5ab-cb8d020151b4&amp;t=3489995f-c21f-80c7-b5ab-cb8d020151b4" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f807aab8bdbc8630dbd09" data-id="3479995fc21f807aab8bdbc8630dbd09"><span><div id="3479995fc21f807aab8bdbc8630dbd09" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807aab8bdbc8630dbd09" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80c0af6cfa36d6c3b9b6"><div>底部弹出形式的评论提交组件，包含 at、内容、图片信息;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80a9a3e3dc7faf405312" data-id="3479995fc21f80a9a3e3dc7faf405312"><span><div id="3479995fc21f80a9a3e3dc7faf405312" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80a9a3e3dc7faf405312" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80289ccff8c8caa5b715"><div>gui-submit-comment : /graceUI/组件目录/gui-submit-comment</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8031ace4f3dc1fd151fe" data-id="3479995fc21f8031ace4f3dc1fd151fe"><span><div id="3479995fc21f8031ace4f3dc1fd151fe" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8031ace4f3dc1fd151fe" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f808ba893e09f6b223749"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80178445f0a1c7a51cf0"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806bbf05eba1d22b8d8a"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f800fa067cd0a10d06d32" data-id="3479995fc21f800fa067cd0a10d06d32"><span><div id="3479995fc21f800fa067cd0a10d06d32" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f800fa067cd0a10d06d32" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80a59ef2f7d2e7d482d2"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80b58dace6fa9693f19e"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80069413f314951e20e1"><td class="" style="width:120px"><div class="notion-simple-table-cell">placeholder</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">rgba</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">placeholder 提示文本</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c793a4d0217fc94b70"><td class="" style="width:120px"><div class="notion-simple-table-cell">isImg</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否带有图片选择功能</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f804484b2ecf28d5659e4"><td class="" style="width:120px"><div class="notion-simple-table-cell">atColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#008AFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">@ 文本颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8006885bef3f925b37d1"><td class="" style="width:120px"><div class="notion-simple-table-cell">submitColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#008AFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">提交按钮颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f800988dcf405be426dcf"><td class="" style="width:120px"><div class="notion-simple-table-cell">removeBtnColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#FF0036</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">图片移除按钮颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c28eebc5034933f63d"><td class="" style="width:120px"><div class="notion-simple-table-cell">zIndex 2021.06.11 新增</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">999</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件 z-index 值</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80018e2cdd29263a75f5" data-id="3479995fc21f80018e2cdd29263a75f5"><span><div id="3479995fc21f80018e2cdd29263a75f5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80018e2cdd29263a75f5" title="重要说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">重要说明</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80babf70e8af1273feb6" data-id="3479995fc21f80babf70e8af1273feb6"><span><div id="3479995fc21f80babf70e8af1273feb6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80babf70e8af1273feb6" title="组件方法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件方法</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d0b1b6e16c728afc06" data-id="3479995fc21f80d0b1b6e16c728afc06"><span><div id="3479995fc21f80d0b1b6e16c728afc06" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d0b1b6e16c728afc06" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f801f926ec7288bbbcbd2" data-id="3479995fc21f801f926ec7288bbbcbd2"><span><div id="3479995fc21f801f926ec7288bbbcbd2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f801f926ec7288bbbcbd2" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80b6b99ec315b75c0de0">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f805b9034e7d9b308ece2"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8002afcec6cf090619ea" data-id="3479995fc21f8002afcec6cf090619ea"><span><div id="3479995fc21f8002afcec6cf090619ea" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8002afcec6cf090619ea" title="文章分享"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">文章分享</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f808a90d9d8a256065721"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:530.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acdba2179-c4c3-4863-951e-046448913372%3Aimage.png?table=block&amp;id=3489995f-c21f-808a-90d9-d8a256065721&amp;t=3489995f-c21f-808a-90d9-d8a256065721" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f808c8b50ee32e7b0f637" data-id="3479995fc21f808c8b50ee32e7b0f637"><span><div id="3479995fc21f808c8b50ee32e7b0f637" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f808c8b50ee32e7b0f637" title="布局介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80a39655dddb8e7691a5"><div>利用弹出层组件 + 宫格布局完成布局。
H5 端预览 :
请下载源码内的图片，部署到自己的服务，然后替换自己的图片地址；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f808b9d76c124c476eda1" data-id="3479995fc21f808b9d76c124c476eda1"><span><div id="3479995fc21f808b9d76c124c476eda1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f808b9d76c124c476eda1" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80aebab7e8de120d4ef9"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f808f99f9f1b3e187365f"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80caa5a7e8c20dccb836"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b59820f24609b47054" data-id="3479995fc21f80b59820f24609b47054"><span><div id="3479995fc21f80b59820f24609b47054" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b59820f24609b47054" title="布局代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8062900ae20620b60525">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f805e95fef676a704d270"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8005a4ddddb29b3e0e06" data-id="3479995fc21f8005a4ddddb29b3e0e06"><span><div id="3479995fc21f8005a4ddddb29b3e0e06" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8005a4ddddb29b3e0e06" title="音乐播放器"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">音乐播放器</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8014ab20e4f6650be93b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:546.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A83662587-6eb5-480a-ae1d-83ead294c22d%3Aimage.png?table=block&amp;id=3489995f-c21f-8014-ab20-e4f6650be93b&amp;t=3489995f-c21f-8014-ab20-e4f6650be93b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80dca396d36e543763f1" data-id="3479995fc21f80dca396d36e543763f1"><span><div id="3479995fc21f80dca396d36e543763f1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80dca396d36e543763f1" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f809f826dc41ac2a86088"><div>gui-audio-player : /graceUI/组件目录/gui-audio-player</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806c9355cc27e754253b" data-id="3479995fc21f806c9355cc27e754253b"><span><div id="3479995fc21f806c9355cc27e754253b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806c9355cc27e754253b" title="功能介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">功能介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80ac9782f7d0c08d3565"><div>基于背景音乐api封装的音乐播放器，提供音乐播放、暂停、进度展示、进度选择、列表播放、单曲循环等常用的音乐播放功能；
请使用真机调试体验效果~</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c5abe8c53ed57ac0c8" data-id="3479995fc21f80c5abe8c53ed57ac0c8"><span><div id="3479995fc21f80c5abe8c53ed57ac0c8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c5abe8c53ed57ac0c8" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8049855effc59f158761"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f805d992cf83ee41bdced"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8025a040c515bef34b71"><td class="" style="width:120px"><div class="notion-simple-table-cell">不支持</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">不支持</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f805db8b2cabad0ebe6e6" data-id="3479995fc21f805db8b2cabad0ebe6e6"><span><div id="3479995fc21f805db8b2cabad0ebe6e6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f805db8b2cabad0ebe6e6" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f805a9486d7ca4b9addd0"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f801c8d51e1407330fe8b"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8015bdb1c45ed494674e"><td class="" style="width:120px"><div class="notion-simple-table-cell">color</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#FFFFFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">音乐标题颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d99c1fda36eda6c10a"><td class="" style="width:120px"><div class="notion-simple-table-cell">list</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">音乐列表数据，格式请参考演示代码</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f9b2ded53aa4d14770"><td class="" style="width:120px"><div class="notion-simple-table-cell">listBg</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#292E35</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">音乐列表背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80b0935bc86b00020e27"><td class="" style="width:120px"><div class="notion-simple-table-cell">listHeight</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">880rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">音乐列表高度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80eb88fdc6d99157c4ee"><td class="" style="width:120px"><div class="notion-simple-table-cell">autoplay 2021.05.21 增</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolesn</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否自动播放</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b3962ed60d9b65a1fa" data-id="3479995fc21f80b3962ed60d9b65a1fa"><span><div id="3479995fc21f80b3962ed60d9b65a1fa" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b3962ed60d9b65a1fa" title="兼容性说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容性说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80638eb3f87a7d241d2e"><div>因 H5 端不支持背景音乐 api，故本组件不支持 h5 端;因 nvue 端不支持音乐文件长度获取，故本组件暂不发布 weex 版本（ weex 项目请使用 .vue 完成此功能）;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f807da920d84bfa1d2485" data-id="3479995fc21f807da920d84bfa1d2485"><span><div id="3479995fc21f807da920d84bfa1d2485" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807da920d84bfa1d2485" title="权限说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">权限说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f804694f9e5ab03d807fb"><div>请仔细阅读权限相关要求，被在对应平台完成配置工作 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f8055a066e3037d3802b7" style="list-style-type:decimal"><li>uni-app 资料 https://uniapp.dcloud.io/api/media/background-audio-manager?id=getbackgroundaudiomanager</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f807f85add2ae8085c74d" style="list-style-type:decimal"><li>微信小程序资料 https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#requiredBackgroundModes</li></ol></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8055a04dd968c5e0e137" data-id="3479995fc21f8055a04dd968c5e0e137"><span><div id="3479995fc21f8055a04dd968c5e0e137" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8055a04dd968c5e0e137" title="微信小程序权限添加示例"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">微信小程序权限添加示例</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80e488d8e835043c0e05" data-id="3479995fc21f80e488d8e835043c0e05"><span><div id="3479995fc21f80e488d8e835043c0e05" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80e488d8e835043c0e05" title="扩展说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">扩展说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80e8a60be9a3495d6a6a"><div>播放器组件涉及的样式较多，且不同项目要求不一样，我们无法把他们都封装为属性。所以我们为您提供了完善的基础功能，我们建议您自己根据项目要求对组件进行二次开发!
开发流程 : 01 复制 gui-audio-player 组件文件 &gt; 02 改成自己的文件 &gt; 03 改进组件 &gt; 04 调用自己修改过的组件;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80219774c1f69e1da758" data-id="3479995fc21f80219774c1f69e1da758"><span><div id="3479995fc21f80219774c1f69e1da758" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80219774c1f69e1da758" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8059ab3ccd5699a4f952">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8072bf2cf3e907f57b2b"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f808287c3dcfc5efc11d4" data-id="3479995fc21f808287c3dcfc5efc11d4"><span><div id="3479995fc21f808287c3dcfc5efc11d4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f808287c3dcfc5efc11d4" title="视频播放"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">视频播放</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80baa6cac5a6f6bbb24f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:538.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1bb018e6-c07e-4a31-931c-bf4a10c8f23a%3Aimage.png?table=block&amp;id=3489995f-c21f-80ba-a6ca-c5a6f6bbb24f&amp;t=3489995f-c21f-80ba-a6ca-c5a6f6bbb24f" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8050818bf4636c5d9865" data-id="3479995fc21f8050818bf4636c5d9865"><span><div id="3479995fc21f8050818bf4636c5d9865" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8050818bf4636c5d9865" title="演示介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f809aaaeef44780e4cddf"><div>本页面以课程为例，展示了视频组件的用法， 包含以下功能 :
1 课程描述与课程目录切换;</div><div class="notion-text notion-block-3479995fc21f80cf9d7fedb6ef9aaa88">2 点击视频列表实现视频的切换与播放;</div><div class="notion-text notion-block-3479995fc21f8000af60eec7f26acab3">3 切换播放章节时对应更新头部标题信息;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8026a482c8b543c9a254" data-id="3479995fc21f8026a482c8b543c9a254"><span><div id="3479995fc21f8026a482c8b543c9a254" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8026a482c8b543c9a254" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8010b86eeb853a4f97fb"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f801eb0d2fadf5d22f476"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f800a9f4adbcbf941597c"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f804baa3bf77b14253f67" data-id="3479995fc21f804baa3bf77b14253f67"><span><div id="3479995fc21f804baa3bf77b14253f67" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f804baa3bf77b14253f67" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f805e8a90ff96d04addf9">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f808fb7cbd95187eb80bd"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f802289d3dcaf5571cc91" data-id="3479995fc21f802289d3dcaf5571cc91"><span><div id="3479995fc21f802289d3dcaf5571cc91" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802289d3dcaf5571cc91" title="地图标注"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">地图标注</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8010a319e6c60176fb6b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:546.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acbad3b90-6729-484b-817a-3f10527c1da8%3Aimage.png?table=block&amp;id=3489995f-c21f-8010-a319-e6c60176fb6b&amp;t=3489995f-c21f-8010-a319-e6c60176fb6b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b0bfc2db11928017dc" data-id="3479995fc21f80b0bfc2db11928017dc"><span><div id="3479995fc21f80b0bfc2db11928017dc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b0bfc2db11928017dc" title="重要说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">重要说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8049a51af4262f24771a"><div>此页文档仅用于演示地图组件的某个用法，因为 uni-app 官方 map 组件要求较多，不同平台配置不同，请详细阅读 uni-app 官方手册 map 组件部分 （ 尤其是注意事项部分 ）。
手册地址 : https://uniapp.dcloud.io/component/map</div><div class="notion-text notion-block-3479995fc21f80beb408cc2896cdb6a3"><b>经纬度必须为小数，建议使用 parseFloat() 函数转换一下动态纬度数据；</b></div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8093b9ffc031ea40c9d9" data-id="3479995fc21f8093b9ffc031ea40c9d9"><span><div id="3479995fc21f8093b9ffc031ea40c9d9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8093b9ffc031ea40c9d9" title="坐标拾取"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">坐标拾取</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80d1976ae63fbfc28f91"><div>坐标拾取工具 ( 可以手动获取某个地点的坐标 )</div><div class="notion-text notion-block-3479995fc21f8076b61ac2846840c128">https://lbs.qq.com/tool/getpoint/index.html</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f809bbf90e2a5277bb76f" style="list-style-type:decimal"><li>利用后端语言开发一套 api 动态获取一个具体位置的坐标， 后端代码 php 版本请在 GraceUI 已付费用户群群文件获取。</li></ol></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806a98c7e5c6b0451296" data-id="3479995fc21f806a98c7e5c6b0451296"><span><div id="3479995fc21f806a98c7e5c6b0451296" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806a98c7e5c6b0451296" title="定位图标"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">定位图标</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f809db962eaaaf41f007b"><div>请 GraceUI 已付费用户群群文件 下载定位图标并将其部署到 /static/ 目录下, /static/location.png</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80769b17c1e438d9e001" data-id="3479995fc21f80769b17c1e438d9e001"><span><div id="3479995fc21f80769b17c1e438d9e001" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80769b17c1e438d9e001" title="示例说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">示例说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f808e91def77cc03e2c10"><div>示例代码演示了搜索一个具体位置并在地图上进行标注；示例代码演示了点击标注点后使用第三方导航的功能；示例代码小程序端运行时请 “打开调试”;演示获取当前位置信息方法；演示详细位置到坐标的转换；演示根据精度纬度获取详细地址；需要打包生效 ( 建议使用 vue 完成地图功能页面 )；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80e3a62ff56c2caabf95" data-id="3479995fc21f80e3a62ff56c2caabf95"><span><div id="3479995fc21f80e3a62ff56c2caabf95" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80e3a62ff56c2caabf95" title="微信小程序权限配置演示"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">微信小程序权限配置演示</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8009962de7cb293bcd0b" data-id="3479995fc21f8009962de7cb293bcd0b"><span><div id="3479995fc21f8009962de7cb293bcd0b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8009962de7cb293bcd0b" title="完整代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">完整代码</span></span></h4><div class="notion-text notion-block-3479995fc21f800eb6dbf46d231c8fb3">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80f7b819c8d124ca29e1"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80f7b512ec2bfd9a0b54" data-id="3479995fc21f80f7b512ec2bfd9a0b54"><span><div id="3479995fc21f80f7b512ec2bfd9a0b54" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f7b512ec2bfd9a0b54" title="地图周边"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">地图周边</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f800b9af7cd8b1238251e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:541.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa3e2dccf-f962-44bf-8e39-fb91794c453e%3Aimage.png?table=block&amp;id=3489995f-c21f-800b-9af7-cd8b1238251e&amp;t=3489995f-c21f-800b-9af7-cd8b1238251e" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80e89678de0bca17b21d" data-id="3479995fc21f80e89678de0bca17b21d"><span><div id="3479995fc21f80e89678de0bca17b21d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80e89678de0bca17b21d" title="重要说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">重要说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f802a8062f3920dd2a4fe"><div>此页文档仅用于演示地图组件的某个用法，因为 uni-app 官方 map 组件要求较多，不同平台配置不同，请详细阅读 uni-app 官方手册 map 组件部分 （ 尤其是注意事项部分 ）。
手册地址 : https://uniapp.dcloud.io/component/map

经纬度必须为小数，建议使用 parseFloat() 函数转换一下动态纬度数据；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8080af4cce75ae91f5c9" data-id="3479995fc21f8080af4cce75ae91f5c9"><span><div id="3479995fc21f8080af4cce75ae91f5c9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8080af4cce75ae91f5c9" title="功能介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">功能介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8044989ad639e2f821f5"><div>获取当前位置；根据当前位置获取周边 1000 米内的兴趣位置信息；</div><div class="notion-text notion-block-3479995fc21f8051b183f540bc09f606">注意 : nvue 模式需要打包生效，建议使用 vue 完成地图功能页面；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8093b03fe75dec6bdba9" data-id="3479995fc21f8093b03fe75dec6bdba9"><span><div id="3479995fc21f8093b03fe75dec6bdba9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8093b03fe75dec6bdba9" title="定位图标"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">定位图标</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f809e829fd0f22f8dc231"><div>请 GraceUI 已付费用户群群文件 下载定位图标并将其部署到 /static/ 目录下, /static/location.png。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ceb382f116fe83ab9e" data-id="3479995fc21f80ceb382f116fe83ab9e"><span><div id="3479995fc21f80ceb382f116fe83ab9e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ceb382f116fe83ab9e" title="后端源码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">后端源码</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8075a839fe4c362c4232"><div>本示例使用腾讯地图 api 获取周边信息，相关后端 php 文件请在 GraceUI 付费用户群内下载 (:</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8030804bf300d2045c8a" data-id="3479995fc21f8030804bf300d2045c8a"><span><div id="3479995fc21f8030804bf300d2045c8a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8030804bf300d2045c8a" title="完整代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">完整代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80938036dc19835c43a2">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f801383d8d563611c1fd3"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f803bbb68f0489fd3beaa" data-id="3479995fc21f803bbb68f0489fd3beaa"><span><div id="3479995fc21f803bbb68f0489fd3beaa" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803bbb68f0489fd3beaa" title="拖拽定位"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">拖拽定位</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8015874fec3ef652f1e3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:532.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2d17a4ac-8a60-4218-8032-6d9296c3b4f6%3Aimage.png?table=block&amp;id=3489995f-c21f-8015-874f-ec3ef652f1e3&amp;t=3489995f-c21f-8015-874f-ec3ef652f1e3" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80789db4e099907989fb" data-id="3479995fc21f80789db4e099907989fb"><span><div id="3479995fc21f80789db4e099907989fb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80789db4e099907989fb" title="重要说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">重要说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80faaccfeff899965f82"><div>此页文档仅用于演示地图组件的某个用法，因为 uni-app 官方 map 组件要求较多，不同平台配置不同，请详细阅读 uni-app 官方手册 map 组件部分 （ 尤其是注意事项部分 ）。
手册地址 : https://uniapp.dcloud.io/component/map

经纬度必须为小数，建议使用 parseFloat() 函数转换一下动态纬度数据；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80efb0c3c012176a1ae3" data-id="3479995fc21f80efb0c3c012176a1ae3"><span><div id="3479995fc21f80efb0c3c012176a1ae3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80efb0c3c012176a1ae3" title="相关说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">相关说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f800b81f8d462b38640f9"><div>请 GraceUI 已付费用户群群文件 下载定位图标并将其部署到 /static/ 目录下, /static/location.png；</div><div class="notion-text notion-block-3479995fc21f802d83f4c64814c4d5c9">注意 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f8098a3f9ddd57471adae" style="list-style-type:decimal"><li>nvue 模式需要打包生效，建议使用 vue 完成地图功能页面；</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f802a95d8c9fad942ece0" style="list-style-type:decimal"><li>小程序模拟器报错忽略即可（官方版本bug），真机运行并无问题；</li></ol></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b7aa95d57055f106c6" data-id="3479995fc21f80b7aa95d57055f106c6"><span><div id="3479995fc21f80b7aa95d57055f106c6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b7aa95d57055f106c6" title="示例说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">示例说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80498ff7e0263699cb68"><div>利用地图组件的 controls 属性在地图中心摆放一个图标；利用 regionchange 事件获取地图中心点坐标；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f781efd94844d092b1" data-id="3479995fc21f80f781efd94844d092b1"><span><div id="3479995fc21f80f781efd94844d092b1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f781efd94844d092b1" title="完整代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">完整代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8058add9db9cad70383c">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80baa549e878c77cfa75"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80e7a4f6ec881d74c378" data-id="3479995fc21f80e7a4f6ec881d74c378"><span><div id="3479995fc21f80e7a4f6ec881d74c378" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80e7a4f6ec881d74c378" title="用户隐私协议界面模板"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">用户隐私协议界面模板</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80dd9fe6e21dd4dbc6fa"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:548.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac22a7048-e4ec-40a0-be11-31aa92bcdb87%3Aimage.png?table=block&amp;id=3489995f-c21f-80dd-9fe6-e21dd4dbc6fa&amp;t=3489995f-c21f-80dd-9fe6-e21dd4dbc6fa" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8049b54ff7f0973aadb1" data-id="3479995fc21f8049b54ff7f0973aadb1"><span><div id="3479995fc21f8049b54ff7f0973aadb1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8049b54ff7f0973aadb1" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80bab0a0fdc075f07fcf"><div>利用 gui-modal 组件实现的用户隐私协议界面模板，涵盖动态高度计算、协议签订记录逻辑演示代码。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8056b604fe8fab0a01e9" data-id="3479995fc21f8056b604fe8fab0a01e9"><span><div id="3479995fc21f8056b604fe8fab0a01e9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8056b604fe8fab0a01e9" title="协议内容模板推荐"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">协议内容模板推荐</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f803a97c9f7142c9bf375"><div>个推 - APP隐私政策模板 :
https://docs.getui.com/templet/</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8060b7c2de90da72cf29" data-id="3479995fc21f8060b7c2de90da72cf29"><span><div id="3479995fc21f8060b7c2de90da72cf29" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8060b7c2de90da72cf29" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f803d9648fd20b507f3bc"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8085b2eacb96bc5b5dc2"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80258f3df454e889aef3"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f809b98beec516acfda74" data-id="3479995fc21f809b98beec516acfda74"><span><div id="3479995fc21f809b98beec516acfda74" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f809b98beec516acfda74" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80fbbeccf19b32fbbb1b">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8000a1abc998349bb824"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f804eaa73d7e25e16d17e" data-id="3479995fc21f804eaa73d7e25e16d17e"><span><div id="3479995fc21f804eaa73d7e25e16d17e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f804eaa73d7e25e16d17e" title="会员登录"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">会员登录</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80b993f0e5e95a1092be"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:530.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A22c8f991-200a-4f35-9ef3-6f887e9ddc2a%3Aimage.png?table=block&amp;id=3489995f-c21f-80b9-93f0-e5e95a1092be&amp;t=3489995f-c21f-80b9-93f0-e5e95a1092be" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8034ad08fc9151fdace8" data-id="3479995fc21f8034ad08fc9151fdace8"><span><div id="3479995fc21f8034ad08fc9151fdace8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8034ad08fc9151fdace8" title="模板介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f809cb7cccd78b4de74b2"><div>会员登录布局模板，基于 用户名 + 密码。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80aa89c2c89c98768978" data-id="3479995fc21f80aa89c2c89c98768978"><span><div id="3479995fc21f80aa89c2c89c98768978" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80aa89c2c89c98768978" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8095ba5ef2e129acc876"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f803ab239d22980e5be4d"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80ddaf2cd88df256e446"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ffb905cbde781b68cf" data-id="3479995fc21f80ffb905cbde781b68cf"><span><div id="3479995fc21f80ffb905cbde781b68cf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ffb905cbde781b68cf" title="模板代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80588e61e626ba264250">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f805f9993f046aed4fc28"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8075935af2a7e12385fe" data-id="3479995fc21f8075935af2a7e12385fe"><span><div id="3479995fc21f8075935af2a7e12385fe" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8075935af2a7e12385fe" title="用户登录界面"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">用户登录界面</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f809aa0ebf8f0a517be38"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:544.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7cbc54c4-5fd7-415b-b2af-45b84ecb8c63%3Aimage.png?table=block&amp;id=3489995f-c21f-809a-a0eb-f8f0a517be38&amp;t=3489995f-c21f-809a-a0eb-f8f0a517be38" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80e28362f47d5d1418af" data-id="3479995fc21f80e28362f47d5d1418af"><span><div id="3479995fc21f80e28362f47d5d1418af" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80e28362f47d5d1418af" title="模板介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f806f8912d26cf6293a59"><div>会员登录布局模板，基于 手机号 + 密码，带有国家号码前缀，使用提交按钮组件。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d3a545c58aab23e281" data-id="3479995fc21f80d3a545c58aab23e281"><span><div id="3479995fc21f80d3a545c58aab23e281" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d3a545c58aab23e281" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f802c9a2ef521bdca3f1e"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80e7b7f8cb8cc05d5b87"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807a82f9e3d4e296ff1c"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f9ba9af4b3c61702fb" data-id="3479995fc21f80f9ba9af4b3c61702fb"><span><div id="3479995fc21f80f9ba9af4b3c61702fb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f9ba9af4b3c61702fb" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80469588cb7804aee1fc">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80a6a8b7d984bddb1718"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80058df4e7932c0b4267" data-id="3479995fc21f80058df4e7932c0b4267"><span><div id="3479995fc21f80058df4e7932c0b4267" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80058df4e7932c0b4267" title="短信登录模板"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">短信登录模板</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80d5a38cf5cfc0f116bf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:525.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A46d909b2-503a-4b69-9aa0-6bc86611ac19%3Aimage.png?table=block&amp;id=3489995f-c21f-80d5-a38c-f5cfc0f116bf&amp;t=3489995f-c21f-80d5-a38c-f5cfc0f116bf" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8086bcebd8d7d7df5d33" data-id="3479995fc21f8086bcebd8d7d7df5d33"><span><div id="3479995fc21f8086bcebd8d7d7df5d33" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8086bcebd8d7d7df5d33" title="模板介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f809686afe89c4e416bc0"><div>手机短信验证形式的会员登录模板，含有验证短信发送及倒计时功能。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8025be5cd7cc56e8a295" data-id="3479995fc21f8025be5cd7cc56e8a295"><span><div id="3479995fc21f8025be5cd7cc56e8a295" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8025be5cd7cc56e8a295" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80f18b90c693e6edc71c"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8086b032d79db62dbbdf"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8032a3dadeaf22ec2777"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b380c6e3d4dd7054c7" data-id="3479995fc21f80b380c6e3d4dd7054c7"><span><div id="3479995fc21f80b380c6e3d4dd7054c7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b380c6e3d4dd7054c7" title="模板代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80ce8961e478c038e29e">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80c29dc8cd34abbbbbee"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80c29c3efb0fb3a20d51" data-id="3479995fc21f80c29c3efb0fb3a20d51"><span><div id="3479995fc21f80c29c3efb0fb3a20d51" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c29c3efb0fb3a20d51" title="短信验证"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">短信验证</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80929ac9db5741431856"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:552.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad28a915c-66e2-43c9-bec1-6f7df784038a%3Aimage.png?table=block&amp;id=3489995f-c21f-8092-9ac9-db5741431856&amp;t=3489995f-c21f-8092-9ac9-db5741431856" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80659681f525890f6c06" data-id="3479995fc21f80659681f525890f6c06"><span><div id="3479995fc21f80659681f525890f6c06" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80659681f525890f6c06" title="页面介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">页面介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f808eb138f145120fe3d7"><div>GraceUI 短信验证</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f809db19cfe883dce8d9c" data-id="3479995fc21f809db19cfe883dce8d9c"><span><div id="3479995fc21f809db19cfe883dce8d9c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f809db19cfe883dce8d9c" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80de86c4e10331ce48c4"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80f5b866ec5d630ce358"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80bea468fc51dc2b2943"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d386e9ce07d68f4908" data-id="3479995fc21f80d386e9ce07d68f4908"><span><div id="3479995fc21f80d386e9ce07d68f4908" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d386e9ce07d68f4908" title="模板代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板代码</span></span></h4><div class="notion-text notion-block-3479995fc21f808b907ee629c9861477">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f809a919fc9a9392be701"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80f9b5bade245bcc5b3a" data-id="3479995fc21f80f9b5bade245bcc5b3a"><span><div id="3479995fc21f80f9b5bade245bcc5b3a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f9b5bade245bcc5b3a" title="个人中心"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">个人中心</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8078b81ecc3931694a3c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:553.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad6ed3ddb-0e8a-4f00-85d7-86bf0ca540ea%3Aimage.png?table=block&amp;id=3489995f-c21f-8078-b81e-cc3931694a3c&amp;t=3489995f-c21f-8078-b81e-cc3931694a3c" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806fa136d13727fb2af6" data-id="3479995fc21f806fa136d13727fb2af6"><span><div id="3479995fc21f806fa136d13727fb2af6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806fa136d13727fb2af6" title="模板介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8087a5dfff0a6b1e385d"><div>个人中心模板基于 GraceUI list 组件及横向公告组件的组合， 您可以在其基础上根据项目需要进行扩展。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d8b2cae65509030e10" data-id="3479995fc21f80d8b2cae65509030e10"><span><div id="3479995fc21f80d8b2cae65509030e10" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d8b2cae65509030e10" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80a7bb79cdd0e76677ff"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80eaa20ff23018b0ed2b"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80758d84c7d0a7ff41a0"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8008802cdad41fa360ea" data-id="3479995fc21f8008802cdad41fa360ea"><span><div id="3479995fc21f8008802cdad41fa360ea" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8008802cdad41fa360ea" title="模板代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模板代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80fca471c60f15566c1a">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80fdae55f7a1c93f44af"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GraceUI5.0手册 (3)]]></title>
            <link>https://tangly1024.com/GraceUI手册/grace5-03</link>
            <guid>https://tangly1024.com/GraceUI手册/grace5-03</guid>
            <pubDate>Sun, 19 Apr 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Grace5.0版本手册第三部分]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-3479995fc21f80a6a1a8e3d0e926854a"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8014a1cce3456d4575ea" data-id="3479995fc21f8014a1cce3456d4575ea"><span><div id="3479995fc21f8014a1cce3456d4575ea" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8014a1cce3456d4575ea" title="列表布局"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">列表布局</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80b4ba33e06cac5572b0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:532.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa208b9d2-f18b-4be6-9d29-d7fe52bbefcc%3Aimage.png?table=block&amp;id=3489995f-c21f-80b4-ba33-e06cac5572b0&amp;t=3489995f-c21f-80b4-ba33-e06cac5572b0" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80968e78e834029a3e0b" data-id="3479995fc21f80968e78e834029a3e0b"><span><div id="3479995fc21f80968e78e834029a3e0b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80968e78e834029a3e0b" title="样式介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">样式介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80e6a6b9e15cb29deaed"><div>为了列表布局更灵活、更高效，我们没有将其封装为组件而是提供了列表布局样式，这样您可以在开发过程中更便捷地组合出符合您项目要求的列表。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f802c91b6fbe809bcb807" data-id="3479995fc21f802c91b6fbe809bcb807"><span><div id="3479995fc21f802c91b6fbe809bcb807" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802c91b6fbe809bcb807" title="列表结构"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">列表结构</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d8b471ee93f4f837fd" data-id="3479995fc21f80d8b471ee93f4f837fd"><span><div id="3479995fc21f80d8b471ee93f4f837fd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d8b471ee93f4f837fd" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f805095faf0e4e6afda26"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80b1b248ffa917902ccf"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806d93b9ff75e659f969"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f808090cec75e7b0383e8" data-id="3479995fc21f808090cec75e7b0383e8"><span><div id="3479995fc21f808090cec75e7b0383e8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f808090cec75e7b0383e8" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f808187b0df28b99236c5">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8046bdd6d95af719d598"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f807e83e7dccced954bf1" data-id="3479995fc21f807e83e7dccced954bf1"><span><div id="3479995fc21f807e83e7dccced954bf1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807e83e7dccced954bf1" title="滑动列表"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">滑动列表</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80838794f65b2c122878"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:541.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A81c0efc0-1409-4a4c-a173-7177e88d116d%3Aimage.png?table=block&amp;id=3489995f-c21f-8083-8794-f65b2c122878&amp;t=3489995f-c21f-8083-8794-f65b2c122878" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f802ea455e86dd3629821" data-id="3479995fc21f802ea455e86dd3629821"><span><div id="3479995fc21f802ea455e86dd3629821" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802ea455e86dd3629821" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f803a95a3d03960836c3e"><div>滑动展开功能按钮的列表组件 （ 此组件最近一次更新时间 : 2021年8月24日14:50 , 请保证框架版本 ）。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f804588bcc36cad429792" data-id="3479995fc21f804588bcc36cad429792"><span><div id="3479995fc21f804588bcc36cad429792" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f804588bcc36cad429792" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80a49838d4ee642d7021"><div>gui-slide-list : /graceUI/组件目录/gui-slide-list</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80909946d300475136f1" data-id="3479995fc21f80909946d300475136f1"><span><div id="3479995fc21f80909946d300475136f1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80909946d300475136f1" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80459ae7e863ec7683d4"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8053aa99ce086964ab6a"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809f9c08edd4b89b4398"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8020b889e59d3b5db35a" data-id="3479995fc21f8020b889e59d3b5db35a"><span><div id="3479995fc21f8020b889e59d3b5db35a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8020b889e59d3b5db35a" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8074aef8ceb1ce18afe8"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80a8a74fef9267737acd"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8022b77fc273ba2d3b72"><td class="" style="width:120px"><div class="notion-simple-table-cell">width</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">750</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件宽度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80bbbe3bf1fb1ce42c07"><td class="" style="width:120px"><div class="notion-simple-table-cell">msgs</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">消息数组, 格式见演示代码</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80029e53ff0bbeeea2c7"><td class="" style="width:120px"><div class="notion-simple-table-cell">btnWidth</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">160</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">操作按钮总宽度, 内部按钮自动平分此宽度</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b88b6fdac0429b5229" data-id="3479995fc21f80b88b6fdac0429b5229"><span><div id="3479995fc21f80b88b6fdac0429b5229" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b88b6fdac0429b5229" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f808d8dc3e190f3fcb300"><div>@scrolltolower 滚动区域触底时触发，用于实现加载更多.</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80bc8692f534eb39e619" data-id="3479995fc21f80bc8692f534eb39e619"><span><div id="3479995fc21f80bc8692f534eb39e619" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80bc8692f534eb39e619" title="皮肤样式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">皮肤样式</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f802699d7cc5ffee9673a" data-id="3479995fc21f802699d7cc5ffee9673a"><span><div id="3479995fc21f802699d7cc5ffee9673a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802699d7cc5ffee9673a" title="注意事项"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">注意事项</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806a8529c521875fa2fb" data-id="3479995fc21f806a8529c521875fa2fb"><span><div id="3479995fc21f806a8529c521875fa2fb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806a8529c521875fa2fb" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8017aae5f93b7115d9ee">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f800887abd518c13616f7"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8098ba1ec3789b986280" data-id="3479995fc21f8098ba1ec3789b986280"><span><div id="3479995fc21f8098ba1ec3789b986280" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8098ba1ec3789b986280" title="可选列表"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">可选列表</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80a5a767fdaefd671616"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:528.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0ad084a5-dee7-427a-81a5-1a91ef51529a%3Aimage.png?table=block&amp;id=3489995f-c21f-80a5-a767-fdaefd671616&amp;t=3489995f-c21f-80a5-a767-fdaefd671616" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8003a351ec65686928cd" data-id="3479995fc21f8003a351ec65686928cd"><span><div id="3479995fc21f8003a351ec65686928cd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8003a351ec65686928cd" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80f48d11fbdaa6f6f06f"><div>可选列表可以配置单选、多选，能够配置图标，可以灵活地应用于开发过程中的选择场景。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80abb61ed22cc514fa9a" data-id="3479995fc21f80abb61ed22cc514fa9a"><span><div id="3479995fc21f80abb61ed22cc514fa9a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80abb61ed22cc514fa9a" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80a6b57dc781f3814225"><div>gui-select-list : /graceUI/组件目录/gui-select-list</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80cebb94c703f17a3055" data-id="3479995fc21f80cebb94c703f17a3055"><span><div id="3479995fc21f80cebb94c703f17a3055" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80cebb94c703f17a3055" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80a29a58e930f7b7e655"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8087a479ebc5d0bc0705"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807aa291cbc7da55fd72"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80568e94d39438df69b3" data-id="3479995fc21f80568e94d39438df69b3"><span><div id="3479995fc21f80568e94d39438df69b3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80568e94d39438df69b3" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f804ea396d88aa77db63f"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80b7ab40ed3e98323f40"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801a9a74e900130ac55e"><td class="" style="width:120px"><div class="notion-simple-table-cell">items</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选项数组，格式见演示代码</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f800598eadf7ea412866f"><td class="" style="width:120px"><div class="notion-simple-table-cell">type</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">’’</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">radio 单选, checkbox 多选</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8041b54de4f23b7344fb"><td class="" style="width:120px"><div class="notion-simple-table-cell">checkedType</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">right</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">right - 右侧对钩形式 [ 适合单选 ]，ring - 左侧圆环形式 [ 适合多选 ]</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80b8a807c4dc438d8569"><td class="" style="width:120px"><div class="notion-simple-table-cell">isBorder</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示下边框</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80aebfcfd4147736bf94"><td class="" style="width:120px"><div class="notion-simple-table-cell">borderColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#F6F6F6</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">边框线条颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f808fbf66e74809c323b3"><td class="" style="width:120px"><div class="notion-simple-table-cell">maxSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">多选时最多选择数，0 代表不限制</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803cb733c760c6977d01" data-id="3479995fc21f803cb733c760c6977d01"><span><div id="3479995fc21f803cb733c760c6977d01" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803cb733c760c6977d01" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f803db426eb68c9866ebe"><div>@change : 选中项改变时触发，携带数据已选择数据索引值（多选时为一个索引数组）。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f807db856f587cc76614c" data-id="3479995fc21f807db856f587cc76614c"><span><div id="3479995fc21f807db856f587cc76614c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807db856f587cc76614c" title="皮肤样式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">皮肤样式</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8024bc8afba1a909c37a" data-id="3479995fc21f8024bc8afba1a909c37a"><span><div id="3479995fc21f8024bc8afba1a909c37a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8024bc8afba1a909c37a" title="组件函数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件函数</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80f5ae00e141eea9f348"><div>getSelectedIndex 2021-03-01 新增 :
获取组件内部数据中已选中数据的索引，返回数组形式的索引数据，默认为 []，也可以使用返回值长度判断选中数据数量；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80909adfc1a4ab84efc0" data-id="3479995fc21f80909adfc1a4ab84efc0"><span><div id="3479995fc21f80909adfc1a4ab84efc0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80909adfc1a4ab84efc0" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8010ae81dc77bab38da1">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80749c03db91a2975ac1"> </div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ac8937fc934291f6fb" data-id="3479995fc21f80ac8937fc934291f6fb"><span><div id="3479995fc21f80ac8937fc934291f6fb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ac8937fc934291f6fb" title="默认值设置技巧"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">默认值设置技巧</span></span></h4><div class="notion-text notion-block-3479995fc21f809484fef4f8a50c02fd">有些情况下，我们希望组件在页面展示是组件重置选择效果，您可以效仿下面的代码 :</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80408acbf22a1771a7c9" data-id="3479995fc21f80408acbf22a1771a7c9"><span><div id="3479995fc21f80408acbf22a1771a7c9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80408acbf22a1771a7c9" title="全选列表"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">全选列表</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80d7ac48c53824266198"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:541.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af8033512-4ae5-43cb-9dc9-bc89ce835334%3Aimage.png?table=block&amp;id=3489995f-c21f-80d7-ac48-c53824266198&amp;t=3489995f-c21f-80d7-ac48-c53824266198" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80969348cdf9c402f3d6" data-id="3479995fc21f80969348cdf9c402f3d6"><span><div id="3479995fc21f80969348cdf9c402f3d6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80969348cdf9c402f3d6" title="布局介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f809a8fa4dfc57e1a7ddd"><div>使用 gui-select-list 组件为基础实现全选、取消全选、删除数据等功能；请根据项目实际需求进行二次开发，来实现符合您项目需要的全选列表；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f802393c2c724a54ee1ad" data-id="3479995fc21f802393c2c724a54ee1ad"><span><div id="3479995fc21f802393c2c724a54ee1ad" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802393c2c724a54ee1ad" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80e8a133f07dc0d9887b"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80398aabd8abbebf6fc0"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80358fc2e930fd2b573f"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806da6f2eeb5ce69d9e6" data-id="3479995fc21f806da6f2eeb5ce69d9e6"><span><div id="3479995fc21f806da6f2eeb5ce69d9e6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806da6f2eeb5ce69d9e6" title="布局代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80ccbea1ed2b03468938">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8052a2e8fd4289de3586"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f803f9ebbe2c218881f71" data-id="3479995fc21f803f9ebbe2c218881f71"><span><div id="3479995fc21f803f9ebbe2c218881f71" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803f9ebbe2c218881f71" title="树状列表"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">树状列表</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80a39ae0dc46706e4502"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:559.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A11505c73-7f76-47fa-81a8-4c3233e3ecea%3Aimage.png?table=block&amp;id=3489995f-c21f-80a3-9ae0-dc46706e4502&amp;t=3489995f-c21f-80a3-9ae0-dc46706e4502" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80cfb5fdfa102abfd474" data-id="3479995fc21f80cfb5fdfa102abfd474"><span><div id="3479995fc21f80cfb5fdfa102abfd474" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80cfb5fdfa102abfd474" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8014a8eaffcd1a12e367"><div>gui-tree : /graceUI/组件目录/gui-tree</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80169c57e9dc21885450" data-id="3479995fc21f80169c57e9dc21885450"><span><div id="3479995fc21f80169c57e9dc21885450" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80169c57e9dc21885450" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80dea0a9cfc656b5427a"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f809982adeeb9951ac0b8"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f79bddc2b264b6b971"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80059431eaee71d14d56" data-id="3479995fc21f80059431eaee71d14d56"><span><div id="3479995fc21f80059431eaee71d14d56" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80059431eaee71d14d56" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8019b490d33ac91992e4"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80df96d7dba22b801c3f"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f804d988cd0cdf7bfaa09"><td class="" style="width:120px"><div class="notion-simple-table-cell">trees</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件列表信息数据</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80b6b1a9d05a9aa2e7a0"><td class="" style="width:120px"><div class="notion-simple-table-cell">indent</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">28</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">每个层级的缩进距离，单位rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801f9d10c84352c4f84b"><td class="" style="width:120px"><div class="notion-simple-table-cell">type</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">text</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件类型, text : 文本展示 , radio : 单选形式, checkbox : 复选形式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8057afa2d34bffe8ee80"><td class="" style="width:120px"><div class="notion-simple-table-cell">isIcon</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文本形式时是否展示横线图标</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80aab97bd83741687f36"><td class="" style="width:120px"><div class="notion-simple-table-cell">checkedId</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[String, Number]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">-1</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">单选默认选中 id</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806b9226fd4998ece4f8"><td class="" style="width:120px"><div class="notion-simple-table-cell">checkedIds</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">复选选中的 id 集合</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c8a800f49fbcf253cf"><td class="" style="width:120px"><div class="notion-simple-table-cell">allCanCheck</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否全部选项都可以点击选择， 如果设置false则只有子集才能选择</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8076b290c7f94b5501ac"><td class="" style="width:120px"><div class="notion-simple-table-cell">isFold</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文本模式下是否开启收缩/展开功能 [ 2020.07.27 新增 ]</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80baa845d4f37f9a6913" data-id="3479995fc21f80baa845d4f37f9a6913"><span><div id="3479995fc21f80baa845d4f37f9a6913" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80baa845d4f37f9a6913" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f806289acd77047d061c1"><div>taped</div><div class="notion-text notion-block-3479995fc21f80e8b73bfbf4fd9a5944">携带数据 : 被点击选项的索引关系，利用它完成 :
1.1 文本形式 : 获取点击数据
1.2 选择形式 : 获取点击数据更新选中 id</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f805d853ed41a16e234c6" data-id="3479995fc21f805d853ed41a16e234c6"><span><div id="3479995fc21f805d853ed41a16e234c6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f805d853ed41a16e234c6" title="演示说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8044813ee00ad44fee7c"><div>演示代码为您封装好了选项获取相关的函数，可以方便地获取选中信息，同时也是非常不错的递归函数学习资料 （:演示代码实现了多种模式的切换，您在应用时选择一种即可，代码会简化很多;文本形式下点击项目前面的图标进行层级收缩及展示；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80eabdb7cf6bd52df186" data-id="3479995fc21f80eabdb7cf6bd52df186"><span><div id="3479995fc21f80eabdb7cf6bd52df186" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80eabdb7cf6bd52df186" title="皮肤样式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">皮肤样式</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803b842ace6625cee4bd" data-id="3479995fc21f803b842ace6625cee4bd"><span><div id="3479995fc21f803b842ace6625cee4bd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803b842ace6625cee4bd" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8082a7b1da2768723196">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f808c95afedb03a5d2ef6"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8020b469d515410686bc" data-id="3479995fc21f8020b469d515410686bc"><span><div id="3479995fc21f8020b469d515410686bc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8020b469d515410686bc" title="竖向拖拽排序"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">竖向拖拽排序</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f802bb4c9ec7e486f489b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:541.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5e59d3dc-7d5d-4589-bfbd-cf0b8d8abf7d%3Aimage.png?table=block&amp;id=3489995f-c21f-802b-b4c9-ec7e486f489b&amp;t=3489995f-c21f-802b-b4c9-ec7e486f489b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8073a8d6c7a4e212b299" data-id="3479995fc21f8073a8d6c7a4e212b299"><span><div id="3479995fc21f8073a8d6c7a4e212b299" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8073a8d6c7a4e212b299" title="竖向拖动排序介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">竖向拖动排序介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80fba92ecefc15322c78"><div>封装为组件在使用时反而不灵活，所以使用页面布局实现;利用手指事件完成拖拽及拖拽完成后的数据排序功能;因 weex 底层原因暂不支持，请使用 vue 页面完成此功能;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f801ebe03db6b526def88" data-id="3479995fc21f801ebe03db6b526def88"><span><div id="3479995fc21f801ebe03db6b526def88" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f801ebe03db6b526def88" title="核心事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">核心事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f806a9c4beb50f84aa4e8"><div>onLoad : 模拟 api 请求，并补全数据属性longtap : 长按后才能进行拖拽thStart : 手指滑动开始thMove : 手指滑动thEnd : 拖拽完成对数据进行重新排序</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f802ba74edbff7f7461ea" data-id="3479995fc21f802ba74edbff7f7461ea"><span><div id="3479995fc21f802ba74edbff7f7461ea" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802ba74edbff7f7461ea" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80c9977ac156483959bb"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80e99bbcc18cf7ee3ec8"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f804393bfdde08a475890"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">×</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80078193e3707650485f" data-id="3479995fc21f80078193e3707650485f"><span><div id="3479995fc21f80078193e3707650485f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80078193e3707650485f" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8014b817e7b3de17461f" data-id="3479995fc21f8014b817e7b3de17461f"><span><div id="3479995fc21f8014b817e7b3de17461f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8014b817e7b3de17461f" title="卡片列表"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">卡片列表</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80a6950bf8a912b31b3d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:529.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2e7bc588-b769-4f4c-b49f-a1c9433ead5c%3Aimage.png?table=block&amp;id=3489995f-c21f-80a6-950b-f8a912b31b3d&amp;t=3489995f-c21f-80a6-950b-f8a912b31b3d" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f5880ce7b8f12874fb" data-id="3479995fc21f80f5880ce7b8f12874fb"><span><div id="3479995fc21f80f5880ce7b8f12874fb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f5880ce7b8f12874fb" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80599dcdeb2bb4ef3c5d"><div>GraceUI 以样式形式提供了卡片列表布局，因为卡片列表布局在实际项目中变化较多，样式方式更灵活，请您看一下相关样式说明，应用时可以在页面上复写相关样式，达到修改的目的。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ebb862cad65b68ce07" data-id="3479995fc21f80ebb862cad65b68ce07"><span><div id="3479995fc21f80ebb862cad65b68ce07" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ebb862cad65b68ce07" title="样式说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">样式说明</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d18087cf669796eaa3" data-id="3479995fc21f80d18087cf669796eaa3"><span><div id="3479995fc21f80d18087cf669796eaa3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d18087cf669796eaa3" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8086a63efbf11e5bb4a8"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80169f1bed90161c8f7a"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80448028d11d1682889e"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80a796bafe4b7da00281" data-id="3479995fc21f80a796bafe4b7da00281"><span><div id="3479995fc21f80a796bafe4b7da00281" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80a796bafe4b7da00281" title="布局结构"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局结构</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803eac26cd5c4a5c9e15" data-id="3479995fc21f803eac26cd5c4a5c9e15"><span><div id="3479995fc21f803eac26cd5c4a5c9e15" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803eac26cd5c4a5c9e15" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80b4a21fe7ee3da50f4e">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f801897d1e69dd7e32522"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80779dcbc9b099a68640" data-id="3479995fc21f80779dcbc9b099a68640"><span><div id="3479995fc21f80779dcbc9b099a68640" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80779dcbc9b099a68640" title="名片卡片"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">名片卡片</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80fb8bc6d3d5e8147730"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:529.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A6e2ee40c-6413-4c21-9021-0720132908ed%3Aimage.png?table=block&amp;id=3489995f-c21f-80fb-8bc6-d3d5e8147730&amp;t=3489995f-c21f-80fb-8bc6-d3d5e8147730" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80338023fee11bdf96c8" data-id="3479995fc21f80338023fee11bdf96c8"><span><div id="3479995fc21f80338023fee11bdf96c8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80338023fee11bdf96c8" title="布局介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80a48b6ee00361724da5"><div>考虑实际开发场景，使用布局实现更方便修改，所以没有进行组件封装；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d08b6be96a02fcc340" data-id="3479995fc21f80d08b6be96a02fcc340"><span><div id="3479995fc21f80d08b6be96a02fcc340" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d08b6be96a02fcc340" title="布局结构"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局结构</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80209eebdf18899a40b0" data-id="3479995fc21f80209eebdf18899a40b0"><span><div id="3479995fc21f80209eebdf18899a40b0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80209eebdf18899a40b0" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80c193f7eb8b4ce80613"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80749568edf561c778e1"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803ebacdf516c3f02e61"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80339916c54034c0db05" data-id="3479995fc21f80339916c54034c0db05"><span><div id="3479995fc21f80339916c54034c0db05" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80339916c54034c0db05" title="注意事项"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">注意事项</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8059a57def2aa524975b" data-id="3479995fc21f8059a57def2aa524975b"><span><div id="3479995fc21f8059a57def2aa524975b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8059a57def2aa524975b" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80449695e9efeeeff673">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8059b53cc6b2ef0c994c"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80909cf4de08c389acee" data-id="3479995fc21f80909cf4de08c389acee"><span><div id="3479995fc21f80909cf4de08c389acee" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80909cf4de08c389acee" title="切换导航"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">切换导航</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80a78695cfb9580ed255"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:534.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab6539d5e-b7a1-466d-8923-52bf820b59a3%3Aimage.png?table=block&amp;id=3489995f-c21f-80a7-8695-cfb9580ed255&amp;t=3489995f-c21f-80a7-8695-cfb9580ed255" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f805f86f8fc2519b23355" data-id="3479995fc21f805f86f8fc2519b23355"><span><div id="3479995fc21f805f86f8fc2519b23355" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f805f86f8fc2519b23355" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80c88b64f86aa63430ce"><div>gui-switch-navigation 切换导航组件可以快速帮您实现多种形式的分类、状态导航，是一个非常常用、好用的组件;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8052a226d3ec1bf6b1b2" data-id="3479995fc21f8052a226d3ec1bf6b1b2"><span><div id="3479995fc21f8052a226d3ec1bf6b1b2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8052a226d3ec1bf6b1b2" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f804ab0e0e1261ece0062"><div>gui-switch-navigation : /graceUI/components/gui-switch-navigation</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f804eb161f9de6beb39f0" data-id="3479995fc21f804eb161f9de6beb39f0"><span><div id="3479995fc21f804eb161f9de6beb39f0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f804eb161f9de6beb39f0" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f807a8525c6ee62a206dd"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f805bb066ec2be15b9b3e"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f3bbfad6c983e85805"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8059851ce37b191c5e66" data-id="3479995fc21f8059851ce37b191c5e66"><span><div id="3479995fc21f8059851ce37b191c5e66" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8059851ce37b191c5e66" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f807a835bc8a2a30123fd"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80a899e0c9d56f8c6295"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8061b105f716ef43d427"><td class="" style="width:120px"><div class="notion-simple-table-cell">width</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">690</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件宽度，单位 rpx，默认 690 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80219a2ce10bde2f48e1"><td class="" style="width:120px"><div class="notion-simple-table-cell">isCenter</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">false</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否居中布局</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f808bb9a5d9221c9f31c7"><td class="" style="width:120px"><div class="notion-simple-table-cell">currentIndex</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">激活项目的索引</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a4b6c3c3b6009088a4"><td class="" style="width:120px"><div class="notion-simple-table-cell">size</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">120</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">宽度 单位 rpx，为 0 时代表自适应内容宽度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809ead59dbb703d3b5d0"><td class="" style="width:120px"><div class="notion-simple-table-cell">items</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">导航项目 数组形式 : [{id:0, name:‘名称1’},{id:1, name:‘名称2’, …} ]</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a7b832f59f055bc984"><td class="" style="width:120px"><div class="notion-simple-table-cell">activeLineBg</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">linear-gradient(to right, #66BFFF,#3388FF)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">激活条颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8001ac72f80bc5550928"><td class="" style="width:120px"><div class="notion-simple-table-cell">activeColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#333333</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">激活文本颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807ca1cdc6799e6f9a7c"><td class="" style="width:120px"><div class="notion-simple-table-cell">activeLineHeight</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">6rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">激活条高度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80e0a50cc8eb747ea18a"><td class="" style="width:120px"><div class="notion-simple-table-cell">activeLineWidth</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">36rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">激活条宽度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8013bb80ce0a3b55dec4"><td class="" style="width:120px"><div class="notion-simple-table-cell">activeDirection</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">激活条横向对齐模式，默认左 center:居中，flex-end:右</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8082b380fd964e100feb"><td class="" style="width:120px"><div class="notion-simple-table-cell">activeFontWeight</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">700</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">激活文本加粗属性 : 700 / 900 代表加粗 400 代表普通</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801ba694e478ffde87ac"><td class="" style="width:120px"><div class="notion-simple-table-cell">color</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#333333</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">导航文本颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801698def1b470e19363"><td class="" style="width:120px"><div class="notion-simple-table-cell">margin</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">右侧间距 单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8027affae4cd68dbe485"><td class="" style="width:120px"><div class="notion-simple-table-cell">textAlign</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">left</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文本布局方式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806fa298ec73883ebb00"><td class="" style="width:120px"><div class="notion-simple-table-cell">lineHeight</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">50rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文本行高</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8000b7b9e9c0d02cd5c7"><td class="" style="width:120px"><div class="notion-simple-table-cell">fontSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">28rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文本大小</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f802d8a6ed1fcd98d0d96"><td class="" style="width:120px"><div class="notion-simple-table-cell">activeFontSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">28rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">激活项目文本大小</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80399dd9def17f6a4c08"><td class="" style="width:120px"><div class="notion-simple-table-cell">padding</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">横向内间距</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a7a540d4af5d98965c"><td class="" style="width:120px"><div class="notion-simple-table-cell">activeLineRadius</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">激活条圆角尺寸</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801d8c58c2536962dd1a"><td class="" style="width:120px"><div class="notion-simple-table-cell">animatie</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">切换时使用使用动画 [ nvue 暂不支持动画效果 ]</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8022afb2ce9d252ceee1"><td class="" style="width:120px"><div class="notion-simple-table-cell">scorllAnimation</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否产生滚动动画</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f805ca539f3fe935d69aa"><td class="" style="width:120px"><div class="notion-simple-table-cell">tipsStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">vue background-color:#FF0000; padding:0 10rpx; color:#FFFFFF; font-size:22rpx nvue background-color:#FF0000; padding-left:10rpx; padding-right:10rpx; color:#FFFFFF; font-size:22rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">提示信息样式，如需修改请使用条件编译兼容 nvue</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ac939cc3eae17c8d2c" data-id="3479995fc21f80ac939cc3eae17c8d2c"><span><div id="3479995fc21f80ac939cc3eae17c8d2c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ac939cc3eae17c8d2c" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8050a9d6cf71116a1a78"><div>@change=“” 点击导航进行切换时会激活 change 事件，并传递对应的索引值;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f809db028f2341adfe070" data-id="3479995fc21f809db028f2341adfe070"><span><div id="3479995fc21f809db028f2341adfe070" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f809db028f2341adfe070" title="导航数据格式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">导航数据格式</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b6a4f1cfc56835ef2c" data-id="3479995fc21f80b6a4f1cfc56835ef2c"><span><div id="3479995fc21f80b6a4f1cfc56835ef2c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b6a4f1cfc56835ef2c" title="组件说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8072a229d30c2c5233c7"><div>1 :size=“0” 代表自适应内容宽度，选中项目基于 scroll-into-view 属性实现展示位置切换动画（ 无法居中 ）。
2 后端 api 数据格式不匹配是请转换数据格式，参考 ： https://www.graceui.com/v5/info/10154-0.html</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b8bec5d958a69af67a" data-id="3479995fc21f80b8bec5d958a69af67a"><span><div id="3479995fc21f80b8bec5d958a69af67a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b8bec5d958a69af67a" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8086834efd6ad9f68a72">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f808d849ce7996b0f70d4"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8057b559c4acc13d22bd" data-id="3479995fc21f8057b559c4acc13d22bd"><span><div id="3479995fc21f8057b559c4acc13d22bd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8057b559c4acc13d22bd" title="切换导航·多行模式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">切换导航·多行模式</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8051850aef2bf2caa0d2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:528.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae62c43da-cdd3-4044-9323-217e3f9e104b%3Aimage.png?table=block&amp;id=3489995f-c21f-8051-850a-ef2bf2caa0d2&amp;t=3489995f-c21f-8051-850a-ef2bf2caa0d2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80aebb9dcb57fd349f44" data-id="3479995fc21f80aebb9dcb57fd349f44"><span><div id="3479995fc21f80aebb9dcb57fd349f44" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80aebb9dcb57fd349f44" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80bf8ed0d401c7be6b9a"><div>gui-switch-navigation2 多行切换导航组件可以快速帮您实现多种形式的分类、状态导航，是一个非常常用、好用的组件;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8015b04ee81ccd0d3634" data-id="3479995fc21f8015b04ee81ccd0d3634"><span><div id="3479995fc21f8015b04ee81ccd0d3634" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8015b04ee81ccd0d3634" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f803189faff03d223f7e8"><div>gui-switch-navigation2 : /graceUI/组件目录/gui-switch-navigation2</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8081bf03eb302a193e00" data-id="3479995fc21f8081bf03eb302a193e00"><span><div id="3479995fc21f8081bf03eb302a193e00" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8081bf03eb302a193e00" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8042971ff286edeae484"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80c59c06efc20ba24862"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f99199d0c55b159f78"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80329a58d46cb8f9cb23" data-id="3479995fc21f80329a58d46cb8f9cb23"><span><div id="3479995fc21f80329a58d46cb8f9cb23" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80329a58d46cb8f9cb23" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80bcabbceb97aca5d7fe"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f800c8d3cc4efecd1b105"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f805da9eee736850835c4"><td class="" style="width:120px"><div class="notion-simple-table-cell">width</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">690</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件宽度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f804e9bb6ff3a3ebaa8b4"><td class="" style="width:120px"><div class="notion-simple-table-cell">isCenter</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">false</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">项目整体居中</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80e48593d47b01063d4d"><td class="" style="width:120px"><div class="notion-simple-table-cell">currentIndex</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选中项目索引</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8011ba4ceb2df8335f3b"><td class="" style="width:120px"><div class="notion-simple-table-cell">size</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">138</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选项宽度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d18debedbbe1159864"><td class="" style="width:120px"><div class="notion-simple-table-cell">fontSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">28rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文本尺寸</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80788106d6ca283352ff"><td class="" style="width:120px"><div class="notion-simple-table-cell">activeFontSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">28rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">激活后文本尺寸</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d48e82c2ade60be6f8"><td class="" style="width:120px"><div class="notion-simple-table-cell">lineHeight</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">52</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">导航标题行高，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f802a98a4c85162771275"><td class="" style="width:120px"><div class="notion-simple-table-cell">fontSizeSmall</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">22rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">描述文本尺寸</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80ebb4f8ce90e1a71783"><td class="" style="width:120px"><div class="notion-simple-table-cell">lineHeightSamll</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">28rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">描述文本行高</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a7ae2bde72e690b8d8"><td class="" style="width:120px"><div class="notion-simple-table-cell">items</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">导航选项数组，格式: [{title:‘<em><b>’, desc:’</b></em>’},……]</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8058a533c7ecc6506bf7"><td class="" style="width:120px"><div class="notion-simple-table-cell">color</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#333333</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">导航文本默认颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807e8179f87e2111502a"><td class="" style="width:120px"><div class="notion-simple-table-cell">descColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#999999</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">描述文本默认颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801eb6fcc2acabb6be25"><td class="" style="width:120px"><div class="notion-simple-table-cell">activeColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#3688FF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">激活文本颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8029bbe2e1011cf56231"><td class="" style="width:120px"><div class="notion-simple-table-cell">scorllAnimation</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否产生滚动动画</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f809d8686d89dffd2f7af" data-id="3479995fc21f809d8686d89dffd2f7af"><span><div id="3479995fc21f809d8686d89dffd2f7af" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f809d8686d89dffd2f7af" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80c3b025f008b97d1ce9">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80b3be31dab98208344e"> </div><div class="notion-text notion-block-3479995fc21f802b9012fef5ae89ce10">、</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8038b485da1929ae1143" data-id="3479995fc21f8038b485da1929ae1143"><span><div id="3479995fc21f8038b485da1929ae1143" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8038b485da1929ae1143" title="局部选项卡"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">局部选项卡</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80ce99c9c2b23d813048"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:525.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A72e7ee45-340a-4bb5-b573-f35a0e49dade%3Aimage.png?table=block&amp;id=3489995f-c21f-80ce-99c9-c2b23d813048&amp;t=3489995f-c21f-80ce-99c9-c2b23d813048" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c8947cdf2c0b801495" data-id="3479995fc21f80c8947cdf2c0b801495"><span><div id="3479995fc21f80c8947cdf2c0b801495" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c8947cdf2c0b801495" title="布局介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80b8909bdd5998ad839f"><div>局部选项卡使用 gui-switch-navigation 组件 + swiper 组件实现;局部选项卡应该固定高度来避免选项切换引起的页面抖动 （:通过 gui-switch-navigation 组件的属性可以修改选项卡标签，手册地址 : https://www.graceui.com/v5/info/10029-50.html</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ecb30dcd8fff0f7ac4" data-id="3479995fc21f80ecb30dcd8fff0f7ac4"><span><div id="3479995fc21f80ecb30dcd8fff0f7ac4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ecb30dcd8fff0f7ac4" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f801f833dd73615e07519"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80b9a1cae9f5a0b4c6ad"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8064a0d5df3db7321635"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803193adf364830ed92c" data-id="3479995fc21f803193adf364830ed92c"><span><div id="3479995fc21f803193adf364830ed92c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803193adf364830ed92c" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80a7bda9eaf93c602fe1">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f801496c0d89e2e6d895b"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f802bab72f6c024f38cc7" data-id="3479995fc21f802bab72f6c024f38cc7"><span><div id="3479995fc21f802bab72f6c024f38cc7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802bab72f6c024f38cc7" title="全屏选项卡"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">全屏选项卡</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80a9bbb2ddf382590d07"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:537.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A602c4523-1ec3-4727-81bf-870e1559122e%3Aimage.png?table=block&amp;id=3489995f-c21f-80a9-bbb2-ddf382590d07&amp;t=3489995f-c21f-80a9-bbb2-ddf382590d07" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f802590f1c7b0d469091b" data-id="3479995fc21f802590f1c7b0d469091b"><span><div id="3479995fc21f802590f1c7b0d469091b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802590f1c7b0d469091b" title="布局介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80ff9fc0d33c448eaee0"><div>全屏选项卡经常被应用在项目的入口页面，一般使用切换导航+轮播组件实现，GraceUI 为您提供了基础布局，请掌握布局原理，然后灵活运用。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c98060cc70a1ccfa5b" data-id="3479995fc21f80c98060cc70a1ccfa5b"><span><div id="3479995fc21f80c98060cc70a1ccfa5b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c98060cc70a1ccfa5b" title="实现步骤"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">实现步骤</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80bc9c2cf2673be485a5" data-id="3479995fc21f80bc9c2cf2673be485a5"><span><div id="3479995fc21f80bc9c2cf2673be485a5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80bc9c2cf2673be485a5" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f800181c5f092346cbc40"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f800e8b2fe85c1354ae97"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d99fa8f93d0a38fbee"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f804e97c6c3442024ad2c" data-id="3479995fc21f804e97c6c3442024ad2c"><span><div id="3479995fc21f804e97c6c3442024ad2c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f804e97c6c3442024ad2c" title="完整代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">完整代码</span></span></h4><div class="notion-text notion-block-3479995fc21f801b815fcd3e0fc0ecda">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f807cabc2cf8b52a593f5"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80dfb0d3f396febbdf50" data-id="3479995fc21f80dfb0d3f396febbdf50"><span><div id="3479995fc21f80dfb0d3f396febbdf50" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80dfb0d3f396febbdf50" title="分段器组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">分段器组件</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f809d96c7d6edce72ee4c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:569.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acd0b25b2-d721-4fc5-befd-11e9b7321229%3Aimage.png?table=block&amp;id=3489995f-c21f-809d-96c7-d6edce72ee4c&amp;t=3489995f-c21f-809d-96c7-d6edce72ee4c" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f805099c6e5ff6b7a26d1" data-id="3479995fc21f805099c6e5ff6b7a26d1"><span><div id="3479995fc21f805099c6e5ff6b7a26d1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f805099c6e5ff6b7a26d1" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80f6958af9f769d922f6"><div>gui-segmented-control 分段切换组件适用于分类切换、状态切换等场景，可以对数据进行筛选，也可以配合轮播组件使用达到滑动切换的目的，您也可以把它当成 switch 组件来使用哦 ~</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8046b2ece52237adffd3" data-id="3479995fc21f8046b2ece52237adffd3"><span><div id="3479995fc21f8046b2ece52237adffd3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8046b2ece52237adffd3" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80ff9ddbd20503dcdf63"><div>gui-segmented-control : /graceUI/组件目录/gui-segmented-control</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8066b7affcf0c1d7ce49" data-id="3479995fc21f8066b7affcf0c1d7ce49"><span><div id="3479995fc21f8066b7affcf0c1d7ce49" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8066b7affcf0c1d7ce49" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80f0a398efb8ebaedc66"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80a38805fc5f85d2b816"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809f86e7f2546d1a1080"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803fb717d0a581855e9d" data-id="3479995fc21f803fb717d0a581855e9d"><span><div id="3479995fc21f803fb717d0a581855e9d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803fb717d0a581855e9d" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8047919ce93c0bcfbdf4"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80258589c54f3b4fd999"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f4ae4ff6478db15aa8"><td class="" style="width:120px"><div class="notion-simple-table-cell">items</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">切换项目数据, 格式 : [‘项目1’,‘项目2’,……]</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80588c6cd155249bc46f"><td class="" style="width:120px"><div class="notion-simple-table-cell">current</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">当前选择项目的索引</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f804393a4f71b21f5417a"><td class="" style="width:120px"><div class="notion-simple-table-cell">borderRadius</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">6rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件圆角设置</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80df950ef68ab00f3eeb" data-id="3479995fc21f80df950ef68ab00f3eeb"><span><div id="3479995fc21f80df950ef68ab00f3eeb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80df950ef68ab00f3eeb" title="皮肤样式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">皮肤样式</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8078b313c3e58113e173" data-id="3479995fc21f8078b313c3e58113e173"><span><div id="3479995fc21f8078b313c3e58113e173" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8078b313c3e58113e173" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80fea6c6e7c4ee1de93a">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80ffb492c9b7256bf751"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f801aa377f63277480bb9" data-id="3479995fc21f801aa377f63277480bb9"><span><div id="3479995fc21f801aa377f63277480bb9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f801aa377f63277480bb9" title="折叠面板"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">折叠面板</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f808986ecd47f614e6aca"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:540.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae93fe096-5665-48f7-9b98-b15cd510314e%3Aimage.png?table=block&amp;id=3489995f-c21f-8089-86ec-d47f614e6aca&amp;t=3489995f-c21f-8089-86ec-d47f614e6aca" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803bb29be45f1782f62a" data-id="3479995fc21f803bb29be45f1782f62a"><span><div id="3479995fc21f803bb29be45f1782f62a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803bb29be45f1782f62a" title="布局介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8008bbcceaea439629c1"><div>折叠面板可以用于动态展示类似结构的某个项目，可以展示更多的列表信息。 因封装组件反而不灵活，所以以样式形式实现。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d1a800f8c04b37db5e" data-id="3479995fc21f80d1a800f8c04b37db5e"><span><div id="3479995fc21f80d1a800f8c04b37db5e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d1a800f8c04b37db5e" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f801aa259f13105180987"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80e38916d01b5a047ebd"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8079b1a7d8e8a9f159c7"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803ca7aac2434e789361" data-id="3479995fc21f803ca7aac2434e789361"><span><div id="3479995fc21f803ca7aac2434e789361" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803ca7aac2434e789361" title="完整代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">完整代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80fca85afd929b767964">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80f99df2e509d939b87b"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80be8332c58c1d1b1247" data-id="3479995fc21f80be8332c58c1d1b1247"><span><div id="3479995fc21f80be8332c58c1d1b1247" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80be8332c58c1d1b1247" title="竖向切换"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">竖向切换</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80348c1bc846c2cf11c1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:536.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1750053a-217a-45c3-bd87-77b102dcfb85%3Aimage.png?table=block&amp;id=3489995f-c21f-8034-8c1b-c846c2cf11c1&amp;t=3489995f-c21f-8034-8c1b-c846c2cf11c1" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ffb8a4fdbf047d9341" data-id="3479995fc21f80ffb8a4fdbf047d9341"><span><div id="3479995fc21f80ffb8a4fdbf047d9341" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ffb8a4fdbf047d9341" title="布局介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8037b484fa8923e9ae9f"><div>竖向区域切换布局实现了点击切换导航跳转到页面具体位置的功能，同时当页面滚动时会自动识别对应的切换导航。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803b998eee28a8249982" data-id="3479995fc21f803b998eee28a8249982"><span><div id="3479995fc21f803b998eee28a8249982" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803b998eee28a8249982" title="布局原理"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局原理</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80caa31ec9143024c396"><div>1 uni-app vue 版本
1.1 页面核心元素布局使用  包裹;
1.2 当页面滚动时 根据  的 top 值获取应该激活的切换导航;
1.3 当点击切换导航时计算 的高度决定页面滚动位置;</div><div class="notion-text notion-block-3479995fc21f80eab03edcf39a1bbdc4">2 基于 weex 的 
2.1 nvue 无法控制页面滚动条，使用页面主体使用 list 及 cell 布局;
2.2 页面核心元素布局使用  包裹;
1.2 当页面滚动时 根据  的 top 值获取应该激活的切换导航;
1.3 当点击切换导航时根据 的索引滚动到对应位置;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f809ea05fe9528b17cc22" data-id="3479995fc21f809ea05fe9528b17cc22"><span><div id="3479995fc21f809ea05fe9528b17cc22" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f809ea05fe9528b17cc22" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80e68c82e52221e50879"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80ec9721d0e2ccab3883"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f804e929ddb50c16640bf"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8023b43fcbb767ec7862" data-id="3479995fc21f8023b43fcbb767ec7862"><span><div id="3479995fc21f8023b43fcbb767ec7862" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8023b43fcbb767ec7862" title="完整代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">完整代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80919568d05068316cfb">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80c6835ad47b67263245"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8070b498cb9494634162" data-id="3479995fc21f8070b498cb9494634162"><span><div id="3479995fc21f8070b498cb9494634162" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8070b498cb9494634162" title="分类切换"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">分类切换</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80f9b41fe6ae77e16a7d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:542.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9f07be8a-8cdc-4226-8373-145d2278b960%3Aimage.png?table=block&amp;id=3489995f-c21f-80f9-b41f-e6ae77e16a7d&amp;t=3489995f-c21f-80f9-b41f-e6ae77e16a7d" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8015846bc5305dd195a4" data-id="3479995fc21f8015846bc5305dd195a4"><span><div id="3479995fc21f8015846bc5305dd195a4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8015846bc5305dd195a4" title="布局介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f800b8032c7b02b77efa0"><div>1、点击分类切换到对应商品;
2、右侧产品列表滑动自动切换左侧对应分类;
3、搜索商品关键字并展示;
4、建议使用场景商品量不大的外卖、点餐、无人商店等应用；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80e4a265ee7daab0abaa" data-id="3479995fc21f80e4a265ee7daab0abaa"><span><div id="3479995fc21f80e4a265ee7daab0abaa" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80e4a265ee7daab0abaa" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80d19904d9c6b083650e"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f803ea5fbdaa5f7ffb13d"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f802888d6fea6a35bfea5"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80aa84cdc48709c75480" data-id="3479995fc21f80aa84cdc48709c75480"><span><div id="3479995fc21f80aa84cdc48709c75480" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80aa84cdc48709c75480" title="完整代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">完整代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80d5bb48e365d896d680">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80b38973e1858418abd5"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f807e97e2f44fa7e3ff6f" data-id="3479995fc21f807e97e2f44fa7e3ff6f"><span><div id="3479995fc21f807e97e2f44fa7e3ff6f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807e97e2f44fa7e3ff6f" title="滚动区域"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">滚动区域</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8037bb11d97e793ca5e9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:520.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa399e341-0532-4d2e-aee2-da4d464bff5e%3Aimage.png?table=block&amp;id=3489995f-c21f-8037-bb11-d97e793ca5e9&amp;t=3489995f-c21f-8037-bb11-d97e793ca5e9" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80059dadd6c9feb384e4" data-id="3479995fc21f80059dadd6c9feb384e4"><span><div id="3479995fc21f80059dadd6c9feb384e4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80059dadd6c9feb384e4" title="样式介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">样式介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8037811ee7cd152257a8"><div>滚动区域为原生组件，但使用时需要一些样式支持，GraceUI 提供基础样式，为您的使用提供便利 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f806c8d9afcd745de85b1" style="list-style-type:decimal"><li>横向滚动 : 使用 .gui-scroll-x 及 .gui-scroll-x-items 修饰滚动区域及滚动项目;</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f800180b6d5d1cc64c3a6" style="list-style-type:decimal"><li>竖向滚动 : 规划滚动区域及滚动项目的高度即可;</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-3479995fc21f80be844de60491e9701a" style="list-style-type:decimal"><li>宽度、高度属性请跟据项目需求在样式中重写，详见演示代码;</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-3479995fc21f80ff9c3ed6ad828410fe" style="list-style-type:decimal"><li>scroll-view 组件手册 : https://uniapp.dcloud.io/component/scroll-view</li></ol></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c5827fe27ff6abe4a5" data-id="3479995fc21f80c5827fe27ff6abe4a5"><span><div id="3479995fc21f80c5827fe27ff6abe4a5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c5827fe27ff6abe4a5" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8011b0e0fe30ede883e2"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80da8fa1e5031dc075d7"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807a8d14cb8c428c99ba"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80698e8cd2dd9673f851" data-id="3479995fc21f80698e8cd2dd9673f851"><span><div id="3479995fc21f80698e8cd2dd9673f851" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80698e8cd2dd9673f851" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80839c9beabc2db43f5b">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f806494d1c21593140542"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80878f26f36de2428ba6" data-id="3479995fc21f80878f26f36de2428ba6"><span><div id="3479995fc21f80878f26f36de2428ba6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80878f26f36de2428ba6" title="进度横向滚动"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">进度横向滚动</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80dd8c8dc789904b48d1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2998a20d-8ecc-4cff-ac52-691f58fe673b%3Aimage.png?table=block&amp;id=3489995f-c21f-80dd-8c8d-c789904b48d1&amp;t=3489995f-c21f-80dd-8c8d-c789904b48d1" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f1957ee0e8dffc157d" data-id="3479995fc21f80f1957ee0e8dffc157d"><span><div id="3479995fc21f80f1957ee0e8dffc157d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f1957ee0e8dffc157d" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80b9813aebbfacbecd74"><div>基于滚动区域组件封装的带有滚动进度条的横向滚动组件。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f804fa11ee05b2443fdcf" data-id="3479995fc21f804fa11ee05b2443fdcf"><span><div id="3479995fc21f804fa11ee05b2443fdcf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f804fa11ee05b2443fdcf" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80a8a530de45b1f5fda0"><div>gui-progress-scrollview : /graceUI/组件目录/gui-progress-scrollview</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803688a6dc1519ac144b" data-id="3479995fc21f803688a6dc1519ac144b"><span><div id="3479995fc21f803688a6dc1519ac144b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803688a6dc1519ac144b" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f800291e1ff21c74d3a1c"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80bf8ceff6e7b85ec2ba"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8042a0bac4ff1cd81a18"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f805fbc65e65484592f6a" data-id="3479995fc21f805fbc65e65484592f6a"><span><div id="3479995fc21f805fbc65e65484592f6a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f805fbc65e65484592f6a" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80f8ae48f8d69801187e"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8051872bc8e27beb71c3"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8001b728f99951e01724"><td class="" style="width:120px"><div class="notion-simple-table-cell">width</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">700</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件宽度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801c823fcf0f5988786d"><td class="" style="width:120px"><div class="notion-simple-table-cell">progressWidth</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">200</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度条宽度，值为 0 时关闭进度块展示</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8068b4e4d5ffaadc2cd4"><td class="" style="width:120px"><div class="notion-simple-table-cell">progressHeight</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">10</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度条高度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d0b738fde8804c55d5"><td class="" style="width:120px"><div class="notion-simple-table-cell">progressRadius</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">10</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度条圆角尺寸</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809ab1d3f671ab47d44c"><td class="" style="width:120px"><div class="notion-simple-table-cell">progressBG</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#D1D1D1</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度条背景色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80b7b3a8e7336d02a7f1"><td class="" style="width:120px"><div class="notion-simple-table-cell">progressBarWidth</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">60</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度块宽度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d4b4f4fe135cfe4dfe"><td class="" style="width:120px"><div class="notion-simple-table-cell">progressBarBG</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#008AFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度块背景色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806b9ce0f851893e9eee"><td class="" style="width:120px"><div class="notion-simple-table-cell">progressPosition</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">start</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度块位置，默认 start : 左侧、center : 居中、end : 右侧</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80748451e99fbcc4374d" data-id="3479995fc21f80748451e99fbcc4374d"><span><div id="3479995fc21f80748451e99fbcc4374d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80748451e99fbcc4374d" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f805d9091ddafc4296515"><div>scrolling : 滚动区域滚动时触发，携带参数 : 滚地区宽度, 滚动位置, 进度值 0 - 100；scrolltolower : 滚动区域滚动到最右侧触发；scrolltoupper : 滚动区域滚动到最左侧触发；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8090aa11ebc3629d5422" data-id="3479995fc21f8090aa11ebc3629d5422"><span><div id="3479995fc21f8090aa11ebc3629d5422" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8090aa11ebc3629d5422" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80aaba01c7ba394f8625">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80d1bac8e430ea682123"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8017a6bcfffe9dabae82" data-id="3479995fc21f8017a6bcfffe9dabae82"><span><div id="3479995fc21f8017a6bcfffe9dabae82" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8017a6bcfffe9dabae82" title="滚动公告"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">滚动公告</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80d0afbee8e9a17776df"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:517.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad62018d3-6b86-4b64-ad25-a85cb65b298e%3Aimage.png?table=block&amp;id=3489995f-c21f-80d0-afbe-e8e9a17776df&amp;t=3489995f-c21f-80d0-afbe-e8e9a17776df" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80fb84aaf73027162aee" data-id="3479995fc21f80fb84aaf73027162aee"><span><div id="3479995fc21f80fb84aaf73027162aee" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80fb84aaf73027162aee" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80dca3d8ed1d7179f593"><div>gui-speaker 滚动公告组件，以 swiper 组件为基础，可以用于展示多条公告的动画切换。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80fd8715edcf24ab7279" data-id="3479995fc21f80fd8715edcf24ab7279"><span><div id="3479995fc21f80fd8715edcf24ab7279" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80fd8715edcf24ab7279" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f805fb401c9b5f377c6c2"><div>gui-speaker : /graceUI/组件目录/gui-speaker</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8084a415c6d141bdef96" data-id="3479995fc21f8084a415c6d141bdef96"><span><div id="3479995fc21f8084a415c6d141bdef96" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8084a415c6d141bdef96" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8048a961f41ed47afa82"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f804789bcc46de1971af0"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80179c18e3091f885366"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8098a8a1f6ce8163a464" data-id="3479995fc21f8098a8a1f6ce8163a464"><span><div id="3479995fc21f8098a8a1f6ce8163a464" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8098a8a1f6ce8163a464" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80e9a36fcf6b58f86a53"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f809fae69f0e8423660f3"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8058a0f0fde2b91ce53e"><td class="" style="width:120px"><div class="notion-simple-table-cell">items</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">公告项目数据， 格式 : { title: “标题”, url: “../跳转路径”, opentype: “页面打开方式”} 跳转功能使用 navigator 实现，手册 : https://uniapp.dcloud.io/component/navigator</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809282f9de9d9566919f"><td class="" style="width:120px"><div class="notion-simple-table-cell">current</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">默认展示的选项</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f809aa790cc7e900e5c37"><td class="" style="width:120px"><div class="notion-simple-table-cell">vertical</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">false</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否竖向切换</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c28d03c8b5d04a1d16"><td class="" style="width:120px"><div class="notion-simple-table-cell">interval</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">5000</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">切换间隔时间</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80159105eef09f8ae1f4"><td class="" style="width:120px"><div class="notion-simple-table-cell">styles</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">overflow:hidden; height:60rpx; line-height:60rpx; font-size:28rpx;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">核心区域样式，请通过属性来修改</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8054ad0ae4ed514e2fa9" data-id="3479995fc21f8054ad0ae4ed514e2fa9"><span><div id="3479995fc21f8054ad0ae4ed514e2fa9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8054ad0ae4ed514e2fa9" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80e29667cc8b4c77bd90">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8005ae72e1afa8fe751b"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80c8bc34f39d5771d539" data-id="3479995fc21f80c8bc34f39d5771d539"><span><div id="3479995fc21f80c8bc34f39d5771d539" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c8bc34f39d5771d539" title="无缝滚动"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">无缝滚动</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80a3a372e1399657b3ca"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:541.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2590e5e1-a877-4616-a300-f7cb7a86a35d%3Aimage.png?table=block&amp;id=3489995f-c21f-80a3-a372-e1399657b3ca&amp;t=3489995f-c21f-80a3-a372-e1399657b3ca" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8002ad14f3b3000b9b1c" data-id="3479995fc21f8002ad14f3b3000b9b1c"><span><div id="3479995fc21f8002ad14f3b3000b9b1c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8002ad14f3b3000b9b1c" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80829b07cc4716aaf8ec"><div>无缝滚动适合一条较长的文本公告滚动展示的场景，使用 css 动画完成滚动效果。组件提供了插槽，滚动内容及样式可以自定义。nvue 平台使用 BindingX 实现滚动动画；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f802fa557eb3d8f531f13" data-id="3479995fc21f802fa557eb3d8f531f13"><span><div id="3479995fc21f802fa557eb3d8f531f13" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802fa557eb3d8f531f13" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80429332ea485369b09b"><div>gui-scroll-message : /graceUI/组件目录/gui-scroll-message</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80cfa2f2fce3c03e9bd2" data-id="3479995fc21f80cfa2f2fce3c03e9bd2"><span><div id="3479995fc21f80cfa2f2fce3c03e9bd2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80cfa2f2fce3c03e9bd2" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f803caeb9f7606f23ca82"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80f9af17cb229ba08103"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8071b510ef55034bc6e4"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80329ea1ea79ebe40eb3" data-id="3479995fc21f80329ea1ea79ebe40eb3"><span><div id="3479995fc21f80329ea1ea79ebe40eb3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80329ea1ea79ebe40eb3" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8062bd54c09003a4f1e4"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80469362dff135c11e48"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80bba87bf49ff1d2d65e"><td class="" style="width:120px"><div class="notion-simple-table-cell">speed nvue 专有属性</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">12</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滚动过程时间，单位秒，数值越大滚动越慢</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803ebd3ac759024c44a4"><td class="" style="width:120px"><div class="notion-simple-table-cell">distance nvue 专有属性 2021.03.23 新增</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">800</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滚动距离，请跟据内容长度进行调整</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806fbde8f8b60a1ddedd" data-id="3479995fc21f806fbde8f8b60a1ddedd"><span><div id="3479995fc21f806fbde8f8b60a1ddedd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806fbde8f8b60a1ddedd" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f809192bcf63da785cab8">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80909ec5c4c637b311f6"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80808b72d8b4a7d8f51a" data-id="3479995fc21f80808b72d8b4a7d8f51a"><span><div id="3479995fc21f80808b72d8b4a7d8f51a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80808b72d8b4a7d8f51a" title="无缝滚动·卡片模式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">无缝滚动·卡片模式</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80709392f1cc1f652130"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:538.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A425451f2-3979-470c-ada1-54300e71a520%3Aimage.png?table=block&amp;id=3489995f-c21f-8070-9392-f1cc1f652130&amp;t=3489995f-c21f-8070-9392-f1cc1f652130" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80909d0ec1b843fe717d" data-id="3479995fc21f80909d0ec1b843fe717d"><span><div id="3479995fc21f80909d0ec1b843fe717d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80909d0ec1b843fe717d" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80d894c9e9a0f5176d89"><div>横向无缝滚动，实现了循环滚动，内部为一个图片+一个遮罩形式的标题；
如果组件本身数据格式或者布局不能满足您的项目需要，您可以复制一个自己命名为自己的，对复制的自己进行进一步修改，并使用；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8030a075f93e21fdd0a4" data-id="3479995fc21f8030a075f93e21fdd0a4"><span><div id="3479995fc21f8030a075f93e21fdd0a4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8030a075f93e21fdd0a4" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f808a985ce839f7f8d7ac"><div>gui-scrollitems : /graceUI/组件目录/gui-scrollitems</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f5a665de35af471ee0" data-id="3479995fc21f80f5a665de35af471ee0"><span><div id="3479995fc21f80f5a665de35af471ee0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f5a665de35af471ee0" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f807cb8cce416eea7ea5b"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f809caeb6f8bf6816dee1"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807289dad9a70c9d180c"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8013a9dad7190156e218" data-id="3479995fc21f8013a9dad7190156e218"><span><div id="3479995fc21f8013a9dad7190156e218" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8013a9dad7190156e218" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8026b26df736b9e7816a"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80979b77ffdb839f7f84"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80268d05f70ed41c0ede"><td class="" style="width:120px"><div class="notion-simple-table-cell">width</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">690</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件宽度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80bb8352f07c0342c0cb"><td class="" style="width:120px"><div class="notion-simple-table-cell">itemWidth</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">345</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">项目宽度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801ba7f0dd088b745fa7"><td class="" style="width:120px"><div class="notion-simple-table-cell">itemHeight</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">200</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">项目高度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f8b42dd1d52660b992"><td class="" style="width:120px"><div class="notion-simple-table-cell">itemMargin</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">10</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">项目右侧间距，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a4ab01c1b7f5934190"><td class="" style="width:120px"><div class="notion-simple-table-cell">items</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">项目数据，格式见演示代码</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80429235ea74f3a614ba"><td class="" style="width:120px"><div class="notion-simple-table-cell">duration</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">25</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滚动事件，数组越小滚动越快</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ca9fedcf0f3f39db62" data-id="3479995fc21f80ca9fedcf0f3f39db62"><span><div id="3479995fc21f80ca9fedcf0f3f39db62" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ca9fedcf0f3f39db62" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f807597bbf4efc925ea82"><div>itemTap : 滚动项目被点击时触发，携带数据 : 完整的被点击项目数据{对象形式}；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f98ceaf7ea59a91817" data-id="3479995fc21f80f98ceaf7ea59a91817"><span><div id="3479995fc21f80f98ceaf7ea59a91817" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f98ceaf7ea59a91817" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80ab9437c37a572cf38f">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80ffa14bf99b58d16234"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8073b129fe06bf7c476f" data-id="3479995fc21f8073b129fe06bf7c476f"><span><div id="3479995fc21f8073b129fe06bf7c476f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8073b129fe06bf7c476f" title="竖向滚动公告"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">竖向滚动公告</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f804ca781dd7b5ecbbd6b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:539.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac5023608-e09f-483d-b3da-9d8fc0951922%3Aimage.png?table=block&amp;id=3489995f-c21f-804c-a781-dd7b5ecbbd6b&amp;t=3489995f-c21f-804c-a781-dd7b5ecbbd6b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8044996edd9a4db7874e" data-id="3479995fc21f8044996edd9a4db7874e"><span><div id="3479995fc21f8044996edd9a4db7874e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8044996edd9a4db7874e" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80d2a11ed4a1193622fb"><div>GraceUI 竖向滚动公告组件实现了竖向消息循环展示功能，能够识别用户滚动行为实现合理的滚动机制、能够动态添加消息；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ee8317d46b86b2a8bc" data-id="3479995fc21f80ee8317d46b86b2a8bc"><span><div id="3479995fc21f80ee8317d46b86b2a8bc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ee8317d46b86b2a8bc" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80e8bf41d6020151f5da"><div>gui-scrollitems-y : /graceUI/组件目录/gui-scrollitems-y</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f805da856fb5ef09c2fac" data-id="3479995fc21f805da856fb5ef09c2fac"><span><div id="3479995fc21f805da856fb5ef09c2fac" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f805da856fb5ef09c2fac" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f805f97e3e2b187a2573e"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80c385b2e7936f8f7777"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f808ca15afdbd1e45f9cd"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f809ab373f7e068a0b69c" data-id="3479995fc21f809ab373f7e068a0b69c"><span><div id="3479995fc21f809ab373f7e068a0b69c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f809ab373f7e068a0b69c" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f806091dccae181c5c597"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80c6b42bda8fe57bdd75"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801b834fd105767c3288"><td class="" style="width:120px"><div class="notion-simple-table-cell">height</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">480rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">滚动区域高度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c3a0abeb46ee7bfddc"><td class="" style="width:120px"><div class="notion-simple-table-cell">imgStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">width:88rpx; height:88rpx; border-radius:6rpx; margin-top:5rpx; margin-right:28rpx;’</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">左侧图片样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f800ba205e1b2a7e1c9f2"><td class="" style="width:120px"><div class="notion-simple-table-cell">textStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">font-size:28rpx; color:#2B2E3D; line-height:38rpx;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">右侧文本样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f384d6e3e78af70702"><td class="" style="width:120px"><div class="notion-simple-table-cell">msgWidth</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">570rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">右侧文本区域宽度 ( 等于 外层宽度 - 图片宽度 - 30rpx )</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8090b1f8f222d675ee7f"><td class="" style="width:120px"><div class="notion-simple-table-cell">duration</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">6000</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">消息切换间隔时间</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f808d9424f7ddeabda28a"><td class="" style="width:120px"><div class="notion-simple-table-cell">items</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">消息数组，格式见演示代码，</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f805e96a9e8344d684131" data-id="3479995fc21f805e96a9e8344d684131"><span><div id="3479995fc21f805e96a9e8344d684131" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f805e96a9e8344d684131" title="组件方法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件方法</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f805c85a4d6d4235ad97f"><div>addItem : 添加消息对象 , 格式见演示代码；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8084ad5fd3f05cb170f1" data-id="3479995fc21f8084ad5fd3f05cb170f1"><span><div id="3479995fc21f8084ad5fd3f05cb170f1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8084ad5fd3f05cb170f1" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f808dbff5dbd9a03f17b5">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80499bc2dc60f629bd24"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80ecb0b2dea0412e08e0" data-id="3479995fc21f80ecb0b2dea0412e08e0"><span><div id="3479995fc21f80ecb0b2dea0412e08e0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ecb0b2dea0412e08e0" title="轮播组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">轮播组件</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80f8ae0ad4ec22b2a855"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:533.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac466a64c-818b-4972-950d-1359f3deba4f%3Aimage.png?table=block&amp;id=3489995f-c21f-80f8-ae0a-d4ec22b2a855&amp;t=3489995f-c21f-80f8-ae0a-d4ec22b2a855" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80dcaef2f5b570d8b9b7" data-id="3479995fc21f80dcaef2f5b570d8b9b7"><span><div id="3479995fc21f80dcaef2f5b570d8b9b7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80dcaef2f5b570d8b9b7" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f806c919ae11ec278429c"><div>gui-swiper : /graceUI/组件目录/gui-swiper</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d58650f6872f972dfc" data-id="3479995fc21f80d58650f6872f972dfc"><span><div id="3479995fc21f80d58650f6872f972dfc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d58650f6872f972dfc" title="重要说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">重要说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f803eb3ead26ebbe522ac"><div>01 组件宽度高度算法 ( 所有轮播图的宽高比应该是一样的哦 )
组件宽度 = 外层元素宽度 如 700rpx
组件高度 = 轮播图高度 / 轮播图宽度 * 组件宽度，如 轮播图片为 500 px * 225 px, 那么 :
组件高度 = 225 / 500 * 700 = 315 rpx</div><div class="notion-text notion-block-3479995fc21f80d59b85e60ef1341dd7">02 请参考演示代码利用属性配置出各种形式的轮播组件;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ada149c39f7cf100af" data-id="3479995fc21f80ada149c39f7cf100af"><span><div id="3479995fc21f80ada149c39f7cf100af" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ada149c39f7cf100af" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f806e8244d155c11a4dd8"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f806c96affe3a5d12f367"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8034bfedef665d5de98c"><td class="" style="width:120px"><div class="notion-simple-table-cell">width</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">750</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件宽度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80b99ffef9c9f7c4c5be"><td class="" style="width:120px"><div class="notion-simple-table-cell">height</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">300</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件高度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f802b89ffc77b57bc045f"><td class="" style="width:120px"><div class="notion-simple-table-cell">swiperItems</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">轮播项目数组，格式见演示代码</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c1b2a9c0d8deb13a19"><td class="" style="width:120px"><div class="notion-simple-table-cell">borderRadius</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">10rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">图片圆角尺寸</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80258612e57e8fc73d66"><td class="" style="width:120px"><div class="notion-simple-table-cell">indicatorBarHeight</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">68</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度圆点或标题文本高度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80fc937ed4926c794fbd"><td class="" style="width:120px"><div class="notion-simple-table-cell">indicatorBarBgColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">rgba(0,0,0,0)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度圆点或标题文本背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80579810d6a54bf54a6e"><td class="" style="width:120px"><div class="notion-simple-table-cell">indicatorWidth</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">18</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度圆点宽度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80e69839e75d3517d5f6"><td class="" style="width:120px"><div class="notion-simple-table-cell">indicatorActiveWidth</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">18</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度圆点激活后宽度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807b8499ee5c50b66376"><td class="" style="width:120px"><div class="notion-simple-table-cell">indicatorHeight</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">18</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度圆点高度，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8075b5c2c3815082222e"><td class="" style="width:120px"><div class="notion-simple-table-cell">indicatorRadius</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">18</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度圆点圆角尺寸，单位 rpx</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80dca626d7b3bc2acc3e"><td class="" style="width:120px"><div class="notion-simple-table-cell">indicatorColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">rgba(255, 255, 255, 0.6)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度圆点默认颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8003a693ffc115a0073d"><td class="" style="width:120px"><div class="notion-simple-table-cell">indicatorActiveColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#3688FF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进度圆点激活后颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80ffbaf8e969a8d6e158"><td class="" style="width:120px"><div class="notion-simple-table-cell">indicatorType</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">dot</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">none : 不展示圆点, dot : 可修饰的圆点, number : 数值+文本形式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8060b612c33b1e0db2c1"><td class="" style="width:120px"><div class="notion-simple-table-cell">indicatorPosition</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">absolute</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">圆点定位方式,赋值 relative 可以实现圆点在轮播图片下方</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80249171e200601f8046"><td class="" style="width:120px"><div class="notion-simple-table-cell">indicatorDirection</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">center</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">圆点点横向对齐方式，默认 center 居中, flex-start 左对齐, flex-end 右对齐</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c4b9cfdb3f25c651c4"><td class="" style="width:120px"><div class="notion-simple-table-cell">spacing</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">50</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">轮播项目间距 [ nvue 不支持 ]</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8055ae09ff6e0cdf8138"><td class="" style="width:120px"><div class="notion-simple-table-cell">padding</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">26</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">非激活项目的缩小间距 [ nvue 不支持 ]</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80418226c81453c41d96"><td class="" style="width:120px"><div class="notion-simple-table-cell">interval</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">5000</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">自动轮播间隔时间</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8074a031f23b4a9a8d8e"><td class="" style="width:120px"><div class="notion-simple-table-cell">autoplay</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否自动播放</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80369774e3ee4b3288ce"><td class="" style="width:120px"><div class="notion-simple-table-cell">currentIndex</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">当前激活项目索引</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f805eafd7ee548bb0cedf"><td class="" style="width:120px"><div class="notion-simple-table-cell">opacity</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0.66</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">非激活项目透明度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803c8284c941a371b5e7"><td class="" style="width:120px"><div class="notion-simple-table-cell">titleColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#FFFFFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">标题文本颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d8b8e4c32c3e6b7d17"><td class="" style="width:120px"><div class="notion-simple-table-cell">titleSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">28rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">标题文本大小</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80acaf63eb46995d8460"><td class="" style="width:120px"><div class="notion-simple-table-cell">imgMode 2022.02.23 新增</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">widthFix</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">内部图片组件的图片裁剪、缩放的模式</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806b9343e8922d5e985a" data-id="3479995fc21f806b9343e8922d5e985a"><span><div id="3479995fc21f806b9343e8922d5e985a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806b9343e8922d5e985a" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f804c81abd5ae62f6e0bf"><div>@swiperchange</div><div class="notion-text notion-block-3479995fc21f801f96edf6629535c6b6">轮播选项切换时触发，携带参数 : 当前轮播项目的索引值。</div><div class="notion-text notion-block-3479995fc21f805daddff903d30cfe1c">02 @taped
当选项数据的 opentype 为 click 时，用户点击选项触发并携带当前点击选项的索引值;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f800797d7d3d94aa7ac63" data-id="3479995fc21f800797d7d3d94aa7ac63"><span><div id="3479995fc21f800797d7d3d94aa7ac63" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f800797d7d3d94aa7ac63" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8001b9a6c2107d843807">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80518b75cf709fc4a80f"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80128781e8d56c2310a6" data-id="3479995fc21f80128781e8d56c2310a6"><span><div id="3479995fc21f80128781e8d56c2310a6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80128781e8d56c2310a6" title="滚动主体布局"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">滚动主体布局</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80bc80e4ee9450681a23"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:553.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Acf393c6f-6cf9-44b7-872f-15bf6bc82fb1%3Aimage.png?table=block&amp;id=3489995f-c21f-80bc-80e4-ee9450681a23&amp;t=3489995f-c21f-80bc-80e4-ee9450681a23" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f800aa762edc23816c705" data-id="3479995fc21f800aa762edc23816c705"><span><div id="3479995fc21f800aa762edc23816c705" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f800aa762edc23816c705" title="布局介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">布局介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80afacbbd1cac16bf2dc"><div>利用定位 + 滚动区域布局， 滚动区域与页面滚动相结合的一种主体滚动布局效果；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80628beff18771e41766" data-id="3479995fc21f80628beff18771e41766"><span><div id="3479995fc21f80628beff18771e41766" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80628beff18771e41766" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80aaa586f97f12e8be22"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80839f65e0df6cd162f2"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803cb5c4fd96454f35c0"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80039ce7d235d90e1c63" data-id="3479995fc21f80039ce7d235d90e1c63"><span><div id="3479995fc21f80039ce7d235d90e1c63" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80039ce7d235d90e1c63" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80c6bd47d5e06c470687">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80378957e17614314b8b"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f807b8658cac7896f302a" data-id="3479995fc21f807b8658cac7896f302a"><span><div id="3479995fc21f807b8658cac7896f302a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807b8658cac7896f302a" title="全屏Loading"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">全屏Loading</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8093bd80cd90651fcaf5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:545.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2d39555a-799c-49bd-a8db-78a598ff0867%3Aimage.png?table=block&amp;id=3489995f-c21f-8093-bd80-cd90651fcaf5&amp;t=3489995f-c21f-8093-bd80-cd90651fcaf5" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8006a838c5dd36573b4a" data-id="3479995fc21f8006a838c5dd36573b4a"><span><div id="3479995fc21f8006a838c5dd36573b4a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8006a838c5dd36573b4a" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80eeb4c1d6bf6e15f0fe"><div>GraceUI 全屏 Loading 组件可以遮住页面，并在居中位置展示 Loading 动画，您可以在各类加载场景使用它。gui-page 页面组件内置了此组件，可以利用 page 组件的 isLoading 属性控制动画展示|关闭。nvue 端使用 BindingX 实现 Loading 动画。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80179cf1e15176494c36" data-id="3479995fc21f80179cf1e15176494c36"><span><div id="3479995fc21f80179cf1e15176494c36" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80179cf1e15176494c36" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f806a8400fee51a99379d"><div>gui-page-loading : /graceUI/组件目录/gui-page-loading</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803bbfb4d25ea60d5e08" data-id="3479995fc21f803bbfb4d25ea60d5e08"><span><div id="3479995fc21f803bbfb4d25ea60d5e08" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803bbfb4d25ea60d5e08" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8007b92afd6cd46847e8"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80db8bd4fda2ed772b21"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80eba128f800d909f43f"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f805b94c5d734791a061a" data-id="3479995fc21f805b94c5d734791a061a"><span><div id="3479995fc21f805b94c5d734791a061a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f805b94c5d734791a061a" title="组件方法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件方法</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806ab079c9fcdca24581" data-id="3479995fc21f806ab079c9fcdca24581"><span><div id="3479995fc21f806ab079c9fcdca24581" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806ab079c9fcdca24581" title="样式修改"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">样式修改</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80d7a247e424a8b8fafd"><div>您可以通过修改皮肤样式来修改 gui-page-loading 组件的遮罩背景及动画圆点样式 ：</div><div class="notion-text notion-block-3479995fc21f80499356efe199ae09ae">/* 全屏 Loading 背景颜色 */</div><div class="notion-text notion-block-3479995fc21f80bf8ed3c15ffdb2e8ac">.gui-page-loading-bg{background-color:rgba(255,255,255,0.88);}</div><div class="notion-text notion-block-3479995fc21f80cb9206d7eb5702e7c0">/* 圆点颜色 */</div><div class="notion-text notion-block-3479995fc21f80639ea5ff86fab3f3fc">.gui-page-loading-color{background-color:#2B2E3D;}</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80328bc4e27da152fbe3" data-id="3479995fc21f80328bc4e27da152fbe3"><span><div id="3479995fc21f80328bc4e27da152fbe3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80328bc4e27da152fbe3" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80b5bbf6c115ad13caa6">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8076bb73d794fa61b290"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80ca9eece9ce35c98ce4" data-id="3479995fc21f80ca9eece9ce35c98ce4"><span><div id="3479995fc21f80ca9eece9ce35c98ce4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ca9eece9ce35c98ce4" title="下拉刷新·基于页面组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">下拉刷新·基于页面组件</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80e78788d61fbbcdf156"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:537.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A82c0f18e-e66d-4e11-b5c3-443ce8acc331%3Aimage.png?table=block&amp;id=3489995f-c21f-80e7-8788-d61fbbcdf156&amp;t=3489995f-c21f-80e7-8788-d61fbbcdf156" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80a7aa70d693a5a7b196" data-id="3479995fc21f80a7aa70d693a5a7b196"><span><div id="3479995fc21f80a7aa70d693a5a7b196" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80a7aa70d693a5a7b196" title="相关说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">相关说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8033a36fc8d1adb7f3fd"><div>本示例使用页面组件 ( gui-page ) 完成下拉刷新工作，注意事项 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f804a9faedf442138d0e6" style="list-style-type:decimal"><li>页面将使用 滚动区域 作为主体 ( 高度自动铺满屏幕 )、利用手指事件来实现下拉刷新 [ 页面不会产生滚动所以不会产生页面滚动事件哦 ~ ]；</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f80c18903e2742562f713" style="list-style-type:decimal"><li>不适合全屏选项卡形式的刷新，如需实现全屏选项卡形式的刷新请点击手册左侧 [ 切换布局 &gt; 全屏选项卡 ] 查看解决方案；</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-3479995fc21f80a385dedb7df1b83f56" style="list-style-type:decimal"><li>内部使用了 gui-refresh 组件，自动完成手指触屏事件绑定使用更加方便；</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-3479995fc21f8065a205c4843ebbb55c" style="list-style-type:decimal"><li>您也可以使用 gui-refresh 组件 + 滚动区域在不使用 gui-pape 组件的情况下实现自定义刷新；</li></ol></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80059dbae2838817d243" data-id="3479995fc21f80059dbae2838817d243"><span><div id="3479995fc21f80059dbae2838817d243" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80059dbae2838817d243" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8037b9e2c4aaa0e39067"><div>gui-refresh : /graceUI/组件目录/gui-refresh</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80bfad8defacc7625d0f" data-id="3479995fc21f80bfad8defacc7625d0f"><span><div id="3479995fc21f80bfad8defacc7625d0f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80bfad8defacc7625d0f" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80f4bebaeac77d9c3f4b"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80b1820bfeb062240508"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803aafbfd5d2bbb5648e"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8088bed5dca9c14bbe7d" data-id="3479995fc21f8088bed5dca9c14bbe7d"><span><div id="3479995fc21f8088bed5dca9c14bbe7d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8088bed5dca9c14bbe7d" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8035b54fec15a860d766"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80b6b250fcd18b3b44e6"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8078970fe7dc13995785"><td class="" style="width:120px"><div class="notion-simple-table-cell">refreshText</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[‘继续下拉刷新’,‘松开手指开始刷新’,‘数据刷新中’,‘数据已刷新’]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">刷新过程中展示的文本</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80b68ad5c43ae436855c"><td class="" style="width:120px"><div class="notion-simple-table-cell">refreshBgColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[‘#FFFFFF’,‘#FFFFFF’,‘#FFFFFF’,‘#63D2BC’]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">刷新过程中组件的背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8002a5f6e455dbf5858c"><td class="" style="width:120px"><div class="notion-simple-table-cell">refreshColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[‘rgba(69, 90, 100, 0.6)’,‘rgba(69, 90, 100, 0.6)’,‘#63D2BC’,‘#FFFFFF’]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">刷新过程中组件的文本颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801cacd8f97959ce4b06"><td class="" style="width:120px"><div class="notion-simple-table-cell">refreshFontSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">26rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件文本尺寸</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f807989dbc52e31218915" data-id="3479995fc21f807989dbc52e31218915"><span><div id="3479995fc21f807989dbc52e31218915" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807989dbc52e31218915" title="事件绑定"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">事件绑定</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f800dbbedd3737a25bffc"><div>使用 gui-refresh 组件 + 滚动区域 （ 自动铺满屏幕 ） 实现下拉刷新时，需要将滚动区域的手指事件传递给 gui-refresh 组件，touchstart() 参数 : 滚动区域 touchstart 事件的返回数据;touchmove() 参数 : 滚动区域 touchmove 事件的返回数据;touchend() 参数 : 滚动区域 touchend 事件的返回数据;</div><div class="notion-text notion-block-3479995fc21f8044a832f39a818e7b2e">以上数据使用 gui-page 组件来实现刷新时组件已经自动处理，自定义模式请请参考自定义模式代码；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806da639cdf2ec277683" data-id="3479995fc21f806da639cdf2ec277683"><span><div id="3479995fc21f806da639cdf2ec277683" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806da639cdf2ec277683" title="组件函数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件函数</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8064b3faf7f1172edc0c"><div>endload : 用于停止组件的加载动画并关闭加载组件；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80efa637febc3ec15872" data-id="3479995fc21f80efa637febc3ec15872"><span><div id="3479995fc21f80efa637febc3ec15872" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80efa637febc3ec15872" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80ac99eecd5c875cfe6b"><div>reload : 组件展示加载时触发，可以触发事件时完成刷新业务逻辑；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f802a9415f0bdada887e3" data-id="3479995fc21f802a9415f0bdada887e3"><span><div id="3479995fc21f802a9415f0bdada887e3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802a9415f0bdada887e3" title="注意事项"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">注意事项</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80c2a6f8c9e466a199b8"><div>利用 gui-page 组件实现下拉刷新， 属性全部添加到 gui-page 组件上；gui-page 组件添加 :refresh=“true” 属性开启下拉刷新；gui-page 组件添加 @reload=“reload” 事件监听、实现下拉刷新数据刷新逻辑；gui-page 组件添加 @scroll=“bodyScroll” 可以监听滚动区域滚动事件及滚动值；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80feb346d0f56cedae2e" data-id="3479995fc21f80feb346d0f56cedae2e"><span><div id="3479995fc21f80feb346d0f56cedae2e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80feb346d0f56cedae2e" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80bda012c922cb9c673d">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f800bb357cbaee38e01a0"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8053a9d8ff3a535e63ac" data-id="3479995fc21f8053a9d8ff3a535e63ac"><span><div id="3479995fc21f8053a9d8ff3a535e63ac" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8053a9d8ff3a535e63ac" title="基于页面组件的加载更多"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">基于页面组件的加载更多</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80ddb5cacab4376508c5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:540.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A045c3cec-e9dc-4a1e-b4ee-e944d9789c49%3Aimage.png?table=block&amp;id=3489995f-c21f-80dd-b5ca-cab4376508c5&amp;t=3489995f-c21f-80dd-b5ca-cab4376508c5" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80baa9e8e2dcf5366062" data-id="3479995fc21f80baa9e8e2dcf5366062"><span><div id="3479995fc21f80baa9e8e2dcf5366062" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80baa9e8e2dcf5366062" title="相关说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">相关说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80518b08d8ff4dd28e3a"><div>本示例使用页面组件 ( gui-page ) 完成加载更多工作，注意事项 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f80ca8427d6366252f662" style="list-style-type:decimal"><li>页面将使用 滚动区域 作为主体 ( 高度自动铺满屏幕 )、利用滚动区域触底事件来触发加载;</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f8058b93dcee2d4c46b8f" style="list-style-type:decimal"><li>不适合全屏选项卡形式的加载，如需实现全屏选项卡形式的刷新请点击手册左侧发现解决方案;</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-3479995fc21f80b58938d2c60fbde340" style="list-style-type:decimal"><li>内部使用了 gui-loadmore 组件;</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-3479995fc21f8097aa9cd204c303e11e" style="list-style-type:decimal"><li>您也可以使用 gui-loadmore 组件 在不使用 gui-pape 组件的情况下实现各种模式的加载更多;</li></ol><div class="notion-text notion-block-3479995fc21f80d0a51ff55d48160d3e">此组件最近一次更新时间 : 2021-02-23 12:15 ，请保证您的框架版本更新。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80a68587fcca302c072a" data-id="3479995fc21f80a68587fcca302c072a"><span><div id="3479995fc21f80a68587fcca302c072a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80a68587fcca302c072a" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8092901ce806364bd558"><div>gui-loadmore : /graceUI/组件目录/gui-loadmore</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806a8009c7aa2c27990a" data-id="3479995fc21f806a8009c7aa2c27990a"><span><div id="3479995fc21f806a8009c7aa2c27990a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806a8009c7aa2c27990a" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80e1a471f0c22a2c00c1"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8097b59fe0b24b0a673c"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f805a820ddcff8b145e6b"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8080bf0dc03cc9156957" data-id="3479995fc21f8080bf0dc03cc9156957"><span><div id="3479995fc21f8080bf0dc03cc9156957" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8080bf0dc03cc9156957" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f807d8c02f832c9e5ab36"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80bfb1d3d10f96634716"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807b82aac9af3a50cbb3"><td class="" style="width:120px"><div class="notion-simple-table-cell">loadMoreText</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[’‘,’更多数据加载中’, ‘已加载全部数据’,‘暂无数据’]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">加载过程中展示的文本</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80cca66edd41f9e876f5"><td class="" style="width:120px"><div class="notion-simple-table-cell">loadMoreColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[‘rgba(69, 90, 100, 0.6)’, ‘rgba(69, 90, 100, 0.6)’, ‘rgba(69, 90, 100, 0.8)’, ‘rgba(69, 90, 100, 0.6)’]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">加载过程中组件的文本颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80d89e1cff9f6820fdd6"><td class="" style="width:120px"><div class="notion-simple-table-cell">loadMoreFontSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">26rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件文本尺寸</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f805fadfcf9f9f8ccb444"><td class="" style="width:120px"><div class="notion-simple-table-cell">status 2021.02.20 新增</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">初始化加载状态 0 准备加载 1 加载中 2 加载到底 3 为空展示</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8049b96fd1d4ba76f167" data-id="3479995fc21f8049b96fd1d4ba76f167"><span><div id="3479995fc21f8049b96fd1d4ba76f167" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8049b96fd1d4ba76f167" title="组件方法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件方法</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80519ec5e693a8fbde7d"><div>loading() 开启加载动画，用于加载过程；stoploadmore() 停止加载动画，准备下一次加载；nomore() 加载到底，不能进行下一次加载；empty() 第一次加载数据为空，不能进行下一次加载；hide() 关闭组件；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80859db3c56274d14dca" data-id="3479995fc21f80859db3c56274d14dca"><span><div id="3479995fc21f80859db3c56274d14dca" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80859db3c56274d14dca" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80739a34c35efbdd9ebf"><div>@tapme : 组件被点击时触发给父级；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c9bc8aec87a7e510f0" data-id="3479995fc21f80c9bc8aec87a7e510f0"><span><div id="3479995fc21f80c9bc8aec87a7e510f0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c9bc8aec87a7e510f0" title="注意事项"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">注意事项</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f800289c5f1a9c8a27f1c"><div>利用 gui-page 组件实现加载更多， 属性全部添加到 gui-page 组件上;gui-page 组件添加 :loadmore=“true” 属性开启加载更多;gui-page 组件添加 @loadmorefun=“getdata” 事件监听、实现数据加载逻辑;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f800daceedb302e514b28" data-id="3479995fc21f800daceedb302e514b28"><span><div id="3479995fc21f800daceedb302e514b28" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f800daceedb302e514b28" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f808381f3f59caac1be2f">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80fc9cf0dee9a438425d"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8031b86acf283169435f" data-id="3479995fc21f8031b86acf283169435f"><span><div id="3479995fc21f8031b86acf283169435f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8031b86acf283169435f" title="基于页面组件的刷新加载"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">基于页面组件的刷新加载</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80e38748e7ce22893f9e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:548.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3e3a110a-e734-4fe3-b832-f0a466d5e575%3Aimage.png?table=block&amp;id=3489995f-c21f-80e3-8748-e7ce22893f9e&amp;t=3489995f-c21f-80e3-8748-e7ce22893f9e" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ae8d33d2e54bc39aef" data-id="3479995fc21f80ae8d33d2e54bc39aef"><span><div id="3479995fc21f80ae8d33d2e54bc39aef" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ae8d33d2e54bc39aef" title="相关说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">相关说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8058af76f764c2456b06"><div>本示例使用页面组件 ( gui-page ) 完成刷新和加载更多工作，相关说明见 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f807896bcf679ff20d453" style="list-style-type:decimal"><li>[ 下拉刷新 · 基于页面组件 ] https://www.graceui.com/v5/info/10054-52.html</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f80b1953ce0fc98231f0c" style="list-style-type:decimal"><li>[ 加载更多 · 基于页面组件 ] https://www.graceui.com/v5/info/10055-52.html</li></ol><div class="notion-text notion-block-3479995fc21f80328038eddbc55b3b42">本页面演示了2者的组合使用，提供完整的刷新和加载逻辑。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d9897bf360b6b6242a" data-id="3479995fc21f80d9897bf360b6b6242a"><span><div id="3479995fc21f80d9897bf360b6b6242a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d9897bf360b6b6242a" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f800da41adee589cc9e47"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80998cbfdb2fc6d97750"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80408cecca64b754aae3"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80918c45d138f0f98ace" data-id="3479995fc21f80918c45d138f0f98ace"><span><div id="3479995fc21f80918c45d138f0f98ace" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80918c45d138f0f98ace" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80689adfd36dc031911e">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f803289a7e44480df2693"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80fabdb5fc73c69e0261" data-id="3479995fc21f80fabdb5fc73c69e0261"><span><div id="3479995fc21f80fabdb5fc73c69e0261" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80fabdb5fc73c69e0261" title="自定义模式刷新加载"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">自定义模式刷新加载</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80739c47eb588373f33b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:539.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aaa896240-51be-4319-bb4e-1f623258b805%3Aimage.png?table=block&amp;id=3489995f-c21f-8073-9c47-eb588373f33b&amp;t=3489995f-c21f-8073-9c47-eb588373f33b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f1a94cddc28bb7c063" data-id="3479995fc21f80f1a94cddc28bb7c063"><span><div id="3479995fc21f80f1a94cddc28bb7c063" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f1a94cddc28bb7c063" title="相关说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">相关说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80ff8826fb6abcddfaf9"><div>原理 :</div><div class="notion-text notion-block-3479995fc21f806b8b99f5dfd6a878d0">本示例使用 gui-refresh 、gui-loadmore、滚动区域组合来实现自定义模式的刷新和加载；相关组件及原理手册 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f8067bedfefb3deb2723c" style="list-style-type:decimal"><li>[ 下拉刷新 · 基于页面组件 ] https://www.graceui.com/v5/info/10054-52.html</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f80a18ceced0acdb689f1" style="list-style-type:decimal"><li>[ 加载更多 · 基于页面组件 ] https://www.graceui.com/v5/info/10055-52.html</li></ol><div class="notion-text notion-block-3479995fc21f80a08884f7e3572450ba">与直接使用 gui-page 组件的区别 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f8025ac62eec3fb91eddf" style="list-style-type:decimal"><li>更灵活的刷新滚动区域位置;</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f802ca688c52ab31458aa" style="list-style-type:decimal"><li>需要手动绑定事件，实现一些相关的逻辑；</li></ol><div class="notion-text notion-block-3479995fc21f80388fd2e13e00a87e21">当刷新或者加载更多执行函数加载数据未结束时，不能再次执行刷新和加载，所以我们在演示代码中使用 :</div><div class="notion-text notion-block-3479995fc21f802a99dec3629a3471ef">apiLoadingStatus 变量来记录了 api 加载数据的过程，原理 :</div><ol start="1" class="notion-list notion-list-numbered notion-block-3479995fc21f800a83b8f78e61cdb8b7" style="list-style-type:decimal"><li>api 加载时 apiLoadingStatus 为 true， 结束时 为 false ;</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3479995fc21f80209da3ca836e7a2b56" style="list-style-type:decimal"><li>在加载和刷新时 判断 apiLoadingStatus 变量决定是否继续执行；</li></ol></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8080aa6df9da638d722f" data-id="3479995fc21f8080aa6df9da638d722f"><span><div id="3479995fc21f8080aa6df9da638d722f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8080aa6df9da638d722f" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80d4aaa9d7f98104e763"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f802bbe95d07ca80fdafb"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80e9a2d1de3ab3d91cce"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80a084d0e8ff76efea71" data-id="3479995fc21f80a084d0e8ff76efea71"><span><div id="3479995fc21f80a084d0e8ff76efea71" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80a084d0e8ff76efea71" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8077bc79e4a8031ca3e9">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80bcb62eef0a178010ce"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80a3b2cde936ed6629bc" data-id="3479995fc21f80a3b2cde936ed6629bc"><span><div id="3479995fc21f80a3b2cde936ed6629bc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80a3b2cde936ed6629bc" title="原生模式的刷新加载"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">原生模式的刷新加载</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80cc8e00f0247f9886a8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:556.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A51e579fe-4c55-4dc7-8339-9b0551a83bc7%3Aimage.png?table=block&amp;id=3489995f-c21f-80cc-8e00-f0247f9886a8&amp;t=3489995f-c21f-80cc-8e00-f0247f9886a8" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f09365f1c9d7679c85" data-id="3479995fc21f80f09365f1c9d7679c85"><span><div id="3479995fc21f80f09365f1c9d7679c85" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f09365f1c9d7679c85" title="演示介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示介绍</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80eb9571c816b9f845fa" data-id="3479995fc21f80eb9571c816b9f845fa"><span><div id="3479995fc21f80eb9571c816b9f845fa" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80eb9571c816b9f845fa" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80939f26d1549482505f"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80b89248dced041010e1"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80bebc32ffcc2e381e53"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f807ebacfcb214c39b017" data-id="3479995fc21f807ebacfcb214c39b017"><span><div id="3479995fc21f807ebacfcb214c39b017" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807ebacfcb214c39b017" title="细节提示"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">细节提示</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b78beceefa12eebbc5" data-id="3479995fc21f80b78beceefa12eebbc5"><span><div id="3479995fc21f80b78beceefa12eebbc5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b78beceefa12eebbc5" title="完整代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">完整代码</span></span></h4><div class="notion-text notion-block-3479995fc21f807c841afbfe6974e195">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80348426ee6c963f5c69"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8059aaf2fa543776d76f" data-id="3479995fc21f8059aaf2fa543776d76f"><span><div id="3479995fc21f8059aaf2fa543776d76f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8059aaf2fa543776d76f" title="弹层组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">弹层组件</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8001a4e1c3d452a15cd8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:561.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad0d58780-d0ae-455f-b4e9-283f888d3617%3Aimage.png?table=block&amp;id=3489995f-c21f-8001-a4e1-c3d452a15cd8&amp;t=3489995f-c21f-8001-a4e1-c3d452a15cd8" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f800a9cced4fc5914b591" data-id="3479995fc21f800a9cced4fc5914b591"><span><div id="3479995fc21f800a9cced4fc5914b591" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f800a9cced4fc5914b591" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8002ae82d0721e8ebbc8"><div>gui-popup 组件可以实现在页面的中间、顶部、底部、左侧、右侧以动画形式展示一个弹层。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f802fa639c5b0c2f3a9d2" data-id="3479995fc21f802fa639c5b0c2f3a9d2"><span><div id="3479995fc21f802fa639c5b0c2f3a9d2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802fa639c5b0c2f3a9d2" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f803d8d2bc751f2c0e637"><div>gui-popup : /graceUI/组件目录/gui-popup</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8020b260d64d1b74bc5e" data-id="3479995fc21f8020b260d64d1b74bc5e"><span><div id="3479995fc21f8020b260d64d1b74bc5e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8020b260d64d1b74bc5e" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80318c84c96733c21ed2"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80e0a768eb06d6cd290d"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80eaa245c7f36c2422ca"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80a0a3aaf30e5d6df5e6" data-id="3479995fc21f80a0a3aaf30e5d6df5e6"><span><div id="3479995fc21f80a0a3aaf30e5d6df5e6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80a0a3aaf30e5d6df5e6" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80488957d2f283155d16"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f806bb00ac57f39dbb2db"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f802585b0e4107809f6b6"><td class="" style="width:120px"><div class="notion-simple-table-cell">width</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">580rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">核心区域宽度( 居中、左、右有效 )</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80eaa0e5e5c9d80386cd"><td class="" style="width:120px"><div class="notion-simple-table-cell">bgColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">rgba(0, 0, 0, 0.7)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">遮罩层背景颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801cba61cca12abd9d39"><td class="" style="width:120px"><div class="notion-simple-table-cell">position</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">center</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">核心区域位置，center：居中、top：顶部、 bottom：底部、left：左侧、right：右侧</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80e8b7e6db73f3e7a9d6"><td class="" style="width:120px"><div class="notion-simple-table-cell">canCloseByShade</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">点击遮罩层是否关闭组件</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f802ea416e8b5d0217d50"><td class="" style="width:120px"><div class="notion-simple-table-cell">zIndex</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">99999</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件 z-index 值</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80de88f5ccff0012aabb"><td class="" style="width:120px"><div class="notion-simple-table-cell">top</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件 top 值，单位 px</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8035a73deb51457cac24"><td class="" style="width:120px"><div class="notion-simple-table-cell">duration 2021.10.19 新增</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">280</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件动画时长</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803fa88ec7ef1fc15700" data-id="3479995fc21f803fa88ec7ef1fc15700"><span><div id="3479995fc21f803fa88ec7ef1fc15700" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803fa88ec7ef1fc15700" title="组件方法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件方法</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f803bbc46e65f70571a6c"><div>open : 展示组件；close : 关闭组件；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8080a162d490e32e5a82" data-id="3479995fc21f8080a162d490e32e5a82"><span><div id="3479995fc21f8080a162d490e32e5a82" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8080a162d490e32e5a82" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8083bd0ccd189cac091b"><div>@open : 组件展示时触发；@close : 组件关闭时触发；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f0973edf76cad5b8e0" data-id="3479995fc21f80f0973edf76cad5b8e0"><span><div id="3479995fc21f80f0973edf76cad5b8e0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f0973edf76cad5b8e0" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8057850ce9a4fdcef126">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8084b90ed8a94b1f55ea"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f8099a62dfe06dd2b3cdd" data-id="3479995fc21f8099a62dfe06dd2b3cdd"><span><div id="3479995fc21f8099a62dfe06dd2b3cdd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8099a62dfe06dd2b3cdd" title="头部消息框"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">头部消息框</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80fb8a0fc6bcbad5b2f0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:542.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7e4af577-a907-4bec-8a94-28cecef58573%3Aimage.png?table=block&amp;id=3489995f-c21f-80fb-8a0f-c6bcbad5b2f0&amp;t=3489995f-c21f-80fb-8a0f-c6bcbad5b2f0" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803599d9cfa364392167" data-id="3479995fc21f803599d9cfa364392167"><span><div id="3479995fc21f803599d9cfa364392167" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803599d9cfa364392167" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8025995bfd1cce4afe40"><div>GraceUI 头部消息框组件可以用于操作过程提示，您可以通过插槽实现各种自定义形式的消息框；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8079a312ffa9ab4fccf1" data-id="3479995fc21f8079a312ffa9ab4fccf1"><span><div id="3479995fc21f8079a312ffa9ab4fccf1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8079a312ffa9ab4fccf1" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8095933ff710ac6c5961"><div>gui-top-message : /graceUI/组件目录/gui-top-message</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f7affdc159f34e1a51" data-id="3479995fc21f80f7affdc159f34e1a51"><span><div id="3479995fc21f80f7affdc159f34e1a51" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f7affdc159f34e1a51" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80fe8a9bd0651b7d389c"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8056a3bdc2775605fb44"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8087a870ce2040f7fb25"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f809aa795c2e508c142df" data-id="3479995fc21f809aa795c2e508c142df"><span><div id="3479995fc21f809aa795c2e508c142df" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f809aa795c2e508c142df" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80c68241e934b8f16d67"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80729d31fb6bddf4d299"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8066be9cd10c696c2721"><td class="" style="width:120px"><div class="notion-simple-table-cell">duration</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">2000</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">消息展示时间，单位 毫秒</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f804ab0f3dcd43f7f3b35"><td class="" style="width:120px"><div class="notion-simple-table-cell">customNav 2021.04.23 新增</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">false</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">调用组件的页面是否使用自定义头部导航</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f805cbab5ffaa936005d9" data-id="3479995fc21f805cbab5ffaa936005d9"><span><div id="3479995fc21f805cbab5ffaa936005d9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f805cbab5ffaa936005d9" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80b39e07e7d7634815e6">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f802cb133ce224addfb14"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80c99c3fe96b28d5c494" data-id="3479995fc21f80c99c3fe96b28d5c494"><span><div id="3479995fc21f80c99c3fe96b28d5c494" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c99c3fe96b28d5c494" title="模态对话框"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模态对话框</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80adb6a6cf996efca11c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:555.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa2b8fe57-4d47-482a-a654-39055cb28ef1%3Aimage.png?table=block&amp;id=3489995f-c21f-80ad-b6a6-cf996efca11c&amp;t=3489995f-c21f-80ad-b6a6-cf996efca11c" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8046b7a0eebb0f8c3cb0" data-id="3479995fc21f8046b7a0eebb0f8c3cb0"><span><div id="3479995fc21f8046b7a0eebb0f8c3cb0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8046b7a0eebb0f8c3cb0" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f8045a832d0c47a34ef3d"><div>gui-modal : /graceUI/组件目录/gui-modal</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80498018f326e4323d03" data-id="3479995fc21f80498018f326e4323d03"><span><div id="3479995fc21f80498018f326e4323d03" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80498018f326e4323d03" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f807685dfebc348633cad"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8087b7cbfed7eab3a2a9"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c4afefd48163647a3b"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f7a88fc8192b2903c1" data-id="3479995fc21f80f7a88fc8192b2903c1"><span><div id="3479995fc21f80f7a88fc8192b2903c1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f7a88fc8192b2903c1" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80abaa54f458d7c63d8b"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80b5861ae3538f27fefb"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f805ca739ef21558e7881"><td class="" style="width:120px"><div class="notion-simple-table-cell">width</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">580rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件宽度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f6a89cc7ea7756fb38"><td class="" style="width:120px"><div class="notion-simple-table-cell">bodyStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">background-color:#FFFFFF; border-radius:6rpx;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">消息框主体样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80e99c70f754c43f5870"><td class="" style="width:120px"><div class="notion-simple-table-cell">isCloseBtn</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示关闭按钮</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f197fef04a1fbc3eba"><td class="" style="width:120px"><div class="notion-simple-table-cell">closeBtnStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">color:#2B2E3D; font-size:28rpx;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">关闭按钮样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8028b4a1df1b38e92dd4"><td class="" style="width:120px"><div class="notion-simple-table-cell">isTitle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示标题</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8011b3b4caf6e7da6448"><td class="" style="width:120px"><div class="notion-simple-table-cell">title</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">’’</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">标题文本</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80ca89dfea0aa88ba950"><td class="" style="width:120px"><div class="notion-simple-table-cell">titleStyle</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">line-height:100rpx; font-size:28rpx; font-weight:700; color:#2B2E3D;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">标题样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f805fb269eea26039a459"><td class="" style="width:120px"><div class="notion-simple-table-cell">canCloseByShade</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">点击遮罩层能否关闭组件</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8019a62af303773c06d0"><td class="" style="width:120px"><div class="notion-simple-table-cell">zIndex 2021.08.24 新增</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">99</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">弹出层 z-index 值</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80b7a7a9fecb686e85c9" data-id="3479995fc21f80b7a7a9fecb686e85c9"><span><div id="3479995fc21f80b7a7a9fecb686e85c9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80b7a7a9fecb686e85c9" title="组件方法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件方法</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80c5964ffe736d0b1a85"><div>open() 打开对话框close() 关闭对话框</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8071a58dc6bee997c64c" data-id="3479995fc21f8071a58dc6bee997c64c"><span><div id="3479995fc21f8071a58dc6bee997c64c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8071a58dc6bee997c64c" title="组件事件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件事件</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80cbbbefc41168eff7c9"><div>@open 打开对话框时触发 2021.08.10 新增@close 关闭对话框时触发 2021.08.10 新增</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80589813c66471f3a3e0" data-id="3479995fc21f80589813c66471f3a3e0"><span><div id="3479995fc21f80589813c66471f3a3e0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80589813c66471f3a3e0" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80e08dbce665ad527261">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80acb69ce74a7adf352b"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f805593b4f4976f71c564" data-id="3479995fc21f805593b4f4976f71c564"><span><div id="3479995fc21f805593b4f4976f71c564" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f805593b4f4976f71c564" title="操作表组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">操作表组件</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8075a95ad63739716444"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:533.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7b9ee097-805c-4595-9ae8-beb5b55227be%3Aimage.png?table=block&amp;id=3489995f-c21f-8075-a95a-d63739716444&amp;t=3489995f-c21f-8075-a95a-d63739716444" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f801a9c0ed4d960f27fb8" data-id="3479995fc21f801a9c0ed4d960f27fb8"><span><div id="3479995fc21f801a9c0ed4d960f27fb8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f801a9c0ed4d960f27fb8" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80cc925ae0a1d5cc6532"><div>gui-action-sheet 组件类似 uni.showActionSheet，uni.showActionSheet 对操作项目有限制，可以使用 gui-action-sheet 组件更灵活实现底部操作列表功能。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c393c7fdaf87dd3f25" data-id="3479995fc21f80c393c7fdaf87dd3f25"><span><div id="3479995fc21f80c393c7fdaf87dd3f25" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c393c7fdaf87dd3f25" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f806d8bb2d46e0bf1757b"><div>gui-action-sheet : /graceUI/组件目录/gui-action-sheet</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80fc8d4ed4b6f83bc130" data-id="3479995fc21f80fc8d4ed4b6f83bc130"><span><div id="3479995fc21f80fc8d4ed4b6f83bc130" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80fc8d4ed4b6f83bc130" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80359601d2b4333cc3c8"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80d59f64e42809b038b0"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a0a453cd5f44a4633f"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8082ba68fd7b3671b659" data-id="3479995fc21f8082ba68fd7b3671b659"><span><div id="3479995fc21f8082ba68fd7b3671b659" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8082ba68fd7b3671b659" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8022a111ee9b1be28121"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80d9832feff759334421"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803ba3f6f1f341103465"><td class="" style="width:120px"><div class="notion-simple-table-cell">width</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">680</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">核心菜单区域宽度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80118f61ca925e3f44a3"><td class="" style="width:120px"><div class="notion-simple-table-cell">height</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">500</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选项列表滚动区域高度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8093ba96f771a911c359"><td class="" style="width:120px"><div class="notion-simple-table-cell">borderRadius</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">10rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">核心菜单圆角尺寸</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a38069fa7d0d86ce93"><td class="" style="width:120px"><div class="notion-simple-table-cell">zIndex</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">99</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件 z-index 值</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8062abc3cbf37e0bed72"><td class="" style="width:120px"><div class="notion-simple-table-cell">title</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">’’</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件标题</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80abb627f9ed534f2549"><td class="" style="width:120px"><div class="notion-simple-table-cell">titleColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#2B2E3D</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件标题颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806cb621e11757285068"><td class="" style="width:120px"><div class="notion-simple-table-cell">items</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Array</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">[]</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选择列表数据</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f800f8cdece0580d45d31"><td class="" style="width:120px"><div class="notion-simple-table-cell">listColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#008AFF</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选择列表本文颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f800f9cc3d653804a979b"><td class="" style="width:120px"><div class="notion-simple-table-cell">listLineHeight</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">95rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选择项目列表行高</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8079875ed804d5718f2a"><td class="" style="width:120px"><div class="notion-simple-table-cell">listFontSize</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">28rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">选择项目列表文本大小</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a9a48ec26e957a6746"><td class="" style="width:120px"><div class="notion-simple-table-cell">cancelBtnName</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">取消</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">取消按钮文本</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f804db56fce8ca4e93298"><td class="" style="width:120px"><div class="notion-simple-table-cell">cancelBtnColor</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">#rgba(69, 90, 100, 0.6)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">取消按钮颜色</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80978399c318ff3426f4"><td class="" style="width:120px"><div class="notion-simple-table-cell">isCancelBtn</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示取消按钮</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801bb65bf5cbfb4aaf1e"><td class="" style="width:120px"><div class="notion-simple-table-cell">canCloseByShade</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">false</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">点击遮罩层能否关闭组件</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f801d8e32dc779953b30c" data-id="3479995fc21f801d8e32dc779953b30c"><span><div id="3479995fc21f801d8e32dc779953b30c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f801d8e32dc779953b30c" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f800fa6afcfce9ddef008">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8071a204e948585ef0df"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f801b86d9f97d070ff237" data-id="3479995fc21f801b86d9f97d070ff237"><span><div id="3479995fc21f801b86d9f97d070ff237" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f801b86d9f97d070ff237" title="右侧菜单组件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">右侧菜单组件</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8028978bdbaf56772cf6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:537.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0cf316da-a393-4494-bb7b-ea0ba6d0c9dc%3Aimage.png?table=block&amp;id=3489995f-c21f-8028-978b-dbaf56772cf6&amp;t=3489995f-c21f-8028-978b-dbaf56772cf6" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d5a623ee25db23f9f8" data-id="3479995fc21f80d5a623ee25db23f9f8"><span><div id="3479995fc21f80d5a623ee25db23f9f8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d5a623ee25db23f9f8" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f803ea005ee71a6d0c8db"><div>固定在页面右下角的动态展开菜单，利用插槽实现菜单布局，可以灵活地实现符合项目需要的布局；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f807c9f30dabcaf9e6ef0" data-id="3479995fc21f807c9f30dabcaf9e6ef0"><span><div id="3479995fc21f807c9f30dabcaf9e6ef0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807c9f30dabcaf9e6ef0" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80a5b2e3f7e2ab2ebd68"><div>gui-right-menus : /graceUI/组件目录/gui-right-menus.vue</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c4a1f2d87065b62d1c" data-id="3479995fc21f80c4a1f2d87065b62d1c"><span><div id="3479995fc21f80c4a1f2d87065b62d1c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c4a1f2d87065b62d1c" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8024a19bcbd7af5836ae"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8075abfcf48ec2a9115b"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8028b792ea58aba88a90"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔ [ 无动画 ]</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806a8d3ffd6300b175ad" data-id="3479995fc21f806a8d3ffd6300b175ad"><span><div id="3479995fc21f806a8d3ffd6300b175ad" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806a8d3ffd6300b175ad" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f8005b121ce56d6a141bd"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80488619d122eff288b4"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c39314faf1e172ce54"><td class="" style="width:120px"><div class="notion-simple-table-cell">styles</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">right:20rpx;bottom:200rpx;z-index:999;width:100rpx;</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件主体样式，可以更根据项目要求灵活设置</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f807f9529d3180b1d1271" data-id="3479995fc21f807f9529d3180b1d1271"><span><div id="3479995fc21f807f9529d3180b1d1271" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807f9529d3180b1d1271" title="组件插槽"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件插槽</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f803f92b7c8dea69b6575"><div>menus-more : 功能按钮插槽，默认隐藏，点击主插槽展示；
menus-primary : 核心按钮插槽，点击打开 功能按钮插槽；
说明 :
如果不需要动态展示隐藏功能插槽（按钮默认展示），可以不实现 menus-more ，把点击元素全部放进 menus-primary 插槽，加上点击事件 ( @tap=点击事件) 即可 ；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80d3a91bd990b64f85a5" data-id="3479995fc21f80d3a91bd990b64f85a5"><span><div id="3479995fc21f80d3a91bd990b64f85a5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80d3a91bd990b64f85a5" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80abac5dcdde7e3205d5">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f802883e0d6e79a2c025a"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80c1838edd93f8353bdf" data-id="3479995fc21f80c1838edd93f8353bdf"><span><div id="3479995fc21f80c1838edd93f8353bdf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c1838edd93f8353bdf" title="弹出菜单"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">弹出菜单</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8008be49fbe7c6ac45be"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:545.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A823a7be5-71f9-4fa1-92ea-4e2dfa1ac63e%3Aimage.png?table=block&amp;id=3489995f-c21f-8008-be49-fbe7c6ac45be&amp;t=3489995f-c21f-8008-be49-fbe7c6ac45be" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80de903fc3ee08e4342c" data-id="3479995fc21f80de903fc3ee08e4342c"><span><div id="3479995fc21f80de903fc3ee08e4342c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80de903fc3ee08e4342c" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80d2809ad5414e058dc9"><div>gui-popup-menu : /graceUI/组件目录/gui-popup-menu</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f808d8bc9d45e9f7f2019" data-id="3479995fc21f808d8bc9d45e9f7f2019"><span><div id="3479995fc21f808d8bc9d45e9f7f2019" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f808d8bc9d45e9f7f2019" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80ac85a3e696dbeaa35b"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8046887fd2df81d2f6e0"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806e9df5d3004eaced54"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8079af80feb224d0d746" data-id="3479995fc21f8079af80feb224d0d746"><span><div id="3479995fc21f8079af80feb224d0d746" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8079af80feb224d0d746" title="平台差异"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">平台差异</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f801aa62fff9a37550198"><div>nvue 使用是需要动态计算菜单按钮的定位值，方法见演示代码；nvue 平台请在页面最后放置弹出层元素或组件；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f801ba22dca67bcf64c51" data-id="3479995fc21f801ba22dca67bcf64c51"><span><div id="3479995fc21f801ba22dca67bcf64c51" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f801ba22dca67bcf64c51" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f806d8dbcc1a55433a11b"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80dc89e1d8e9fca6a673"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8084a999dbf22b20a7a8"><td class="" style="width:120px"><div class="notion-simple-table-cell">menuWidth</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">258rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">菜单宽度</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80318fd8f3640b71c796"><td class="" style="width:120px"><div class="notion-simple-table-cell">background</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">rgba(0,0,0, 0.3)</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">遮罩层背景色( 非 nvue 平台有效 )</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f801496a5e0e437668b77"><td class="" style="width:120px"><div class="notion-simple-table-cell">zIndex</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Number</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">99</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">组件 z-index 值 ( 非 nvue 平台有效 )</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80efaab4d99a41dd3c34"><td class="" style="width:120px"><div class="notion-simple-table-cell">isArrow</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Boolean</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">true</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是否展示箭头 ( 非 nvue 平台有效 )</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803b89e9cd15b6ab88ef"><td class="" style="width:120px"><div class="notion-simple-table-cell">arrowDirection</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">right</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">箭头位置 [ left - 左, center - 居中, right - 右 ] ( 非 nvue 平台有效 )</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8079a8b2fb34409b24c6"><td class="" style="width:120px"><div class="notion-simple-table-cell">arrowMargin</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">0 15rpx</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">箭头间距 ( 非 nvue 平台有效 )</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80c290f8df8c9b32d6fb" data-id="3479995fc21f80c290f8df8c9b32d6fb"><span><div id="3479995fc21f80c290f8df8c9b32d6fb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c290f8df8c9b32d6fb" title="组件方法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件方法</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f807d8d78ce9af40ab06c"><div>open() 展示组件close() 关闭组件setTop(top) 设置组件 top 值，参数 top 值（nvue 平台使用）；setRight(right) 设置组件 right 值，参数 right 值（nvue 平台使用）；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f806381a9c20034a83ae6" data-id="3479995fc21f806381a9c20034a83ae6"><span><div id="3479995fc21f806381a9c20034a83ae6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f806381a9c20034a83ae6" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f80bfa9dbfd9320396d7b">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80399aecc610bf758904"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80ea9872f27835e7ebe7" data-id="3479995fc21f80ea9872f27835e7ebe7"><span><div id="3479995fc21f80ea9872f27835e7ebe7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ea9872f27835e7ebe7" title="表单元素"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">表单元素</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80aea5cbeacb98610cc3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:537.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac52c11cc-56e3-4501-aecd-81b89e7b5b0a%3Aimage.png?table=block&amp;id=3489995f-c21f-80ae-a5cb-eacb98610cc3&amp;t=3489995f-c21f-80ae-a5cb-eacb98610cc3" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f808c85edea42baaa39f5" data-id="3479995fc21f808c85edea42baaa39f5"><span><div id="3479995fc21f808c85edea42baaa39f5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f808c85edea42baaa39f5" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80099d8ccdadc23170c7"><div>我们给您提供了基础的表单布局（横向、竖向），底层使用原生的表单元素使逻辑更加清楚、可控；</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f808ab264db5679ac2d92" data-id="3479995fc21f808ab264db5679ac2d92"><span><div id="3479995fc21f808ab264db5679ac2d92" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f808ab264db5679ac2d92" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f809393a6d0723a01d74b"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80c3a488d10b703c2c83"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8028a28df82ab46362d6"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f802e9139c19e232c09e9" data-id="3479995fc21f802e9139c19e232c09e9"><span><div id="3479995fc21f802e9139c19e232c09e9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f802e9139c19e232c09e9" title="样式说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">样式说明</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80669eb1e4a00cb1f292" data-id="3479995fc21f80669eb1e4a00cb1f292"><span><div id="3479995fc21f80669eb1e4a00cb1f292" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80669eb1e4a00cb1f292" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8062be21eb03caa74e3d">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f8064866dde722f69b2bc"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80f583cec637328596da" data-id="3479995fc21f80f583cec637328596da"><span><div id="3479995fc21f80f583cec637328596da" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f583cec637328596da" title="提交按钮"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">提交按钮</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80da9d65c27cfb54d628"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:539.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A81f1e88a-dae7-4690-9172-d440f4d34aa8%3Aimage.png?table=block&amp;id=3489995f-c21f-80da-9d65-c27cfb54d628&amp;t=3489995f-c21f-80da-9d65-c27cfb54d628" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80359625ed0f5b7e6093" data-id="3479995fc21f80359625ed0f5b7e6093"><span><div id="3479995fc21f80359625ed0f5b7e6093" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80359625ed0f5b7e6093" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f801f8d1ac414153466b9"><div>提交按钮组件专为表单提交打造，组件本身提供了交互动画、成功提示、失败提示等数据提交相关的过程展示。提交按钮依然使用原生按钮为基础，但对原生按钮进行了隐藏，实现了多平台按钮样式统一的目标。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80ee9775d2203c56f754" data-id="3479995fc21f80ee9775d2203c56f754"><span><div id="3479995fc21f80ee9775d2203c56f754" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ee9775d2203c56f754" title="组件名称"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件名称</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80e98ff9f8ee9467d7f5"><div>gui-submit-button : /graceUI/组件目录/gui-submit-button</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f809c8135c66e1c3289e8" data-id="3479995fc21f809c8135c66e1c3289e8"><span><div id="3479995fc21f809c8135c66e1c3289e8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f809c8135c66e1c3289e8" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80899569cf53a0485b59"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f803e8c9dd1fdd78286c0"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803295cacd4a30956fd0"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f28867ecbdb70ad8ba" data-id="3479995fc21f80f28867ecbdb70ad8ba"><span><div id="3479995fc21f80f28867ecbdb70ad8ba" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f28867ecbdb70ad8ba" title="组件属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件属性</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f803f8e5dedb9f48191b2"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f8053ae5defc05f12d089"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>属性名称</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>默认值</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>作用</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f805eb636f9cf02861991"><td class="" style="width:120px"><div class="notion-simple-table-cell">titleClass</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">gui-sbutton-text</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">按钮标题颜色名称</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80afa95ada6af484f597"><td class="" style="width:120px"><div class="notion-simple-table-cell">loaingPointClass</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">gui-sbutton-loading-point</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">按钮加载圆点样式名称</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80389701f3802f9d7604"><td class="" style="width:120px"><div class="notion-simple-table-cell">baseClass</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">gui-sbutton</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">按钮基础样式名称，用于规划尺寸 圆角等基础样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80e49ae0da8a56e77876"><td class="" style="width:120px"><div class="notion-simple-table-cell">defaultClass</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">gui-sbutton-default</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">按钮默认样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806da85fcfc6c321cc03"><td class="" style="width:120px"><div class="notion-simple-table-cell">loadingClass</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">gui-sbutton-loading</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">按钮数据交互时加载样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80ffb974f1a418800565"><td class="" style="width:120px"><div class="notion-simple-table-cell">successClass</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">gui-sbutton-success</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">提交成功时按钮样式</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807285f6de15ebf69b40"><td class="" style="width:120px"><div class="notion-simple-table-cell">failClass</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">String</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">gui-sbutton-fail</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">提交失败是按钮样式</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80f798d8c2dc4fdf724f" data-id="3479995fc21f80f798d8c2dc4fdf724f"><span><div id="3479995fc21f80f798d8c2dc4fdf724f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80f798d8c2dc4fdf724f" title="样式说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">样式说明</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80498045e0ac814e3494"><div>以上样式都保存在框架皮肤样式内，皮肤样式内同时还提供了修改按钮样式的演示，请按照要求部署皮肤和修改文件（ 请仔细观看群文件框架部署视频教程 ）。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f805c821eff41d8c8a18c" data-id="3479995fc21f805c821eff41d8c8a18c"><span><div id="3479995fc21f805c821eff41d8c8a18c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f805c821eff41d8c8a18c" title="组件插槽"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件插槽</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80b3995bce61c4420f2e"><div>按钮默认展示元素 提交成功展示元素 提交失败展示元素 原生按钮原生（ 真正起到表单提交作用，但元素会被透明化 ）</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80748a0ce27081fbe356" data-id="3479995fc21f80748a0ce27081fbe356"><span><div id="3479995fc21f80748a0ce27081fbe356" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80748a0ce27081fbe356" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f8066b2a7e12d80c82532">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f805d9477ee04ffee42ae"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80c4aa27d48256f843bd" data-id="3479995fc21f80c4aa27d48256f843bd"><span><div id="3479995fc21f80c4aa27d48256f843bd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80c4aa27d48256f843bd" title="表单验证"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">表单验证</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f8091824ce782d3967705"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:529.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A72734eb3-93b6-424d-a007-84622e11a7dd%3Aimage.png?table=block&amp;id=3489995f-c21f-8091-824c-e782d3967705&amp;t=3489995f-c21f-8091-824c-e782d3967705" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f808987d5e7859d5b0b4c" data-id="3479995fc21f808987d5e7859d5b0b4c"><span><div id="3479995fc21f808987d5e7859d5b0b4c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f808987d5e7859d5b0b4c" title="组件介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">组件介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f803dae86f2405bae631f"><div>GraceUI 内置了表单验证工具，经过大量用户的使用和反馈已经非常成熟；
注意事项
此验证工具于 2021.12.23 大幅度更新，优化验证规则、添加更多验证方法，请下载新版本框架保证代码版本~</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f803fbcede6a31a5a8dcf" data-id="3479995fc21f803fbcede6a31a5a8dcf"><span><div id="3479995fc21f803fbcede6a31a5a8dcf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f803fbcede6a31a5a8dcf" title="使用流程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">使用流程</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80148f48eeb7c7366939" data-id="3479995fc21f80148f48eeb7c7366939"><span><div id="3479995fc21f80148f48eeb7c7366939" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80148f48eeb7c7366939" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80ad83f6d2940cd7d7e2"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f809597ceded1d5b4925d"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f802cbc88f75d27f20942"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80cea1a5f665d45e62d9" data-id="3479995fc21f80cea1a5f665d45e62d9"><span><div id="3479995fc21f80cea1a5f665d45e62d9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80cea1a5f665d45e62d9" title="验证规则"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">验证规则</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f801d8419f37bdb32f78d"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80479d2cce9c680cee2e"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>类型</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>功能</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>规则参数举例</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80169650c74825f5e5f6"><td class="" style="width:120px"><div class="notion-simple-table-cell">string</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">字符串长度检查</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如 : 5, 100</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f802cbc92e5e76477ba8e"><td class="" style="width:120px"><div class="notion-simple-table-cell">contain</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">必须包含指定的字符串</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如 : grace</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80938bdecaef269ce3f4"><td class="" style="width:120px"><div class="notion-simple-table-cell">notContain</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">不能包含指定的字符串</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如 : grace</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c5b9abc36eff14f30a"><td class="" style="width:120px"><div class="notion-simple-table-cell">inArray</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">必须是指定数组的元素</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如 : [‘男’,‘女’]</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8054afe5c3034276007b"><td class="" style="width:120px"><div class="notion-simple-table-cell">notInArray</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">不能是指定数组的元素</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如 : [1,2,3]</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f807c8b6ae6ef57179402"><td class="" style="width:120px"><div class="notion-simple-table-cell">int</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">整数及长度检查</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如 : 1, 8</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80a69adadf7db3f38d22"><td class="" style="width:120px"><div class="notion-simple-table-cell">intBetween</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">整数区间检查</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如：100,999</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803d8df3fb34b0dc3afe"><td class="" style="width:120px"><div class="notion-simple-table-cell">between</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">数值区间检查 ( 小数或整数 )</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如：-500, 22</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f808e9c35c44ea1e781ab"><td class="" style="width:120px"><div class="notion-simple-table-cell">doubleBetween</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">小数区间检查</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如：1, 88</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80cf913dfadfe5e8ec40"><td class="" style="width:120px"><div class="notion-simple-table-cell">doubleLength</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">小数及小数位数检查</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如：2,3</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80c3866cdff4520937fe"><td class="" style="width:120px"><div class="notion-simple-table-cell">gt</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">大于某个数值</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如：100</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f803f93bcda35153c8ac8"><td class="" style="width:120px"><div class="notion-simple-table-cell">gtAndSame</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">大于等于某个数值</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如：100</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806296a2e99efeb4c91b"><td class="" style="width:120px"><div class="notion-simple-table-cell">lt</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">小于某个数值</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如：100</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80febab4cc319898df7b"><td class="" style="width:120px"><div class="notion-simple-table-cell">ltAndSame</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">小于等于某个数值</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如：100</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8008b1b3e9ba3f498832"><td class="" style="width:120px"><div class="notion-simple-table-cell">same</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">等于某个值</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如：100 或 grace</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8006884ee530542e1e19"><td class="" style="width:120px"><div class="notion-simple-table-cell">notSame</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">不等于某个值</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">如：100</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8051af44cf989d7eeb5c"><td class="" style="width:120px"><div class="notion-simple-table-cell">samewith</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">等于某个元素</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">数据键名称</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f806c8966e96f6d507c8f"><td class="" style="width:120px"><div class="notion-simple-table-cell">email</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">邮件地址检查</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">无需参数</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80768f58fc9fd0bd8d39"><td class="" style="width:120px"><div class="notion-simple-table-cell">phone</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">手机号码检查</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">无需参数</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f804aaedef325118cf2c6"><td class="" style="width:120px"><div class="notion-simple-table-cell">url</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">url 地址检查</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">无需参数</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80f6a4d7ce6e67e74f23"><td class="" style="width:120px"><div class="notion-simple-table-cell">zipcode</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">邮编检查</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">无需参数</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80acb92de79ba103e02b"><td class="" style="width:120px"><div class="notion-simple-table-cell">idCard</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">身份证检查</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">无需参数</div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f8020b7b4c97b50fab320"><td class="" style="width:120px"><div class="notion-simple-table-cell">reg</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">正则表达检查</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">自定义正则表达式，如 ^</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8026a7f3d67703c1ddf3" data-id="3479995fc21f8026a7f3d67703c1ddf3"><span><div id="3479995fc21f8026a7f3d67703c1ddf3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8026a7f3d67703c1ddf3" title="使用说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">使用说明</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80728ba6d60b3aafb0bf" data-id="3479995fc21f80728ba6d60b3aafb0bf"><span><div id="3479995fc21f80728ba6d60b3aafb0bf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80728ba6d60b3aafb0bf" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f806ba35ef1f8e5c09c66">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80508b3dfe73188aa06a"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3479995fc21f80ec8700e379fb3f91bc" data-id="3479995fc21f80ec8700e379fb3f91bc"><span><div id="3479995fc21f80ec8700e379fb3f91bc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80ec8700e379fb3f91bc" title="字数控制"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">字数控制</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3489995fc21f80ac843efbb95cf31474"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:537.96875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aaa6a06d2-f278-474c-9a4b-2f961960412e%3Aimage.png?table=block&amp;id=3489995f-c21f-80ac-843e-fbb95cf31474&amp;t=3489995f-c21f-80ac-843e-fbb95cf31474" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f8048b144e54338be6cab" data-id="3479995fc21f8048b144e54338be6cab"><span><div id="3479995fc21f8048b144e54338be6cab" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f8048b144e54338be6cab" title="相关介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">相关介绍</span></span></h4><blockquote class="notion-quote notion-block-3479995fc21f80a49607c5cd767a5a83"><div>为了便于表单提交，我们没有使用组件形式来完成多行文本框的字数限制工作，您可以通过我们提供的演示代码理解原理，打造出更符合项目的文本框输入限制功能;</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f807eb9c4d37f84bb9192" data-id="3479995fc21f807eb9c4d37f84bb9192"><span><div id="3479995fc21f807eb9c4d37f84bb9192" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f807eb9c4d37f84bb9192" title="兼容平台"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">兼容平台</span></span></h4><table class="notion-simple-table notion-block-3479995fc21f80ad9533cce3e2530e3f"><tbody><tr class="notion-simple-table-row notion-block-3479995fc21f80bbae81f339a1913e60"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>H5</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>APP</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>小程序</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>NVUE</b></div></td></tr><tr class="notion-simple-table-row notion-block-3479995fc21f80898984de6c80b326e3"><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">✔</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3479995fc21f80acb068eab75553b639" data-id="3479995fc21f80acb068eab75553b639"><span><div id="3479995fc21f80acb068eab75553b639" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3479995fc21f80acb068eab75553b639" title="演示代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">演示代码</span></span></h4><div class="notion-text notion-block-3479995fc21f807292b9e0792569a042">UNI 普通版本</div><div class="notion-blank notion-block-3479995fc21f80eba42ed159cc7619a3"> </div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>